cancel
Showing results for 
Search instead for 
Did you mean: 

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

dri.1
Associate
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 

3 REPLIES 3
ck.1
Associate III

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
Principal

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?

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 Venmo
Up vote any posts that you find helpful, it shows what's working..