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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-11-14 11:01 PM
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
- Labels:
-
STM32CubeIDE
-
STM32F0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-11-29 6:28 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-11-29 10:54 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-11-30 5:38 AM
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
Up vote any posts that you find helpful, it shows what's working..
