Nrf52 dongle programming using nrf52dk

Testing nrf52 dongle programming using nrf52dk with blinky example.  If I compile code and flash the dongle using boot loader nrf52 dongle it works and blinks led correctly, but if I tried to flash it with nrf52 dk after erasing chip it programs and does not complains. But code does not work and it seems that it hangs.  So, I copied flash memory using dk from another nrf52 dongle and then flashed the copied flash memory followed by  blinky application area into  the first locked dongle it recovered and started blinking it worked. 

I have tried this procedure several times  and came up with conclusion that in order for it to work I need to keep the boot loader! And it fails running after a complete erase. 

do I have to change something in the configuration to get it to boot correctly without the boot loader? 

knowing that reconfigured the dk to by soldering sb47 to power externally. 

Parents
  • Hello Haj,

    Yes, you nailed it. The dongle comes preloaded with an nRF5 SDK bootloader so that one could've flashed it using a DFU. Along with it comes the MBR, which is what you are struggling with being removed. Normally when you build something for the dongle, it takes into account that the MBR is there, and moves the application over.

    You could make a custom board for a version of the dongle which does not have the MBR, or simply by adding the configurations CONFIG_FLASH_LOAD_OFFSET=0 or CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n.

    Regards,

    Elfving

Reply
  • Hello Haj,

    Yes, you nailed it. The dongle comes preloaded with an nRF5 SDK bootloader so that one could've flashed it using a DFU. Along with it comes the MBR, which is what you are struggling with being removed. Normally when you build something for the dongle, it takes into account that the MBR is there, and moves the application over.

    You could make a custom board for a version of the dongle which does not have the MBR, or simply by adding the configurations CONFIG_FLASH_LOAD_OFFSET=0 or CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n.

    Regards,

    Elfving

Children
No Data
Related