cancel
Showing results for 
Search instead for 
Did you mean: 

change the default *.map file name in the STM32Cube Build Analyzer

sjpark-dio
Associate

It seems that the default map file is set to "folder name.map".

How can I change this file name and path?

sjparkdio_0-1764826890513.png

I can see the analyzed view when I run "Open memories analysis" menu from the map file by force.

 

3 REPLIES 3
Nawres GHARBI
ST Employee

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

NawresGHARBI_0-1764839039096.png

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

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"..^^

@sjpark-dio 

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.

Cartu38OpenDev_0-1764913519454.png

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.