This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can't connect to nrf5340 APP core with JLink (SWD)

I'm trying to evaluate the nrf5340 and flash a basic blinky application but I get an nrfjprog error when I run `west flash`:

[0/1] cd /Users/user/zephyrproje...Cellar/cmake/3.18.2/bin/cmake -E echo

-- west flash: using runner nrfjprog
Using board 960153440
-- runners.nrfjprog: Flashing file: /Users/user/zephyrproject/nrf/build/zephyr/zephyr.hex
ERROR: Argument provided has a wrong value. Memory access not aligned, value
ERROR: outside of range or similar.
FATAL ERROR: command exited with status 54: nrfjprog --program /Users/user/zephyrproject/nrf/build/zephyr/zephyr.hex -f NRF53 --snr 960153440 --coprocessor CP_APPLICATION --sectorerase

So I tried connecting to the core using JLinkExe (commander) and I can only connect to the *_NET core (SWD @ 4000kHz), when I try to connect to the APP core I get the following error:

Device "NRF5340_XXAA_APP" selected.


Connecting to target via SWD
ConfigTargetSettings() start
ConfigTargetSettings() end
InitTarget() start
InitTarget() end
ConfigTargetSettings() start
ConfigTargetSettings() end
InitTarget() start
InitTarget() end
ConfigTargetSettings() start
ConfigTargetSettings() end
InitTarget() start
InitTarget() end
ConfigTargetSettings() start
ConfigTargetSettings() end
InitTarget() start
InitTarget() end
Cannot connect to target.

Am I missing something? I tried two different boards, so I doubt it's a hardware issue (I'm using the nrf5340 pdk). I also tried using an external JLink to no avail

Parents Reply Children
Related