AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Call c function from asm iar arm1/6/2023 ![]() #pragma call_graph_root directly in the code). (Note that instead of using a control file, it is possible to use With the above, stack usage analysis now knows that these (not called) functions are " call graph roots". suc), the following must be specified: call graph root : test_task Ĭall graph root : SysTick_Handler, UsageFault_Handler call graph root : test_task Ĭall graph root : SysTick_Handler, UsageFault_Handler These functions are not (directly) called by anyone, so in the Stack Usage Control file (. It also contains an OS task: ' test_task'. The example project also contains two interrupt handlers: ' SysTick_Handler' and ' UsageFault_Handler'. The linker map file now contains stack usage information in the section called " STACK USAGE". To enable stack usage analysis, the following project option is enabled: Project > Options > Linker > Advanced > Enable stack usage analysis The simple example project contains a ' main' and a ' test_func' function. Exampleĭownload and open the example project from the link: Example project for IAR Embedded Workbench for ARM 7.20.1.zip. This technical note describes how to get stack usage statistics from an application, and also shows the syntax of stack usage control files (. The stack is described in " IAR C/C++ Development Guide", chapter " Storage of auto variables and parameters".
0 Comments
Read More
Leave a Reply. |