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

Error: Flash Download failed - "Cortex-M0"

I am currently using the nRF51422 DK along with the nRFgo Starter Kit. I followed the instructions in the PDF "nRF51422_DK_UG_v2.0," and I attached the nRF51422 with PCB antenna (PCA10006) to the nRFgo motherboard (nRF6310). I then connected the J-Link to the nRF51422, and then to my PC via USB. Next I connected the motherboard to my PC via USB.

I downloaded nRFgo Studio, J-Link software from Segger, and uVision (version 4 and version 5). I then tried to test the toolchain according to page 18 of the PDF. I ran J-Link Commander, and it recognizes my J-Link Lite Cortex-M. I ran nRFgo studio and I was able to select the correct SEGGER and erase all.

Next, I try to program my nRF51422 with the Blinky project. I open uVision v4.0, open the project, and build the project. When I try to build the project, I receive the following: "Error: Flash Download failed - 'Cotex-M0'"

The build output states:

Load "C:\Keil_v5\ARM\Device\Nordic\nrf51422\Board\nrf6310\s210\ant_broadcast\broadcast_tx\arm\_build\ant_broadcast_tx.axf" Set JLink Project File to "C:\Keil_v5\ARM\Device\Nordic\nrf51422\Board\nrf6310\s210\ant_broadcast\broadcast_tx\arm\JLinkSettings.ini"

  • JLink Info: Device "NRF51422_XXAA" selected (257 KB flash, 16 KB RAM).

JLink info:

DLL: V4.90b, compiled Aug 14 2014 09:40:57 Firmware: J-Link Lite-Cortex-M V8 compiled Jul 17 2014 11:40:12 Hardware: V8.00 S/N : 518108171 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

Target info:

Device: nRF51422_xxAA VTarget = 3.293V 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: 2000 kHz

Erase Failed! Error: Flash Download failed - "Cortex-M0"

  • Hi

    Have you programmed any softdevice? If you have the latest version of the nRF51422 chip you need to program a softdevice before programming an application.

    The most recent version of the nRF51422 chip capable of using all of Nordic's softdevices, see this thread.

    What are the chip markings on your nRF51422 chips? The chip markins tell if you have the most recent nRF51422 chip or the former version. The most recent version is blank, while the former chip has preprogrammed S210 ANT softdevice. The compatibility matrix for the nRF51422 hardware is found in nWP-019_v1.1, table 1.

    Also, make sure you are using compatible softdevice version with your nRF51 SDK version. Compatibility of softdevices and the SDK versions is listed in the nRF51 SDK release notes.

  • So I thought the original problem was selecting the nRF51422 from the target list. I was running Keil uVision version 4.0, because this one listed the nRF51422, while version 5.0 only listed the nRF51822. I tried running version 5.0 (after installing the legacy package) and I still got the same error.

    However I was able to get the program to build by selecting "Options for Target," selecting the Debug tab, clicking "settings" in the use window, and then clicking "OK." Without changing any settings, the program was able to build. This might be a bug?

  • Yes, this step is definitely missing in the user guide and it is a bug. I will report this as a bug in the user guide. Thank you for noticing.

  • Awesome, now I know I'm not crazy. Thank you for the quick reply.

  • Maybe this question is helpful. Please remember to vote on questions you think are good and useful.

Related