Cannot flash nrf52840

Hi,

I was about to program my nrf52840 with minor changes in the dts and after that I cannot flash any other images to the device. This is what I get when I flash the board.

I also tried nrfjprog --eraseall and recover. All commands leads to the same error. Is there some way I can get the device back ? Thanks in advance.

Parents
  • Hi, hope you are okay. first of all, sorry for the late reply. unfortunately, I do not have any nrf52840 lying around. Is there some other way i can verify what the issue is or recover the device ?

  • you can try to do 

    > nrfjprog --readcode --readuicr filename.bin 

    and compare this binary with the original binary you are trying to flash into it. 

    If there are differences then it is simply clear that atleast one flash sector is corrupted/damaged. You then need to replace chip.

  • Hi, there is an update. I checked like instructed. but there were no changes.So, out of curiosity, I tried flashing the device with an old program based on nrf5 sdk. Opened it in SES and flashed and it was all good.  The dk was up and running. I tried again with the NCS in VS code and this time, the previous error was not seen but i got a new problem.

    What does this mean ? Is my new code doing something wrong? I tried flashing the peripheral_uart example which is part of the NCS without any changes. But, again that failed too. The device reboots on its own and my UART is filled with this. This is the latest problem I've run into. Can you please help me solve this ? Thank you.

Reply
  • Hi, there is an update. I checked like instructed. but there were no changes.So, out of curiosity, I tried flashing the device with an old program based on nrf5 sdk. Opened it in SES and flashed and it was all good.  The dk was up and running. I tried again with the NCS in VS code and this time, the previous error was not seen but i got a new problem.

    What does this mean ? Is my new code doing something wrong? I tried flashing the peripheral_uart example which is part of the NCS without any changes. But, again that failed too. The device reboots on its own and my UART is filled with this. This is the latest problem I've run into. Can you please help me solve this ? Thank you.

Children
Related