cancel
Showing results for 
Search instead for 
Did you mean: 

Generated binary file size in STM32L4

AP_040
Senior

Is there any specific address location in generated binary file so we can know the size of that binary file?

Using this, in the firmware to read the size of binary file from that location and use it in our application.

65 REPLIES 65

Hello @Community member​ 

This is my project.

The original project was created by CubeMx and later by CubeIDE.

CubeIDE and Truestudio are same IDE.

I asked ST support about the problem. I hope they will advise me.

Yacob Hassidim.

​ 

So, as far I understand you have generated your project with the help of CubeMx with your custom peripheral initialization. Is it?

Have you generated makefile base project? If yes, then it should be work without any problem.

0690X00000983C8QAI.png

As above image there is a option for CubeIDE so why you need to converting project?

Hello @Community member​ 

By now CubeIDE generates the project in according with my peripheral definitions.

CubeIDE integrates CubeMx and Truestudio,

Yacob Hassidim.

Hello @Community member​  You are not answering my queries in proper way. Now, I am confusing what you trying to say.

As of my understanding, I given you the different way you can build you project. If you require any kind of support then tell me.

Hello @Community member​ 

Thank you very much for your support.

I am sorry that I confused you with "converting from IAR".

I started with CubeMx (for configuring of peripherals and code generation) and IAR (for IDE) and now I use CubeIDE.

CubeMx has the multi options of Toolchains.

CubeIDE has only one Toolchain/IDE option: STM32CubeIDE (see following figure).

May be I didn't understand you about "different way to build project".

Can you please explain again?

Yacob Hassidim.

0690X00000983TxQAI.png

@Community member​ 

As you said that now you are configuring cubeIDE project form CUBEMX. So, now are you able to generate the binary with normal size? First, give me your feedback on this then I will guide you to the next step.

Hello @Community member​ 

Do you mean to load the CubeIDE project by CubMx and generate the code with TrueSTUDIO toolchain?

Yacob Hassidim.

@Community member​  Please open your CUBEMX generated project into your selected CubeIDE. Build it. After build successfully, your binary file contains in "debug" folder.

Hello @Community member​ 

I am in the Debug folder.

The folder Debug contains the following files (additional to other folders that contain the object files of source code):

08/05/2019 11:06 AM   3,356,177,788 CNT32-CubeIDE.bin

08/05/2019 11:06 AM     4,406,888 CNT32-CubeIDE.elf

08/05/2019 11:06 AM     6,673,881 CNT32-CubeIDE.list

08/05/2019 11:06 AM     4,042,406 CNT32-CubeIDE.map

08/05/2019 11:06 AM     2,953,888 CNT32-CubeIDE.srec

08/05/2019 11:06 AM       3,606 makefile

08/05/2019 11:06 AM       7,845 objects.list

08/05/2019 11:05 AM        239 objects.mk

08/05/2019 11:06 AM       1,369 sources.mk

Yacob Hassidim.