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
  • Thank you for the thorough investigation Makoto. I notice now that you have a rather old version of the nRF Command Line Tools (v10.9.0 according to your logs) which I believe came out before the Wi-Fi DKs, can you try upgrading to the latest version to see if that helps? It might not be able to recognize nRF7002 DKs correctly.

    Best regards,

    Simon

Reply
  • Thank you for the thorough investigation Makoto. I notice now that you have a rather old version of the nRF Command Line Tools (v10.9.0 according to your logs) which I believe came out before the Wi-Fi DKs, can you try upgrading to the latest version to see if that helps? It might not be able to recognize nRF7002 DKs correctly.

    Best regards,

    Simon

Children
  • Hi Simon,

    I apologize, I somehow did not see your response. I had to step away from this for few weeks, and just started working on nRF7002DK couple days ago.

    I noticed that I was able to erase and re-flash from VS Code + nRF Connect extension, and did not require the Programmer app to erase the chip every time. I assumed maybe there was an update at some point that fixed this issue.

    Anyway, I did not realize that my nrfjprog was badly outdated (I've gotten used to updating my tools via nRF Connect Desktop, and somehow thought I was up-to-date).

    After downloading the latest version of the nrfjprog (version: 10.22.1 external), I've tried the above steps.

    I no longer get any errors.

    In hindsight, I should have checked the tool version when I first ran into this issue.

    Thank you for your help. From my perspective, this ticket can be closed - 

Related