Reduce code size for bootloader
We currently have a bootloader we have been using in our products. However it was created with emWin and we are transitioning everything to TouchGFX. The current boot loader fits in code space of 0xC000 and includes a few text updates to the 480x272 TFT display during programming updates. Using TouchGFX with nothing more than a few text lines to the display puts the code size to about twice what I have available. If I removed TouchGFX resource from CubeMx I end up with code that is about 6k under the 0xC000 size.
Unless I am missing something I may have only three choices:
- Return to the emWin for the bootloader.
- Find a reduction in required resources for TouchGFX framwork
- Attempt to write directly to the framebuffer and set up the hardware manually removing the TouchGFX framework.
Any ideas or articles on reducing the footprint for TouchGFX would be greatly appreciated. It looks like I need something that fits into about 6k of code space.
Thanks
