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

Changing Board, JLink Issue

I've recently began testing the NRF51 SDK, however, due to some availability issues, I'm using the PCA10003 Board. I've followed the two Tutorials here, and I am able to get everything up and running without changing any settings. However, I'd like to assert some more control over the board, and get proper access to the GPIO ports, and get the buttons/LEDs working. So I've changed the board definition in the C/C++ settings, and left everything else as it was.

I can build the Tutorial project just fine, but when I try to flash it, I get the following error message:

Load "C:\Nordic Semiconductor\nRFgo SDK 2.3.0.10040\source_code\projects\ble_peripheral\ble_app_uart\pca10028\arm5\_build\nrf51422_xxac_s110.axf" Set JLink Project File to "C:\Nordic Semiconductor\nRFgo SDK 2.3.0.10040\source_code\projects\ble_peripheral\ble_app_uart\pca10028\arm5\JLinkSettings.ini"

  • JLink Info: Device "NRF51422_XXAC" selected.

JLink info:

DLL: V4.96m, compiled Mar 13 2015 15:13:04 Firmware: J-Link OB-SAM3U128 V1 compiled Nov 28 2014 10:24:11 Hardware: V1.00 S/N : 480208069

  • 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 = 0xF0000003

Target info:

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

Erase Failed! Error: Flash Download failed - "Cortex-M0" Flash Load finished at 12:56:41

According to other responses here, it seems as if I'm trying to flash to the softdevice. image description

Parents
  • The PCA10003 uses an older chip then the PCA10028. So you should compile against target nRF51422_xxAA (not xxAC)

    If you change the target under Options -> Device, the IROM and IRAM settings will be reset, and you need to change it back to the correct ones. See this thread: devzone.nordicsemi.com/.../

    The xxAA chip also only have 16KB of RAM so set the IRAM size to 0x2000 (not 0x6000)

    I think you also need to re-select "J-LINK / J-TRACE Cortex" in under the 'debug' section as well.

Reply
  • The PCA10003 uses an older chip then the PCA10028. So you should compile against target nRF51422_xxAA (not xxAC)

    If you change the target under Options -> Device, the IROM and IRAM settings will be reset, and you need to change it back to the correct ones. See this thread: devzone.nordicsemi.com/.../

    The xxAA chip also only have 16KB of RAM so set the IRAM size to 0x2000 (not 0x6000)

    I think you also need to re-select "J-LINK / J-TRACE Cortex" in under the 'debug' section as well.

Children
No Data
Related