Vscode Zephyr seeing code

I was trying to figure out what what code was being ran before main() function.  Specifically the code was not getting to my main() function and was stuck in the cpu idle code.  I figured out via trail and error with google's help that issue was with hardware not having 32Khz crystal.  However it would have been far easier if I could see the code that was being compiled and ran on the hardware.  Is there any way for old developers like me to actually get a directory of the code that is actually being ran on the hardware.  

Remember old developers like me have learned that we can trust others code, but only with verification.  So we like to understand at low levels what is going on because we have been burned so many times before.   Is there anyway we can do this with Nordic and Zephyr? 

Parents
  • Hello,

    I can't think of a proper solution for your issue. But understanding the bootup sequences and execution context might shed some light. There is also a way to generate preprocessor build files for an application. The preprocessor handles directives for inclusion of other header files (#include), macro definitions (#define), conditional compilation, and other preprocessor directives. See this page.

    To see the code that runs before the main() function, you can use a debugger to step through the program execution. See the debugging section.

     

    Kind Regards,

    Abhijith

Reply
  • Hello,

    I can't think of a proper solution for your issue. But understanding the bootup sequences and execution context might shed some light. There is also a way to generate preprocessor build files for an application. The preprocessor handles directives for inclusion of other header files (#include), macro definitions (#define), conditional compilation, and other preprocessor directives. See this page.

    To see the code that runs before the main() function, you can use a debugger to step through the program execution. See the debugging section.

     

    Kind Regards,

    Abhijith

Children
No Data
Related