Part Number: TMS570LS3137
We are using CCS Version: 10.1.1.00004 and ARM compiler TIv20.2.4LTS. when building the project (optimization is disabled) it fails to create memory for const data.
Example :
file.c
#pragma DATA_SECTION (Temp,"TempSection");
const UINT32 Temp = 0x98989898;
file.cmd
MEMORY
{
TEMP : origin = 0x0000FF00, length = 0x0100
}
SECTIONS
{
TempSection: > TEMP
}
The project is build successfully and .out file is generated, however memory is not generated for "Temp " in map file. As per map file it is showing used memory as "0x0" instead of 0x4. Please let us know how to resolve this issue.
map file:
name origin length used unused attr fill
-------- ------------ -------- --------- ----------- -----------
TEMP 0000ff00 00000100 00000000 00000100 RWIX