Unable to recover/flash nrf5340 on nrf7002-DK

Hi,

I recently purchased nrf7002-DK and wanted to evaluate it.

I was first able to flash the blinky example, and it seems to work (although maybe it was the pre-loaded blinky program).

I was hoping to see some output on VCOM1, but I did't see any. I build/flashed the "three thread" example (Board: nrf7002dk_nrf5340_cpuapp_ns). it didn't appear to work (didn't see any LEDs flashing nor message on terminal).

I erased it and tried to re-flash the blinky example, but it would not flash. I have a suspicion that I didn't do the erase process in the correct order.

I used the Programmer v3.0.8, and it shows that "device is protected".

I also tried: 

>> nrfjprog --recover --coprocessor CP_NETWORK

Failed to enable coprocessor with unknown error.

ERROR: Access to the selected address is blocked by the SPU.

After doing some search, I cam across the nordic documentation site: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.0/nrf/ug_nrf5340.html#readback-protection-error

"Recovering the network core erases the flash memory of both cores. Recovering the application core erases only the flash memory of the application core. Therefore, you must recover the network core first. Otherwise, if you recover the application core first and the network core last, the binary written to the application core is deleted and readback protection is enabled again after a reset."

I probably didn't erase it in the correct order (should have been more careful).

Anyway, is there a way to fix my nrf7002-DK? Have I messed it up beyond repair?

I haven't even got to do any wifi stuff...

Thanks,

Makoto

Parents
  • Hi

    Glad you got it working at least Makoto. It would be good to resolve what exactly you're seeing though.

    That could be because the NETWORK core is written to and thus protected. If running nrfjprog --recover --family nRF53 --coprocessor CP_APPLICATION results in an error, what does nrfjprog --recover --family --coprocessor CP_NETWORK return?

    Best regards,

    Simon

Reply
  • Hi

    Glad you got it working at least Makoto. It would be good to resolve what exactly you're seeing though.

    That could be because the NETWORK core is written to and thus protected. If running nrfjprog --recover --family nRF53 --coprocessor CP_APPLICATION results in an error, what does nrfjprog --recover --family --coprocessor CP_NETWORK return?

    Best regards,

    Simon

Children
  • Hi Simon,

    After flashing an image, I ran:

    nrfjprog --recover --family nRF53 --coprocessor CP_APPLICATION

    and get:

    Recovering device. This operation might take 30s.

    ERROR: Recover failed. Please make sure that the correct device family is given

    ERROR: and try again.

    then I ran:

    nrfjprog --recover --family nRF53 --coprocessor CP_NETWORK

    and get:

    Failed to enable coprocessor with unknown error.

    ERROR: Access to the selected address is blocked by the SPU.

    Then I need to run the Programmer app to erase it in order to be able to flash again.

    Just out of curiosity, I reversed the order of the erase execution. I ran:

    nrfjprog --recover --family nRF53 --coprocessor CP_NETWORK

    I get:

    Recovering device. This operation might take 30s.

    ERROR: Recover failed. Please make sure that the correct device family is given

    ERROR: and try again.

    then I ran:

    nrfjprog --recover --family nRF53 --coprocessor CP_APPLICATION

    and get:

    Recovering device. This operation might take 30s.

    ERROR: Recover failed. Please make sure that the correct device family is given

    ERROR: and try again.

    I am now able to consistently erase it using the Programmer app, so that is good.

    Not sure why I am not able to erase using the nrfjprog.

    Best Regards,

    Makoto

Related