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

Hardfault for simple freeRTOS application

Following is a simple application that I have created. It has no softdevice and the configuration is very similar to blinky freeRTOS example.

Source code:

main.c

All tasks are activated once but then I get a hardfault and it is rather tedious to debug this on gcc/eclipse environment as I get no stack trace for the hard fault.

Kindly let me know what could be wrong?

EDIT : All functions RT_RE_xxxxxxxxxx are blank functions.

Parents
  • I think there is code on the web for a hard fault handler that gives more information about the fault by putting the PC and other info (even a full stack trace?) in memory where you can examine it from the debugger. Does the hard fault handler from Nordic (in their /library directory of the SDK?) give more information than the default hard fault handler? Its not simple and it is tedious, but it is possible to examine the stack from the debugger.

Reply
  • I think there is code on the web for a hard fault handler that gives more information about the fault by putting the PC and other info (even a full stack trace?) in memory where you can examine it from the debugger. Does the hard fault handler from Nordic (in their /library directory of the SDK?) give more information than the default hard fault handler? Its not simple and it is tedious, but it is possible to examine the stack from the debugger.

Children
No Data
Related