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

nrf51422 - 'J-Link Cortex-M Error' when atempting to load application to device

I'm attempting to load the ant-fs reference design to two different nrf51422 evaluation boards. The application builds successfully but I am having difficulties loading it onto both boards.

On board1, the application is able to load successfully from Keil and the application runs correctly.

On board2, when I attempt to load the application it fails with the error: "JLink - Cortex-M Error" "No Cortex-M SW Device Found"

I've attempted recovering board2 ( using "nrfjprog --recover -s " ) but it fails with the following sequence: [i]C:\Users\beckettc\AppData\Local\Temp\nrf51Studio>nrfjprog.exe --recover -s 480202588 Loaded JLinkARM.dll ERROR: An error occurred while connecting to the device[/i]

I've also attempted recovering the device through nrfGo Studio but that fails as well.

See below version information:

[i]IDE-Version: µVision V4.60.0.0

Tool Version Numbers: Toolchain: MDK-Lite Version: 4.60.0.0 Toolchain Path: C:\Keil\ARM\ARMCC\bin
C Compiler: Armcc.Exe Assembler: Armasm.Exe V5.02.0.28 Linker/Locator: ArmLink.Exe V5.02.0.28 Librarian: ArmAr.Exe V5.02.0.28 Hex Converter: FromElf.Exe V5.02.0.28 CPU DLL: SARMCM3.DLL V4.60.0.0 Dialog DLL: DARMCM1.DLL V1.11.00.0 Target DLL: Segger\JL2CM3.dll Dialog DLL: TARMCM1.DLL V1.08.00.0[/i]

  • Have (both of) you had a look at this question? It could be interesting trying to run the sequence mentioned there.

  • Good that you found a solution! However, this then most likely a different problem than the initial poster is having, since he isn't able to recover the board using nrfjprog/nRFgo Studio.

  • Thanks for the reply. I tried steps to manually erase the registers as explained in the thread you linked. I'm still unable to connect to the softdevice via nrfgo Studio after running the commands. :-(

    Please see below for the output of those steps in j-link commander (output is just until just before the 'qc' command is entered): SEGGER J-Link Commander V4.58a ('?' for help) Compiled Dec 5 2012 18:38:27 DLL version V4.58a, compiled Dec 5 2012 18:38:08 Firmware: J-Link OB-SAM3U128 V1 compiled Feb 5 2013 15:27:51 Hardware: V1.00 S/N: 480202588 VTarget = 3.300V No devices found on JTAG chain. Trying to find device on SWD. No device found on SWD. Did not find any core. Failed to identify target. Trying again with slow (4 kHz) speed. Info: Could not measure total IR len. TDO is constant high. Info: Could not measure total IR len. TDO is constant high. No devices found on JTAG chain. Trying to find device on SWD. No device found on SWD. Did not find any core. J-Link>r Info: Could not measure total IR len. TDO is constant high. Reset delay: 0 ms Reset type UNKNOWN: ??? Info: Could not measure total IR len. TDO is constant high. J-Link>w4 4001e504 2 Writing 00000002 -> 4001E504 Info: Could not measure total IR len. TDO is constant high. J-Link>w4 4001e50c 1 Writing 00000001 -> 4001E50C Info: Could not measure total IR len. TDO is constant high. J-Link>w4 4001e514 1 Writing 00000001 -> 4001E514 Info: Could not measure total IR len. TDO is constant high.

  • Which revision of the Evaluation Kit do you have? Have you made sure that the jumpers on P8 are there if revision 1.0, and that the switch SW4 is on if you you have revision 2.0?

Related