Bootloader error while flashing code to nRF52DK board.

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

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

Bootloader error while flashing code to nRF52DK board.

Post by KKaushik »

I'm trying to flash code using Arduino IDE using the below settings:

Successful upload the bootloader
Bootloader.jpg
Bootloader.jpg (22.89 KiB) Viewed 162 times
Here board settings:
Board.jpg
Board.jpg (131.12 KiB) Viewed 162 times
When I tried to flash simple blink code, I'm getting this error.

Code: Select all

Upgrading target on COM9 with DFU package C:\Users\MYPC\AppData\Local\Temp\arduino_build_895976\Blink.ino.zip. Flow control is disabled, Single bank, Touch disabled
Opened serial port COM9
Starting DFU upgrade of type 4, SoftDevice size: 0, bootloader size: 0, application size: 21324
Sending DFU start packet

Failed to upgrade target. Error is: No data received on serial port. Not able to proceed.
Timed out waiting for acknowledgement from device.
Traceback (most recent call last):
  File "__main__.py", line 296, in serial
  File "dfu\dfu.py", line 235, in dfu_send_images
  File "dfu\dfu.py", line 199, in _dfu_send_image
  File "dfu\dfu_transport_serial.py", line 179, in send_start_dfu
  File "dfu\dfu_transport_serial.py", line 243, in send_packet
  File "dfu\dfu_transport_serial.py", line 282, in get_ack_nr
nordicsemi.exceptions.NordicSemiException: No data received on serial port. Not able to proceed.

Possible causes:
- Selected Bootloader version does not match the one on Bluefruit device.
    Please upgrade the Bootloader or select correct version in Tools->Bootloader.
- Baud rate must be 115200, Flow control must be off.
- Target is not in DFU mode. Ground DFU pin and RESET and release both to enter DFU mode.
Is this because of the wrong Bootloader? Can anyone help me how to resolve this?

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Bootloader error while flashing code to nRF52DK board.

Post by mikeysklar »

I’ve never used the DK (development kit) version you have as it is not something Adafruit stocks.

There is a related FAQ for the Adafruit boards based on the error you are seeing *(not identical)*.

Before you try to figure out which bootloader to use make sure your board is in DFU mode before uploading code.

https://learn.adafruit.com/bluefruit-nr ... aq-3024309

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

Re: Bootloader error while flashing code to nRF52DK board.

Post by KKaushik »

It works fine now with nRF52 DK.
The procedure that works for me goes like :
1. Erase ALL (either with nRF Programmer Software or command nrfjprog)
Erase all.jpg
Erase all.jpg (147.88 KiB) Viewed 102 times
2. Burn Bootloader: Adafruit Feather nRF52
Burn Bootloader.jpg
Burn Bootloader.jpg (79.54 KiB) Viewed 102 times
3. Upload code using Arduino IDE, while selected board : Adafruit Feather nRF52.
Successful Upload.jpg
Successful Upload.jpg (38.5 KiB) Viewed 102 times
There an issue with using the Adafruit Feather nRF52 board is mismatched pin Mapping from nRF52DK. So need to use pin accordingly

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

Return to “Microcontrollers”