Flashing failed due to protection on the device

OS: Windows 10
NCS: 2.0.0

I am working on the Nordic DFU NCS Guide on a nRF52833 DK  devzone.nordicsemi.com/.../ncs-dfu

After flashing/debugging several times, I started seeing the message below.  I responded with "yes".   Now I am not able to "debug".  I can only "flash" it. 

I thought something was wrong with the board, so I used a brand new nRF52833DK.  The same thing started happening.  

Any idea of what is going on?

Parents
  • Hi,

    I have reproduced your issue by erasing the board and power cycling it, but as soon as the board was recovered the issue disappeared.
    After you recover the board with

    nrfjprog --recover

    or from VS Code, APPRPOTECT should be disabled. Normally, it should stay in disabled state unless your application enables it. You can check which APPROTECT options you have enabled in your application by looking at .config file in your build\zephyr folder. You can find more information about APPROTECT in the documentation. 


    Best regards,
    Dejan

Reply
  • Hi,

    I have reproduced your issue by erasing the board and power cycling it, but as soon as the board was recovered the issue disappeared.
    After you recover the board with

    nrfjprog --recover

    or from VS Code, APPRPOTECT should be disabled. Normally, it should stay in disabled state unless your application enables it. You can check which APPROTECT options you have enabled in your application by looking at .config file in your build\zephyr folder. You can find more information about APPROTECT in the documentation. 


    Best regards,
    Dejan

Children
Related