Failed to recover application core

Using Desktop Tools version  3.10.0 and

programmer 2.3.3

when attempting to erase or program the nRF5340DK (V2.0.0)

I get the following error

14:39:28.006Resetting device14:39:28.724Resetting device completed

14:39:32.842Recovering NRFDL_DEVICE_CORE_APPLICATION core

14:39:33.887Failed to recover NRFDL_DEVICE_CORE_APPLICATION core: async task failure for id: 3737510431 msg: bad function call

14:39:33.890Recovering NRFDL_DEVICE_CORE_NETWORK core

14:39:34.995Failed to recover NRFDL_DEVICE_CORE_NETWORK core: async task failure for id: 3738558547 msg: bad function call

14:39:34.998Device recovery completed

14:39:35.001Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink

14:39:35.001JLink OB firmware version J-Link OB-nRF5340-NordicSemi compiled Jul 2 2021 10:55:25

I tried to recover the device from the command prompt with nrfjprog --recover and that appeared to work, but when i use the programmer this error still occurs and does not program the board.  I also cannot program through VSC. 

Parents Reply Children
  • Hi Wes,

    Based on the documentation, you should use these two nrfjprog commands
    nrfjprog --recover --coprocessor CP_NETWORK
    nrfjprog --recover
    Based on the same documentation page, you could also use west instead of nrfjprog. The command equivalent to two above-mentioned nrfjprog commands is
    west flash --recover

    When you try to program using VS Code, what exactly is not working? Can you program using nrfjprog from VS Code terminal? Can you program by pressing the Flash button?

    Some tools might be updated recently. Which most recent versions of the tools have been working fine for you?

    Best regards,
    Dejan

Related