AnsweredAssumed Answered

STM32 compiled code addresses at 0x0 not 0x08000000

Question asked by dragomir.raimond on Jul 15, 2014
Latest reply on Jul 15, 2014 by Clive One
Hi all,
I saw that the current practice is to compile all code at 0x08000000 offset. This is fine for me, but now I have an application with a lot of constant tables in flash, and more important, a "host" application which will read those tables from the compiled binary for some post processing.
While this is all doable, it is a bit annoying to substract the 0x08000000 offset all the time from the addresses.
So, what I have done is to compile the code at 0x0. I knew that the flash area is aliased at 0x0 (it must be anyway). The result is that all seems to work just fine, and I'm now having 0 based addresses burned in the flash.
My question is however: Do I miss something? Can I do this safely without having problems at a later time?
Compiling the code at 0x0 is quite nice because it is "compatible" with other vendors microcontrollers :)

Outcomes