Question
Optimization in CooCox on an STM32F415VG
Posted on July 07, 2015 at 11:49
Hi guys,
I have code that has been working great for a couple of months now on an STM32F415VG, but I added some libaries/code yesterday which took it beyond the flash sectors that I wanted it to sit in (it's a custom bootloader). I decided today to try enabling optimization to see if I could reduce the memory footprint, and it reduced it by quite a bit. However, it now no longer seems to run when I write it to the flash. I've tried disabling optimization again and even my original binary files don't seem to run (i've compared them to my backups from yesterday and they're identical). I'm using CooCox as my IDE and GNU compiler for ARM (4.8). Anyone know how to either get my code running with optimization, or how to get it back to a running state without it? #optimization