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

DEADBEEF in my Code but from where?

Hi,

i have a big Problem, if i debug my code i get in some cases in register 3 the value 0xDEADBEEF and after that the device doesn't work any longer in a correct way. No i had debugged a long time but can not discover where this error is from. I check all my priorities of the parts i used and the are all 3 or 1 and i used sd_... methods to do this.

Also if i change the vale of DEADBEEF which i have defined and which is used by my assert_handler nothing happens in debugging, thats why i think the eroor comes from some where else and doen't call the assert_handler. But this is the only value where i can find the codeword 0xDEADBEEF.

What could be a reason for this error and where does it come from. In my application i did not start advertising after i enabled the sd an after init i disabled it, could that be a problem?

I realy need some help, i don't know where to look in my code to get it work saftey.

thank you and best regards, Nils

Parents
  • If you run your project with the debugger, it should be possible to see where it hangs when you stop it.

    To be certain that you catch all errors, you should also remove the reset from app_error_handler, and make sure it contains an infinite loop of some kind. Doing so should show you where the error occurred, which again should help you find the actual problem.

    If you still have trouble, can you please share your complete code, either here or in a support case, so that we can take a look?

Reply
  • If you run your project with the debugger, it should be possible to see where it hangs when you stop it.

    To be certain that you catch all errors, you should also remove the reset from app_error_handler, and make sure it contains an infinite loop of some kind. Doing so should show you where the error occurred, which again should help you find the actual problem.

    If you still have trouble, can you please share your complete code, either here or in a support case, so that we can take a look?

Children
No Data
Related