MEMORY
{
.p_interrupts_flash_ROM (RX) : ORIGIN = 0x0000, LENGTH = 0x00A4 # reserved for 5682x interrupts
.p_flash_ROM (RX) : ORIGIN = 0x00A4, LENGTH = 0x3F5C # pROM is 16K words total
# p_flash_ROM_data mirrors x_internal_RAM, mapping to origin and length
# the "X" flag in "RX" tells the debugger flash p-memory.
# the p-memory flash is directed to the address determined by AT
# in the data_in_p_flash_ROM section definition
In your application code, define the array in this way.
#pragma define_section mysection ".mysection.data" RW
/* 2. Specify the data to be put into the section. */
#pragma section mysection begin
int a[10] = {'00','10','12','13','14','15','16','17','18','19'};
int b[10];
#pragma section mysection end
You have to modify the link file in this way:
//0x3000 adress and the length is 0xBFFF,pls refer to sdm_pROM_xRAM.cmd file for detail inf.
// .x_Data1 (RW): ORIGIN =0x3000,LENGTH = 0xBFFF #internal data memory space
// .ApplDat:
// {
// * (.mysection.data)
// }> .x_Data1