- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I am already using ARM GCC and -O3, but I need my image to get even smaller to fit on EEPROM. My max file size is 118,528 bytes, and I'm slightly over that.
Is there anything I can strip out of the libraries? Please advise.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please refer to the following KBA to understand the ways that we recommend to reduce the image size:
We do not have any other recommendations other than the ones recommended in the KBA. Also, please ensure that sufficient tests are done after optimizing the size of the image.
Jayakrishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please refer to the following KBA to understand the ways that we recommend to reduce the image size:
We do not have any other recommendations other than the ones recommended in the KBA. Also, please ensure that sufficient tests are done after optimizing the size of the image.
Jayakrishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm already doing all of those optimizations, my image still needs to get smaller. There are no other tips?
When I try to use the command from the page you linked I get an error:
C:\Users\didi>arm-none-eabi-nm --print-size -sort-size --radix=d "fw.img"
arm-none-eabi-nm: -size: invalid radix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I hope you are building the project in Release mode. If yes, then we do not have any other suggestion.
Regarding the error, please try using the following command and let me know if you still face any errors:
arm-none-eabi-nm --print-size --size-sort --radix=d “path of elf file”
It should be the name of elf file or the path of elf file and not the image file. Also, there are 2 "--" before "size-sort". The KBA shows only 1 "-" before "size-sort". We will correct this in the upcoming revision of the KBA. Please test and let me know if you still face any issues.
Jayakrishna