This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Keil- **JLink Warning: T-bit of XPSR is 0 but should be 1. Changed to 1. Erase Failed! Error: Flash Download failed - "Cortex-M0"

Hello- I am trying to program a custom nRF51822 board with a J-Link-lite. From the J-Link-lite, I am using the 10-pin header and have it wired like this: I'm using pins 1 (VCC, 3.3), 5 (GND), 2 (SWDIO) and 4 (SWCLK) which are connected to same on my board (ie: SWCLK is connected to SWCLK). I have followed directions given in some threads with similar questions, but still get the "Error: Flash Download failed - "Cortex-M0" I have the nRF51822_S110 selected (it is the only option) and have the correct algorithm selected as well.

Any help would be appreciated. I am stuck.

JLink info:

DLL: V4.80g, compiled Feb 13 2014 20:50:02 Firmware: J-Link Lite-Cortex-M V8 compiled Jul 17 2014 11:40:12 Hardware: V8.00 S/N : 518006155 Feature(s) : GDB

  • JLink Info: Found SWD-DP with ID 0x0BB11477
  • JLink Info: Found Cortex-M0 r0p0, Little endian.
  • JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots ROMTableAddr = 0xE00FF003
  • JLink Info: SYSRESETREQ has confused core. Trying to reconnect and use VECTRESET.
  • JLink Info: Found SWD-DP with ID 0x0BB11477
  • JLink Info: Found Cortex-M0 r0p0, Little endian.

Target info:

Device: nRF51422_xxAB VTarget = 3.319V State of Pins: TCK: 0, TDI: 1, TDO: 0, TMS: 1, TRES: 1, TRST: 1 Hardware-Breakpoints: 4 Software-Breakpoints: 8192 Watchpoints: 2 JTAG speed: 1000 kHz

**JLink Warning: T-bit of XPSR is 0 but should be 1. Changed to 1. Erase Failed! Error: Flash Download failed - "Cortex-M0"

Related