nrf52 DK keeps resecuring itself

Hi,

I have just acquired a new nRF52 DK devkit.

Performing a `nrfjprog --recover` followed by `nrfjprog --eraseall` doesn't work to remove the protection.

I do not flash a new firmware on it. After a power cycle, I need to recover and erase the MCU again to connect to it via RTT.

Any idea how to fix this?

Thanks,

Étienne Machabée
Lynkz Instruments Inc.

Parents
  • Hello Étienne,  

    This looks very similar to the problem I'm having although I have an nrf5340 project. This started happening to me after I upgraded from nrf connect v2.7.0 to nrf connect v2.9.0. Are you also using nrf connect v2.9.0?

    Rob

  • Hi,

    The way the APPROTECT mechanism works is that both the non-volatile UICR.APPROTECT register and the volatile APPROTECT.DISABLE register need to be set to the same unlock value (0x5A on the nRF52 series) to disable it (Access port protection controlled by hardware and software). The latter register must be written to by the CPU on boot. This means APPROTECT will be enabled again if you erase and reset the chip.

    The nrfjprog --recover operation performs a chip erase, then loads a small firmware binary that writes to the APPROTECT.DISABLE register to ensure APPROTECT remains disabled. This FW will be deleted when you call `nrfjprog --eraseall` after the recover. 

    Which SDK and SDK version are you using?

    byte said:
    This looks very similar to the problem I'm having although I have an nrf5340 project. This started happening to me after I upgraded from nrf connect v2.7.0 to nrf connect v2.9.0. Are you also using nrf connect v2.9.0?

    Apart from approtect being enabled, does the FW work as expected? Also, do you get the warning about approtect when trying to program the appcore or the netcore?

  • Hi Vidar,

    I usually develop on ANNA-B112 chips and I have never had issues with that. Is it a new hardware revision that changed that?

    On my custom boards I can flash the same firmware without an issue of it securing itself.

    I'm using nRF5 SDK v16.

  • Hi,

    Yes, there is a new silicon revision, please see the IN-142 for more information. The startup files included in nRF5 SDK v16 is not compatible with this HW revision, but those in v17.1.0 are.

Reply Children
Related