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

No Cortex-M SW Device Found?

I have the eval board pca 10001. After compiling the demo app for nrf51822_xxaa (256k), keil displays "no cortex-m sw device found" when I trying to flash or debug from their ide.

However, I'm able to use the Nordic Semi master control panel to flash the board using the compiled hex file. After doing that, the 2 leds alternately blink.

I ran the recover option using the nrfgostudio successfully, but keil still displays the same message.

I tried reinstalling keil, segger, nordic sdk, but no luck. Any idea what could I could be doing wrong? Thanks.

  • I think you may use ble example like ble_app_hrs on pca 10001. That example is configured for device to go to sleep when device is powered on.

    You should check the function "system_off_mode_enter()". If this function is run, you do not debug the code, download the hex file and nrfgostudio print "Recover" display.

  • The blinky_example was the one I compiled. After flashing with the Nordic Master Control Panel, the the lights started blinking. I wasn't able to flash or debug with Keil though.

    The output of nrfjprog --recover is as follows:

    System off disabled until pin reset or power on reset is done. Erased ALL (CR0, CR1 and UICR) Resetting, SysReset Applying pin reset Successful...

    I'm really stuck with the "No Cortex-M SW Device Found" message. I've tried removing all the software, tried different USB cables, etc.

    What's different between the Nordic Master Control Panel Flashing and the Keil IDE? They both use jlink, right?

  • Just to clarify, the blinky example did not flash because keil could not find the cortex-m sw device.

  • Just to clarify, the blinky example did not flash because keil could not find the cortex-m sw device.

  • Have you seen this question?

    If neither of the problems shown there helps, I'd recommend you to open the target options in Keil, go to the debug settings, and make sure that the J-Link selected there is the correct one (as identified by the serial number). Also make sure that the interface is set to SW, not JTAG, and that you can see a chip in the upper right corner.

    Finally, you should make sure that you don't use version 4.76 of the Segger tools, as this apparently had a bug causing issues with our devices. Both older and newer versions (4.76a and above) should work fine.

    BTW, Master Control Panel isn't meant to flash regular applications, the feature is there just to be able to program the Master Emulator firmware. For normal applications, you should rather use nRFgo Studio.

Related