Hi,
I'm using a TMS470MF04207 and I would like to create a binary that contains only data that will be stored into its flash memory.
So I've declared and defined all my variables and put for all of them the const keyword plus the RETAIN pragma.
I also would like to flash them at specified address in flash in order to be able to access it from an application.
Here is my sys_link.cmd :
-l rtsv7M3_T_be_eabi.lib
--retain="*(.const)"
/**
* Memory Map
*/
MEMORY
{
FLASH0 (RX) : origin=0x00004000 length=0x00004000
}
/**
* Section Configuration
*/
SECTIONS
{
.text : fill = 0xffffffff {} > FLASH0
.data : fill = 0xffffffff {} > FLASH0
.const : fill = 0xffffffff {} > FLASH0
.cinit : fill = 0xffffffff {} > FLASH0
.pinit : fill = 0xffffffff {} > FLASH0
}
My problem is that when I take a look at the .map file that is created, I notice that none of my data is contained in the binary.
So I would like to know if it is even possible to do what I want to do. And if anyone can see what is wrong in what or how I've done.
If you need more information, don't hesitate !
Thank you in advance for your answers.
Chris