2019-06-12 04:11 AM
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.
Solved! Go to Solution.
2019-08-05 02:57 AM
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.
2019-08-05 03:12 AM
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.
As above image there is a option for CubeIDE so why you need to converting project?
2019-08-05 03:19 AM
Hello @Community member
By now CubeIDE generates the project in according with my peripheral definitions.
CubeIDE integrates CubeMx and Truestudio,
Yacob Hassidim.
2019-08-05 03:28 AM
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.
2019-08-05 03:53 AM
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.
2019-08-05 03:57 AM
2019-08-05 03:58 AM
@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.
2019-08-05 04:05 AM
Hello @Community member
Do you mean to load the CubeIDE project by CubMx and generate the code with TrueSTUDIO toolchain?
Yacob Hassidim.
2019-08-05 04:22 AM
@Community member Please open your CUBEMX generated project into your selected CubeIDE. Build it. After build successfully, your binary file contains in "debug" folder.
2019-08-05 05:20 AM
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.