How to turn off Access Protection?

Hello, 

I have a ble mesh application, that I am flashing with Jflash through Clion, After the initial flash, I can use RTT, however after power loss, RTT no longer works due to access protection. Clion is also no  longer able to flash due to the same issue. I am able to recover with unit with an erase. 

If it possible to turn off this protection?

Thank you,

Shahin

Parents Reply Children
  • Shahin97 said:
    Rev 3 on the latest ncs release, 

    I see. That should be no problem then. Do you have updated nRF Command Line tools? If so, and you still see issues, can you share details on how you program the application? (if you for isntance do a eraseall after the recover operation, that would erase the magic word in UICR.APPROTECT that is needed in order to open the debug port (in addition to the SW part).

    Shahin97 said:
    am I correct in saying  nrfjprog --recover" will allow debugger access without erasing the chip? 

    No. The recover operation will first do an erase all operation (which erase all the flash and RAM and opens the debug port for the rest of that debug session). Then it writes to UICR.APPROTECT and writes a small firwmare piece that that writes to APPROTECT.DISABLE after reset. (The latter is overwritten when you flash your application, but by default, nRF Connect applications will write to this on startup unless configured otherwise).

Related