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

crashing from _start without even entering into main() function

Hi,

I am using nrf52832 custom board and sdk17.2.0.

My application is a Freertos application. I see that my application is going to hardfault from _start without entering into the main() function.

Attached sdk_config.h , FreeRTOSConfig.h and the screenshot of the hardfault for reference.

Can someone please help me to resolve the issue?

 8358.FreeRTOSConfig.h6215.sdk_config.h

Parents
  • Seems like it is happening inside the NRF_LOGs. 

    1. If the function call stack can be trusted, then try to disable the logs to see if the issue goes away.
      1. If it does, then the log buffer might not be enough and we can focus more on looking a bit deeper into this NRF_LOG configuration issue. 
      2. If it does not help, then most likely the stack is corrupt and I wont be trusting this function call stack much.
    2. If this is a stack corruption then could happen because your thread might have caused a stack overflow. Try to increase the stack size significantly for this thread and see if that helps.
Reply
  • Seems like it is happening inside the NRF_LOGs. 

    1. If the function call stack can be trusted, then try to disable the logs to see if the issue goes away.
      1. If it does, then the log buffer might not be enough and we can focus more on looking a bit deeper into this NRF_LOG configuration issue. 
      2. If it does not help, then most likely the stack is corrupt and I wont be trusting this function call stack much.
    2. If this is a stack corruption then could happen because your thread might have caused a stack overflow. Try to increase the stack size significantly for this thread and see if that helps.
Children
Related