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?

Parents
  • work out why you're in the hardfault handler. Unfortunately that's actually hard and requires looking at the registers and crawling around the stack to try and figure it out.

    And it all depends in the end what exactly it is you're trying to fix. Does it do this only when you debug it (and you didn't answer the 'are you debugging with bluetooth going question) or are you going right to the hardfault handler on start. If the former, you can't debug the bluetooth stack like that, if the latter, put a breakpoint in somewhere earlier in your code and start stepping to find out where you crash.

    SystemInit() and reset_handler() are two places to try. It should get at least to one of those.

Reply
  • work out why you're in the hardfault handler. Unfortunately that's actually hard and requires looking at the registers and crawling around the stack to try and figure it out.

    And it all depends in the end what exactly it is you're trying to fix. Does it do this only when you debug it (and you didn't answer the 'are you debugging with bluetooth going question) or are you going right to the hardfault handler on start. If the former, you can't debug the bluetooth stack like that, if the latter, put a breakpoint in somewhere earlier in your code and start stepping to find out where you crash.

    SystemInit() and reset_handler() are two places to try. It should get at least to one of those.

Children
No Data
Related