Hello everyone,
I am experiencing a weird problem; I am working on an NRF52840 DK board and writing my code in Segger Embedded Studio.
I do not have any problem when programming the board via the "Build and Run" commend in SES.
Since I wanted to write some UICR values in the memory when flashing the board, I tried programming the board using nrfjprog.
And, to my surprise, the programming does not work!
The command I used is the following
nrfjprog -f NRF52 --program myProgram.hex --chiperase
and the output I get from the system is the following
Parsing hex file. Erasing user available code and UICR flash areas. Applying system reset. Checking that the area to write is not protected. Programming device.
I had the feeling that the programming was pretty fast.....and in fact, the program does not run (I have a logic analyzer connected to a GPIO which "pulses" periodically).
On the other hand, if I try to program the board from SES the program runs without any issue.
I already used the nrfjprog, though on an NRF52832, and I did not have any type of problem.
I am working under Linux Ubuntu 16.04, I updated to the latest nrfjprog (9,8,1) and to the latest JLinkARM.dll (6.44f).
I tried on two different boards, I tried a precompiled .hex example (blinky), but I still get the same behaviour.
Do you have any idea of what is going wrong here?
Alternatively, is there a way to write the UICR without using nrfjprog?
Thanks for your help