Cannot Program Bootloader on BLE Nano


#1

I have a BLE nano with a MK20. At some point in time, I did something weird and now I only see a “MAINTENANCE” drive on Windows and Linux. I have tried writing the bootloader.hex file to it but I get an error “In application programming aborted due to an out of bounds address.” in the form of a file in the MAINTENANCE drive named FAIL.TXT.

I did have the unit working at some point, and I’m not sure how to get it to a factory configuration again. I’m unsure what I did to cause this, and I’m unsure if this is the nano or MK20.

Further, I see other files in there (DETAILS.TXT which provides details about the device and HELP_FAQ.HTM which points me to https://www.mbed.com/en/development/hardware/prototyping-production/daplink/daplink-on-kl26z/ which describes a similar situation in which I am, but copying the hex file provides the same error as above and does not get me out of maintenance mode).


Stuck in 'Maintenance' mode
#2

Hi,
You mk20 has entered the upgrade mode. You need to drag the interface firmware(.bin file) to the MSD.
If MK20 version is 1.0, use https://github.com/RedBearLab/nRF51822-Arduino/tree/S130/interface/mk20/board_v1.0/daplink.

if version is 1.5, use https://github.com/RedBearLab/nRF51822-Arduino/tree/S130/interface/mk20/board_v1.5/cmsis-dap.

For DAPLink, use https://github.com/RedBearLab/nRF51822-Arduino/tree/S130/interface/f103/board_v1.0/daplink.


#3

Thanks jixing. Using the DAPLink bin file worked. For others that may find this, it mounted the drive as “DAPLINK”. From there, I put the bootloader.hex file on, and then I could see the DFU bluetooth device.

Cheers!


#4

I too have this problem, but the solution hasn’t worked for me. Could you suggest other ways to fix this. I’m on Windows 10.


#5

Hi mark-m,
Can you tell me more details?


#6

Hi jixing,

Please see this post:

I have tried various firmware files on 3 different Windows PCs

Thanks

Mark


#7

Hey - I have a very similiar problem.

I followed some Tutorials, now my BLE Nano v2 is in maintanance mode and doesnt leave it - I tried a various amount of firmwears but i missing somehting, but I dont get what.

Blockquote
Hi,
You mk20 has entered the upgrade mode. You need to drag the interface firmware(.bin file) to the MSD.
If MK20 version is 1.0, use https://github.com/RedBearLab/nRF51822-Arduino/tree/S130/interface/mk20/board_v1.0/daplink45.
if version is 1.5, use https://github.com/RedBearLab/nRF51822-Arduino/tree/S130/interface/mk20/board_v1.5/cmsis-dap49.
For DAPLink, use https://github.com/RedBearLab/nRF51822-Arduino/tree/S130/interface/f103/board_v1.0/daplink75.

Do I have to drag and drop the .bin file onto the Device? - If i do this it restarts but nothing changes.


#8

@yannikwendt Are you putting the device into bootloader upload mode when dragging the .bin file? You have to press and hold the switch on the MK20 while unplugged from power, then plug it into power while still holding it. The LED will be blinking when in the bootloader mode.