The C8051F850 BLDC source code is too large. How do I build this project to fit on the C8051F850?
The C8051F850 BLDC project builds using the Keil small model with local variables in data space.
The F850 only has 8 kB of Flash and 256 bytes of xdata. This example barely fits with optimization level 11.
Program Size: data=181.0 xdata=147 code=7858
It is using 181 bytes of data space. There are 109 available bytes left in xdata.
2kB of flash space can be saved by commenting out the following line in the Build_Params.h file, but then the C8051F850 BLDC board will not work with the provided GUI.
This project has only been built with Keil. Silicon Labs has not confirmed the code size is acceptable when building with IAR. We do not expect the code size will be acceptable if built with SDCC.