Hello. ST Micro provides a project for a BLDC. They provide a readme with an outline of the process, and simply say to copy over the final binary file to the 3204 without any information on how to make it. I can create the HEX file with uVision 5 and convert this to a BIN using srec_cat. However, the size of the resulting file is over 128k, while the available space on the STEVAL-3204 is only about 42k.
Is there a way to create a much smaller object file, one that I would think has everything not needed stripped out (such as debug code)?
Thank you.
See i.e.:
- "Minimizing code size by eliminating unused functions during compilation"
https://www.keil.com/support/man/docs/armcc/armcc_chr1359124200053.htm
- "Optimizing for code size or performance"
https://www.keil.com/support/man/docs/armclang_intro/armclang_intro_chr1382084370492.htm
- "Methods of reducing debug information in objects and libraries"
https://www.keil.com/support/man/docs/ARMCC/armcc_chr1359124224235.htm