I tried building the SDK and flashing an image with “make flash”. But something went wrong during the process, and now I cannot connect to the device using JLink anymore – each time I get errors (on both KM0 and KM4):
JLinkGDBServer -device cortex-m23 -if SWD -scriptfile AP1_KM0.JLinkScript -port 2331 SEGGER J-Link GDB Server V6.86g Command Line Version JLinkARM.dll V6.86g (DLL compiled Nov 6 2020 18:12:00) Command line: -device cortex-m23 -if SWD -scriptfile AP1_KM0.JLinkScript -port 2331 -----GDB Server start settings----- GDBInit file: none GDB Server Listening port: 2331 SWO raw output listening port: 2332 Terminal I/O port: 2333 Accept remote connection: yes Generate logfile: off Verify download: off Init regs on start: off Silent mode: off Single run mode: off Target connection timeout: 0 ms ------J-Link related settings------ J-Link Host interface: USB J-Link script: AP1_KM0.JLinkScript J-Link settings file: none ------Target related settings------ Target device: cortex-m23 Target interface: SWD Target interface speed: 4000kHz Target endian: little Connecting to J-Link... J-Link is connected. Firmware: J-Link V11 compiled Dec 11 2020 15:39:51 Hardware: V11.00 S/N: XXXXXXXXXX Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB Checking target voltage... Target voltage: 3.45 V Listening on TCP/IP port 2331 Connecting to target... ERROR: Could not connect to target. Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection... Shutting down... Could not connect to target. Please check power, connection and settings.logjammin:jlink_script rob$
Since all the tools for flashing require the JLink to connect, I don’t know how to restore this board to a working condition.