This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Blinky example not working on nRF52840-Dongle when programmed externally by nRF52833-DK

Hi!

Currently I'm using the nRF5 SDK and successfully configured the SDK to compile the blinky example for pca10059 (nRF52840-Dongle).

When I plug the dongle and program it via nRF Connect, it works. I can also change the blink rate in the main.c and recompile and flash, the rate changes too.

I then tried to program it externally via a nRF52833-DK board. It programs fine, I see the light flashing while it burns the firmware, and this is the output after I do "make flash":

DONE nrf52840_xxaa
Flashing: _build/nrf52840_xxaa.hex
nrfjprog -f nrf52 --program _build/nrf52840_xxaa.hex --sectorerase
Parsing hex file.
Erasing page at address 0x1000.
Applying system reset.
Checking that the area to write is not protected.
Programming device.
nrfjprog -f nrf52 --reset
Applying system reset.
Run.

The issue is, when I change the blink rate from the default 500ms in main.c and reflash, it no longer turns on any LED.

If I compile it again for 500ms, it works again. I have performed a "make clean" between changing delay values and recompiling, but still, the same thing happens.

Obviously the hex is not the issue here, since the same hex is used on nRF Connect and "make flash" (nrfjprog).

I can't seem to figure out what the issue is.. Any help is greatly appreciated. Thank you!

  • Hi Einar,

    This is my current input for nrf util:

    nrfutil settings generate --family NRF52840 --application nrf52840_xxaa.hex --application-version 3 --bootloader-version 2 --bl-settings-version 2 settings.hex --app-boot-validation NO_VALIDATION

    calling nrfutil version returns nrfutil version 6.1.0, which appears to be the latest.

    As for the settings page, yes it also covers MBR params page, where MBR params page which spans address space 0x000FE000-0x000FE323 (804 bytes), and bootloader settings page 0x000FF000-0x000FF323 (804 bytes). This is what I see from nRF Connect in the top of the memory map.

    EDIT:

    I have managed to get it working.

    I used the open bootloader from examples\dfu\open_bootloader\pca10059_usb_debug\hex and just flashed that onto the chip. Now I can code in peace.

    Thanks a lot for all your help!

Related