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

make flash runs fine but stop flashing sometimes

Hello everyone,

We are using the nrf52840 Dev Kit (PCA10056 1.1.0 2019.19 683465548)

SDK Version: 15.3

OS: Fedora

When we are using the command line "make flash" on our main project, the command execution works fine but the flashed program stay the old one.

This issue happens when we flash our main project after flashing an example project like the example/peripheral/blinky one.

Usually to solve this issue, we dragged and dropped the .hex file from our main project into JLINK. But today we need to flash it without drag and drop because we can't.

Any ideas?

Parents Reply
  • "make flash" will essentially do this:

    nrfjprog -f nrf52 --program $(OUTPUT_DIRECTORY)/nrf52840_xxaa.hex --sectorerase
    nrfjprog -f nrf52 --reset

    You can add a --verify to ensure that the written content matches:

    nrfjprog --program my.hex --sectorerase --verify --reset

    Could you try this?

     

    If it still does not work, what happens if you power-cycle the board? Does the firmware run as expected then?

     

    Kind regards,

    Håkon

Children
Related