Skip to main content
dri.1
Visitor II
November 15, 2022
Question

When I compiling code, the IDE cannot generate hex with required capacity (the mcu is stm32f051c8t6 ide: stm32cube ide ) This is the code from AM32 ESC from github

  • November 15, 2022
  • 3 replies
  • 1288 views
make -j12 all 
 
arm-none-eabi-size f051_ll_bi_dir.elf 
 
 text	 data	 bss	 dec	 hex	filename
 
 96	 22	 1568	 1686	 696	f051_ll_bi_dir.elf
 
Finished building: default.size.stdout

0693W00000WIMAqQAP.png 

This topic has been closed for replies.

3 replies

ck.1
Associate III
November 29, 2022

On Windows and Linux minimum size of a file it displays may be 1 KB just check the minimum file size . what you are generated is 696 but windows or linux cannot show in bytes so it shows minimum size as 1 kb

Bob S
Super User
November 29, 2022

Some of what @ck.1​ said about actual file size vs. "reported in windows explorer" size.

That said, the BSS section is all the data that is "initialized to zero" during the startup code. It it not stored in the HEX file. The only things you should see in the hex (or bin) files are the "txt" and "data" sections - well, actually a copy of the data section, which gets copied from FLASH into RAM during startup.

This means that your hex file should contain data for (96+22) bytes of FLASH. Is that what you are seeing?

Tesla DeLorean
Guru
November 30, 2022

It doesn't seem to be building completely.

So perhaps re-read the build instructions, review what is happening in the build.

This isn't a ST driven project, and the page, if this is it, does indicate where support might be found.

https://github.com/AlkaMotors/AM32-MultiRotor-ESC-firmware

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..