How to get stack usage analysis?
I use the following:
CW for MCU V10.7
Freescale Assembler for Embedded ARM family.
Version 2.0 build 59 (build 59)
Freescale C/C++ for Embedded ARM.
Version 5.1 build 59 (build 59)
Freescale Linker for Embedded ARM.
Version 3.0 build 59 (build 59)
解決済! 解決策の投稿を見る。
Your screenshots indicate you are using the depreciated/legacy Metrowerks ARM compiler. That option only exists for the GNU gcc compiler:
I hope this helps,
Erich
For bare-metal, see GNU Static Stack Usage Analysis | MCU on Eclipse
For FreeRTOS, see Understanding FreeRTOS Task Stack Usage and Kernel Awareness Information | MCU on Eclipse and FreeRTOS Kernel Awareness for Eclipse from NXP | MCU on Eclipse
I hope this helps,
Erich
Thank you very much for your reply.
I tried to build a program with "-fstack-usage" compiler option.
However, an "Unknown option" error has occurred.
Did I make the wrong setting?
Best regards,
Tatsuhiro
Your screenshots indicate you are using the depreciated/legacy Metrowerks ARM compiler. That option only exists for the GNU gcc compiler:
I hope this helps,
Erich
I appreciate your response.
Do you know if this ARM compiler does not have a stack usage analysis option?
Best regards,
Tatsuhiro
It does not have such an option.
Thank you Erich. Your explanation was easy to understand.