2025-12-03 9:46 PM
It seems that the default map file is set to "folder name.map".
How can I change this file name and path?
I can see the analyzed view when I run "Open memories analysis" menu from the map file by force.
2025-12-04 4:12 AM
Hi @sjpark-dio
to change the map file name you should go to gcc-arm-none-eabi.cmake file and change it in this line
unfortunately for the path you can't change it but you can right click on the new map file in the explorer view and open it with the build analyzer
2025-12-04 5:31 PM
Thanks @Nawres GHARBI for the answer.
Yes, the map file name can be changed from cmake file.
But I want to change the default file name in the 'STM32Cube Build Analyzer' extension.
Because, it looks link to project name or folder name by default. So it can't be recognized automatically after build if I change output file names.
And there is no problem when I try "right click on the new map file in the explorer view and open it with the build analyzer"..^^
2025-12-04 9:52 PM
To me no way to get a solution here. I guess STM32Cube relies on a bit of CMake capability to retrieve project name and build directory and ... a bit of heuristic or hardcoded kind stuff to retrieve under the hood the map file - ie. map file = <build dir>/<project name>.map - .
If you look at CMake cache you'll see no map file reference is kept by CMake.
STM32Cube cannot do magic I bet. So file explorer contextual feature is nice already to support a bit of flexibility aside automation. STM32Cube may parse CMakeLists.txt structure but to me it's kind oif dead end CMake being a complete language the opportunity to fail is huge considering complexity it may be.
Updating file name cannot work according to me ... let's update project name if possible to you.