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

No source available for " " in debug mode

im following (devzone.nordicsemi.com/.../) step to "Setting up a project for debugging in Eclipse"

i run the debug config and click suspend then get some problems

it shows

  • No source available for "HardFault_Handler() at 0x456"
  • No source available for "() at 0xfffffff9"
  • No source available for "__Vectors() at 0x0"

image description

how to solve it?

  • I believe RK's answer is valid. The hardfault hander is there to catch hardfaults. Which means that if anything goes wrong and the code fails, you will get to the hardfault handler. So now you need to try to figure out why the code fails.

    This might be the reason:

    As RK asks, are you debugging while using the BLE stack? If so, the chip can hardfault if you break the code and then continue again. Because the BLE stack is running in real time, and it uses timers to activate the radio at exactly the right timing. If you break while debugging, you must restart the chip and reinitialize the BLE stack in order to continue debugging.

    So, Debug -> break -> restart -> debug -> etc...

    Do not click continue.

Related