Adafruit Feather nRF52 Bluefruit LE - nRF52832 Module

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
KKaushik
 
Posts: 18
Joined: Mon Jul 11, 2022 6:54 am

Adafruit Feather nRF52 Bluefruit LE - nRF52832 Module

Post by KKaushik »

When I upload code to this controller, it works fine.
nrf2.jpeg
nrf2.jpeg (149.98 KiB) Viewed 3053 times
The moment I push reset button, open serial monitor or even turn off/on the module, code doesn't restart and Red Led starts blinking. Not just this code, it happens with every single code.
nrf1.jpeg
nrf1.jpeg (136.72 KiB) Viewed 3053 times
Configuration Settings :
nrf3.jpg
nrf3.jpg (88.07 KiB) Viewed 3053 times
The same code works fine with other Adafruit Feather nRF52 Bluefruit LE module I have.

What causing this issue? How can I fix this?

User avatar
adafruit_support_carter
 
Posts: 29159
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Feather nRF52 Bluefruit LE - nRF52832 Module

Post by adafruit_support_carter »

Try changing the programmer. See here for general usage:
https://learn.adafruit.com/bluefruit-nr ... oard-setup

Follow that and see if you can upload a basic blink example:
https://learn.adafruit.com/bluefruit-nr ... ch-2860620

User avatar
KKaushik
 
Posts: 18
Joined: Mon Jul 11, 2022 6:54 am

Re: Adafruit Feather nRF52 Bluefruit LE - nRF52832 Module

Post by KKaushik »

adafruit_support_carter wrote:Try changing the programmer. See here for general usage:
https://learn.adafruit.com/bluefruit-nr ... oard-setup

Follow that and see if you can upload a basic blink example:
https://learn.adafruit.com/bluefruit-nr ... ch-2860620
I changed the programmer to "Bootloader DFU for nrf52", refer to image.
nrf_blink.jpg
nrf_blink.jpg (85.76 KiB) Viewed 1460 times
But still, when I press reset, Led goes in dimmer loop code, not the Blink one which I uploaded

User avatar
adafruit_support_carter
 
Posts: 29159
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Feather nRF52 Bluefruit LE - nRF52832 Module

Post by adafruit_support_carter »

Do you getting any error messages in the Arduino IDE when trying to upload the Blink example?

User avatar
KKaushik
 
Posts: 18
Joined: Mon Jul 11, 2022 6:54 am

Re: Adafruit Feather nRF52 Bluefruit LE - nRF52832 Module

Post by KKaushik »

adafruit_support_carter wrote:Do you getting any error messages in the Arduino IDE when trying to upload the Blink example?
Uploading message for J-link
complie_message_j_link.jpg
complie_message_j_link.jpg (83.23 KiB) Viewed 432 times
Uploading message for DFU
complie_message_dfu.jpg
complie_message_dfu.jpg (55.28 KiB) Viewed 432 times
It exactly same as for the other module which is working just fine.

User avatar
adafruit_support_carter
 
Posts: 29159
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Feather nRF52 Bluefruit LE - nRF52832 Module

Post by adafruit_support_carter »

Those look like successful firmware uploads.

So you have two Feather nRF52832's. Blink uploads and runs as expected on one. But on the other, shown in photos above, it does not?

User avatar
KKaushik
 
Posts: 18
Joined: Mon Jul 11, 2022 6:54 am

Re: Adafruit Feather nRF52 Bluefruit LE - nRF52832 Module

Post by KKaushik »

adafruit_support_carter wrote:Those look like successful firmware uploads.

So you have two Feather nRF52832's. Blink uploads and runs as expected on one. But on the other, shown in the photos above, it does not?
All previously attached images are of the faulty Module, even in the faulty module code uploaded successfully. But it works until I do reset the module in any of the following ways:
1. Reset Push Button
2. Serial Monitor
3. Power Restart

Since I can't use the serial monitor its hard to debug the code.

I have another same module that works fine with the same bootloader and same code. Even after resetting it.

User avatar
adafruit_support_carter
 
Posts: 29159
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Feather nRF52 Bluefruit LE - nRF52832 Module

Post by adafruit_support_carter »

And you're seeing that same behavior even with the very simple Blink sketch?

User avatar
KKaushik
 
Posts: 18
Joined: Mon Jul 11, 2022 6:54 am

Re: Adafruit Feather nRF52 Bluefruit LE - nRF52832 Module

Post by KKaushik »

adafruit_support_carter wrote:And you're seeing that same behavior even with the very simple Blink sketch?
Yes, it's not because of code.

User avatar
adafruit_support_carter
 
Posts: 29159
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Feather nRF52 Bluefruit LE - nRF52832 Module

Post by adafruit_support_carter »

And just to be sure - the upload messages in the Arduino IDE are the same for both boards? They both show a successful upload? It's just the one board that appears to not actually be running the Blink sketch?

User avatar
KKaushik
 
Posts: 18
Joined: Mon Jul 11, 2022 6:54 am

Re: Adafruit Feather nRF52 Bluefruit LE - nRF52832 Module

Post by KKaushik »

adafruit_support_carter wrote:And just to be sure - the upload messages in the Arduino IDE are the same for both boards? They both show a successful upload? It's just the one board that appears to not actually be running the Blink sketch?
Port-3 The module works fine with the same code and settings.
port3_ide.jpg
port3_ide.jpg (103.5 KiB) Viewed 378 times
Port-6 The module which stops working in any case of resetting it.
port6_ide.jpg
port6_ide.jpg (101.4 KiB) Viewed 378 times
Drive link to a video of both modules at once, No.7(Port-3) and No6(Port-6).
https://drive.google.com/file/d/1kHtwgU ... sp=sharing

Resetting both modules by pressing the "Reset push button". But the same can be done with Power Restart and UART Serial Monitor.

My whole project got stuck because I can't do further debugging, please let me know how to fix this. I'll purchase another one but it'll take 10-15 days and not knowing the reason of what causes this problem, it'll probably repeat again. So I need to know the reason for this or how to solve it.

User avatar
hathach
 
Posts: 1270
Joined: Tue Apr 23, 2013 1:02 am

Re: Adafruit Feather nRF52 Bluefruit LE - nRF52832 Module

Post by hathach »

hi Almight,

seems like some thing force the board into DFU mode when reset. I am not entirely sure but it could be one of bootloader internal setting. Would you mind trying to update the bootloader on the faulty board to see if that would help. It is all done by using Arduino IDE, so rather safe enough, the process will take 30-60 (or more) seconds, so please patient until you see the "Device Programmed" message in the upload log, here is the detail guide https://learn.adafruit.com/bluefruit-nr ... bootloader

Once done, you need to re-upload the blink sketch. Let me know if that would help

User avatar
KKaushik
 
Posts: 18
Joined: Mon Jul 11, 2022 6:54 am

Re: Adafruit Feather nRF52 Bluefruit LE - nRF52832 Module

Post by KKaushik »

hathach wrote:hi Almight,

seems like some thing force the board into DFU mode when reset. I am not entirely sure but it could be one of bootloader internal setting. Would you mind trying to update the bootloader on the faulty board to see if that would help. It is all done by using Arduino IDE, so rather safe enough, the process will take 30-60 (or more) seconds, so please patient until you see the "Device Programmed" message in the upload log, here is the detail guide https://learn.adafruit.com/bluefruit-nr ... bootloader

Once done, you need to re-upload the blink sketch. Let me know if that would help
I have tried updating the Bootloader before too. Attached images of the one I did after you asked.
Settings:
BOOTLOADER SETTINGS.jpg
BOOTLOADER SETTINGS.jpg (69.48 KiB) Viewed 320 times
Successful Bootloader Update:
Bootloader .jpg
Bootloader .jpg (136.17 KiB) Viewed 320 times
Still "DFU Mode" on reset as you said.

User avatar
hathach
 
Posts: 1270
Joined: Tue Apr 23, 2013 1:02 am

Re: Adafruit Feather nRF52 Bluefruit LE - nRF52832 Module

Post by hathach »

hmm, if it is not the bootloader internal setting, maybe it is the DFU pin somehow got shorted. Do you have an VOM, or any way to check if the DFU pin (next to TXD) are not grounded (GND). Sorry for asking you to try out several things, since I couldn't reproduce this, and this could only be done by testing on your faulty board.

User avatar
KKaushik
 
Posts: 18
Joined: Mon Jul 11, 2022 6:54 am

Re: Adafruit Feather nRF52 Bluefruit LE - nRF52832 Module

Post by KKaushik »

hathach wrote:hmm, if it is not the bootloader internal setting, maybe it is the DFU pin somehow got shorted. Do you have an VOM, or any way to check if the DFU pin (next to TXD) are not grounded (GND). Sorry for asking you to try out several things, since I couldn't reproduce this, and this could only be done by testing on your faulty board.
No, I'm thankful to you for at least giving me the option to try to find the issue. Thanks to you guys for being responsive. I appreciate it. You are doing whatever you can.
It's just I'm totally stuck because of this. And new module will take around 15 days to reach. So I'm open to any method in my capabilities to try.

I checked the DFU pins in both controllers on a multimeter (Shorting with GND pin)
Faulty one: Shows 500 reading (when there is no power) and 600 (when connected with supply)
Another one: Shows 1 (basically open in both cases Power connected and removed)

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”