Content originally posted in LPCWare by eamonnh on Thu Apr 24 05:06:50 MST 2014
Ok - it looks like it can be done by adding in a NOLOAD attribute into the linker command file for the section containing the large data table, after it has been programmed. It won't be programmed in the next debug session, saving a lot of download time.
Excerpt from MEMORY definition in linker script:
Flash_00 (rx) : ORIGIN = 0x14000000, LENGTH = 0x100000 /* 4096k Flash7*/
Flash_01 (rx) : ORIGIN = 0x14100000, LENGTH = 0x300000 /* 4096k Flash7*/
Excerpt from SECTIONS definition in linker script:
/*--------------------------------------------------------------------------*/
/* SPECIAL FLASH LOCATION FOR BIG DATA and other rarely changed data.*/
/*--------------------------------------------------------------------------*/
.BIGDATAINFLASH (NOLOAD): ALIGN(4)
{
*(.bigdata.$Flash_01*)
. = ALIGN(4);
}> Flash_01
If there's a better way, please let me know.
Thanks - Eamonn