Im working on a fairly complex project, The hardware is locked down...
Firstly Ive discovered even on an empty program with stlink being the uploader (so i assume no boot loader is being sent) Im getting 14KB of flash being used.
When i upload my display init test code it takes up 24KB, the display init test code in arudino Uno only takes 8kb roughly...
A guy I know checked the .elf and said that the USB stack is being installed (even though im not using USB) and some flash handling code.
So firstly how do I disable USB stack getting installed to save space and anything else im not using........
Also I tested LTO. And while this did indeed shrink the output significantly, it also didnt work and seemed to brick my mcu. I wasnt able to reflash the chip with stlink through normal SWD reset, I had to hotwire a wire to the reset pin and manually pull to ground and catch it Stlink utility to erase the chip.
Anyone know why LTO would break the chip? Is LTO more experimental?
Finally because in tight on flash space and I need an RTOS, I cant use freertos as it has a rather large headroom... Chibi is the obvious next choice but I cant find any guides on installing it into rogers core? Im assuming it needs a library install, the download for chibi seems to be for coreless builds.
Oh and all this is on rogers core...
I cant use stm32s new core as the graphics library im using relies on rogers core to work.
So umm
