nRF5340-DK - failed to download application

Dear all,

 I'm running into the following issue:

Hardware

nRF5340-DK, 2.0.0, 2021.42

Software

SES for ARM Nordic Edition, V5.68 (64-bit)

nRF-Command-Line-Tools-10.15.4-x64.exe

'empty_app_core' for _cpuapp

'ptx' for _cpunet

 

No changes to the installation or code after installation.

 

 

When trying to load 'empty_app_core' for _cpuapp, the following error will usually occur

 

Preparing target for download

Executing Reset script TargetInterface.resetAndStop()

Reset: ARMv8M core with Security Extension enabled detected.

Reset: Halt core after reset via DEMCR.VC_CORERESET.

Reset: Reset device via AIRCR.SYSRESETREQ.

Downloading ‘zephyr.elf’ to J-Link

Programming 3.8 KB of addresses 00000000 — 00000f37

Programming 0.0 KB of addresses 00000f38 — 00000f9b

Failed to prepare for programming.

Could not preserve target memory.

Failed to download application.

Generic error.

Please check J-Link and target connection.

Download failed.

The same will happen for 'ptx' on _cpunet.

 

Following the advice I found on the board, I was running a recovery on both cores

nrfjprog --recover --coprocessor CP_NETWORK

nrfjprog --recover

 

Which allowed to load 'empty_app_core' - but only once.

 

After loading 'empty_app_core' once, it is also possible to load 'ptx' for _cpunet, once.

Running a recovery again will allow to load again, once.

Any ideas? Slight smile

Thank you!

Parents Reply Children
No Data
Related