How to define a specific address location to store data
Hi All,
I'm using STMCubeIDE for an assembly project and I want to be able to store some variables in Flash memory at a specific address (like data tables).
I tried using a command like this but it didn't work:
#pragma location=0x08001000
DataStart:
.word 0
.word 0x10
When I look at the result in IDAPro this is what has actually happened (not located at the address I'd hoped for).
.text: 0800038E DataStart
.text: 0800038E DCD 0
.text: 08000392 DCD 0x10
Can someone please tell me how I can force the compiler to store values at a defined address.
Thanks.
