0

Adafruit Feather nRF52840 Sense – Bluetooth connection issue
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Adafruit Feather nRF52840 Sense – Bluetooth connection i

by pl4t0n on Mon Feb 15, 2021 11:27 am

Ok, so we finally have some progress in the house!

Going with this route https://learn.adafruit.com/adafruit-fea ... controller I'm successfully able to upload and connect with the board.

From here I'm able to get something useful from the serial monitor, such as basic sensor data from the board. :)

C

pl4t0n
 
Posts: 23
Joined: Wed Jan 20, 2021 8:14 pm

Re: Adafruit Feather nRF52840 Sense – Bluetooth connection i

by mikeysklar on Mon Feb 15, 2021 2:55 pm

C,

Excellent news. Thank you for quickly getting back to me.

Now comparing the working ble-uart-controller code to the mindful bracelet which was not being found was there a configuration step difference that was notable?

mikeysklar
 
Posts: 3362
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit Feather nRF52840 Sense – Bluetooth connection i

by pl4t0n on Mon Feb 15, 2021 3:22 pm

I would say that the most notable step was that the board popped up as a Bluetooth connection at all. The name of the connection was Bluefruit52. I did not look through the code but the onboard LED didn’t have the same blinking pattern as with the CircuitPy code. The Neopixel is now turned off and I’m not sure if the blue light labeled ’Conn’ was shining blue before either. It does now!

C

pl4t0n
 
Posts: 23
Joined: Wed Jan 20, 2021 8:14 pm

Re: Adafruit Feather nRF52840 Sense – Bluetooth connection i

by pl4t0n on Sun Feb 21, 2021 12:47 pm

Hi there mikeysklar,

Did you have a chance to look at my response? I was wondering if you have any ideas on how to proceed with getting Circuit Python to work on the board?

I guess it’s fairly safe to say that it isn’t hardware-related, but rather something having to do with a crucial step that is missing or something not being compatible? We did try a similar tutorial with the same result(s).

Thanks once again!
C

pl4t0n
 
Posts: 23
Joined: Wed Jan 20, 2021 8:14 pm

Re: Adafruit Feather nRF52840 Sense – Bluetooth connection i

by mikeysklar on Mon Feb 22, 2021 10:10 pm

I think the next step is to take you to the current CircuitPython / Libraries / Bootloader release and confirm the device does not show up. If that is the case we can open an issue with the CircuitPython github archive or Bluetooth lib about working with the same setup under Arduino, but not with CircuitPython and take it from there.

Let me know when everything is current and I'll verify and help move it along.

mikeysklar
 
Posts: 3362
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit Feather nRF52840 Sense – Bluetooth connection i

by pl4t0n on Tue Feb 23, 2021 6:49 am

OK, great let’s do that! I thought we kind of already did a few times, but for the sake of reconfirming and documenting everything again, we should definitely do it.

Before proceeding with that I just wanted to ask you if there is any way to fully factory reset the board? In my head it sounds like a good idea to make sure anyone who is testing the board vs the code / circuit python / bootloader is on the exact same page as me/us, without a doubt.

Thanks!
C

pl4t0n
 
Posts: 23
Joined: Wed Jan 20, 2021 8:14 pm

Re: Adafruit Feather nRF52840 Sense – Bluetooth connection i

by pl4t0n on Tue Feb 23, 2021 10:31 am

To speed things up I've connected to the first board that doesn't have the working Arduino code on it. I'm summing everything that we know so far below:

– The board I'm trying to get working is the Adafruit Feather nRF52840 Sense (https://www.adafruit.com/product/4516)

– This is what the INFO_UF2.txt currently reads:
Code: Select all | TOGGLE FULL SIZE
UF2 Bootloader 0.3.2 lib/nrfx (v2.0.0) lib/tinyusb (legacy-1500-g23df777b) s140 6.1.1
Model: Adafruit Feather nRF52840 Sense
Board-ID: nRF52840-Feather-Sense
Date: Mar 12 2020


– The code.py currently on the board is in line with this one:
https://github.com/adafruit/Adafruit_Le ... et/code.py

– The libs have been implemented from adafruit-circuitpython-bundle-6.x-mpy-20210222.zip (see attached image displaying the current libraries).

– The MU editor (1.0.3) is able to find and connect with the board.

So, where I'm currently stuck at is:
– Not being able to find the board via Bluetooth on mobile devices, either via the Bluefruit Connect app on iOS or elsewhere.
– The board is flashing between yellow, blue, green.
– The MU editor is able to find the board and upload code.py file on the board, but isn't showing anything in the serial monitor as it did with the Arduino code on the other tested board. Not saying that the code.py code isn't working at all, but that there might be something else fundamentally wrong with the board vs the Circuit Python release / bootloader / libs.
– The main difference between the board that runs the above Circuit Python and code is that the board with the Arduino code loaded onto it not only "works" but that one has the blue light flashing where it says 'CONN'.

This is a little bit lenghty, but I figure we need as much info as possible, since the thread is starting to become a bit lenghty as well. :)

Let me know if there's anything else I can add/edit/try before we proceed.

Thanks so much!
C
Attachments
Screenshot 2021-02-23 at 15.30.16.png
Screenshot 2021-02-23 at 15.30.16.png (32.86 KiB) Viewed 19 times

pl4t0n
 
Posts: 23
Joined: Wed Jan 20, 2021 8:14 pm

Re: Adafruit Feather nRF52840 Sense – Bluetooth connection i

by pl4t0n on Tue Feb 23, 2021 12:25 pm

I would like to edit one thing which is the blinking pattern, that also consists of one pink flash, and not just yellow, blue, green described in my previous post. :)

pl4t0n
 
Posts: 23
Joined: Wed Jan 20, 2021 8:14 pm

Re: Adafruit Feather nRF52840 Sense – Bluetooth connection i

by mikeysklar on Wed Feb 24, 2021 1:46 pm

C,

Thank you for the summary that helps once with hit thread page 2 and have various working / not working configurations.

Here are few steps to continue:

1) Your bootloader is from last March. It's not your fault we have not been updating our circuitpython.org links rapidly enough to follow the new bootloader releases. You are at version 0.3.2 and I'd like you to be at 0.4.1 release last week:

https://learn.adafruit.com/introducing- ... bootloader

2) Which version of CircuitPython are you running? I see your libraries are current, but I want to confirm that you version of CircuitPython is also up to date. You should be able to see this by connecting to the REPL serial console via Mu's serial view or screen command-line utility.

Once everything is verified current and still not working we can start the github issue process.

mikeysklar
 
Posts: 3362
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit Feather nRF52840 Sense – Bluetooth connection i

by pl4t0n on Wed Feb 24, 2021 7:18 pm

Gotcha! :)

This is actually why I was initially wondering whether it would be a good idea to factory reset the board. Clearly it wouldn't have made any difference, but I actually thought it was me who had reset it to an earlier bootloader to an earlier version, to match the date of the code in the tutorial. But hey! It wasn't ¯\_(ツ)_/¯

Can't get that bootloader-tutorial working right now. It's probably my tired head late at night being in the way. Is it perhaps possible to change the available bootloader in the Arduino IDE and update it from there instead?

C

pl4t0n
 
Posts: 23
Joined: Wed Jan 20, 2021 8:14 pm

Re: Adafruit Feather nRF52840 Sense – Bluetooth connection i

by mikeysklar on Thu Feb 25, 2021 12:04 pm

Yes, you can also upgrade the bootloader in the Arduino IDE. However, I'm not finding a link that does not require the Segger JLink be used for that process. I would stick with nrfjprog and adalink and do it via command line. If you are getting an error post it here and I'll walk you through it.

https://learn.adafruit.com/adafruit-fea ... port-setup
https://learn.adafruit.com/bluefruit-nr ... bootloader

mikeysklar
 
Posts: 3362
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit Feather nRF52840 Sense – Bluetooth connection i

by pl4t0n on Fri Feb 26, 2021 1:10 pm

Yes, OK I get it! Yeah, I was trying to find that as well so I'm jumping back to your previous walkthrough instead.

I have to admit I'm a bit lost at the moment. Probably due to being a bit stressed about getting it work and tasks on the side... So bear with me here because my brain isn't on my side right now. :)

This is what I'm attempting and what I'm getting in return:

Code: Select all | TOGGLE FULL SIZE
./adafruit-nrfutil-macos --verbose dfu serial --package /Users/myusername/Documents/feather_nrf52840_sense_bootloader-0.4.1.zip -p /dev/cu.usbmodem4011101 -b 115200 --singlebank --touch 1200
-bash: ./adafruit-nrfutil-macos: No such file or directory


Also, the Circuit Python version I'm using is in the previous summary, more specificially the latest version on the site when I wrote the post:
"– The libs have been implemented from adafruit-circuitpython-bundle-6.x-mpy-20210222.zip (see attached image displaying the current libraries)."

Thank you!

pl4t0n
 
Posts: 23
Joined: Wed Jan 20, 2021 8:14 pm

Re: Adafruit Feather nRF52840 Sense – Bluetooth connection i

by mikeysklar on Fri Feb 26, 2021 2:01 pm

Okay, this could be a source of the problem. Are you confusing your CircuitPython libraries with the CircuitPython firmware that needs to be installed?

The current CircuitPython release is either 6.1.0 stable or 6.2.0-beta.2 you can use either one and download a drag-n-drop UF2 file to upgrade them. In your case I'd start with the beta.

https://circuitpython.org/board/feather ... uit_sense/

The CircuitPython library version you mentioned are the files you will manually copy into the /lib folder (after trashing the old ones). They are now up to 20210226 and revving almost daily.

https://circuitpython.org/libraries

In terms of manually uploading the bootloader you are close, but you need to unzip the zip file and use the zip file within that archive. EG...

Code: Select all | TOGGLE FULL SIZE
$ unzip -d sense-bootloader feather_nrf52840_sense_bootloader-0.4.1.zip
Archive:  feather_nrf52840_sense_bootloader-0.4.1.zip
  inflating: sense-bootloader/feather_nrf52840_sense_bootloader-0.4.1_s140_6.1.1.hex 
 extracting: sense-bootloader/feather_nrf52840_sense_bootloader-0.4.1_s140_6.1.1.zip 
  inflating: sense-bootloader/update-feather_nrf52840_sense_bootloader-0.4.1_nosd.uf2 


Also...You are on MacOS with a recent python3/pip3 so install adafruit-nrfutil using this syntax:

Code: Select all | TOGGLE FULL SIZE
 pip3 install --user adafruit-nrfutil


Finally, drop the macos suffix on the command and upload with appropriate zip file.

Code: Select all | TOGGLE FULL SIZE
./adafruit-nrfutil --verbose dfu serial --package feather_nrf52840_sense_bootloader-0.4.1_s140_6.1.1.zip  -p /dev/cu.usbmodem4011101 -b 115200 --singlebank --touch 1200

mikeysklar
 
Posts: 3362
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit Feather nRF52840 Sense – Bluetooth connection i

by pl4t0n on Fri Feb 26, 2021 2:28 pm

My bad, I did confuse them just now - by mistake. Sorry for that tiny window of confusion... Hehe.

I'll walk through your latest instructions and get back to you as soon as I have something!
Last edited by pl4t0n on Fri Feb 26, 2021 3:20 pm, edited 1 time in total.

pl4t0n
 
Posts: 23
Joined: Wed Jan 20, 2021 8:14 pm

Re: Adafruit Feather nRF52840 Sense – Bluetooth connection i

by pl4t0n on Fri Feb 26, 2021 3:01 pm

So, I unzipped the zip-file and made a new attempt with the zip-file found inside like so:

Code: Select all | TOGGLE FULL SIZE
my-mbp-name:~ my-user-name$ cd /Users/my-user-name/Documents/sense-bootloader
my-mbp-name:sense-bootloader my-user-name$ ls
feather_nrf52840_sense_bootloader-0.4.1_s140_6.1.1.hex
feather_nrf52840_sense_bootloader-0.4.1_s140_6.1.1.zip
update-feather_nrf52840_sense_bootloader-0.4.1_nosd.uf2
my-mbp-name:sense-bootloader my-user-name$ ./adafruit-nrfutil --verbose dfu serial --package feather_nrf52840_sense_bootloader-0.4.1_s140_6.1.1.zip -p /dev/cu.usbmodem4011101 -b 115200 --singlebank --touch 1200
-bash: ./adafruit-nrfutil: No such file or directory


C

pl4t0n
 
Posts: 23
Joined: Wed Jan 20, 2021 8:14 pm

Please be positive and constructive with your questions and comments.