2022-12-19 01:50 AM
Hello,
I know that the static stack usage is available in the stm32cubeide, but I'm wondering can I do it use a command line?
after more googling, I found that there is command for arm "armlink " that can run to get the stack used for each obj file ARM Compiler User Guide Version 6.6
but i couldn't find this command in stm32cubeide, , so what is the corresponding command in ST compiler?
Thanks,
Mohammed
2022-12-19 02:28 AM
CubeIDE uses the GNU suite around GCC, where linker is LD from the binutils project. AFAIK there is no static stack analysis built into these tools.
JW
2022-12-19 03:18 AM
OK
2022-12-19 04:26 AM
I noticed that TI has a tool that can do it, and i wish if ST has the same
Software Development Organization (SDO) Applications Packages
2022-12-19 09:25 AM
You can post your request as an Idea here.
JW
2022-12-19 11:35 AM
I wish they'd pay my mortgage too.
I'd imagine there are static analysis tools available if you're willing to pay for them, unfortunately a lot of software engineers seem to want to get paid themselves, but won't pay for the work of others. Back in the day doing a stack and working set analysis was probably something your average CS major could code, along with a compiler or linker.