Be aware that Code Composer's debugger doesn't like it when the application starts from 0x1000. So you may need to switch to 0 while debugging ( Wiping out the bootloader ) before putting it back to 0x1000 for bootloading on to other splashbase boards.
User parameters are saved to the end of flash, the linker command file avoids this area.
LM3S6432.cmd file :
- Code: Select all
/******************************************************************************
*
* Default Linker Command file for the Texas Instruments LM3S6432
*
* This is part of revision 9385 of the Stellaris Peripheral Driver Library.
*
*****************************************************************************/
--retain=g_pfnVectors
// Use when creating bootable code
#define APP_BASE 0x00001000
// Use when debuging with a JTAG, will overwrite the bootloader
//#define APP_BASE 0x00000000
MEMORY
{
//FLASH (RX) : origin = 0x00000000, length = 0x00018000
// 2048 (0x800) has been assigned to the config params
FLASH (RX) : origin = APP_BASE, length = 0x00017800
SRAM (RWX) : origin = 0x20000000, length = 0x00008000
}
/* The following command line options are set as part of the CCS project. */
/* If you are building using the command line, or for some reason want to */
/* define them here, you can uncomment and modify these lines as needed. */
/* If you are using CCS for building, it is probably better to make any such */
/* modifications in your CCS project and leave this file alone. */
/* */
/* --heap_size=0 */
/* --stack_size=256 */
/* --library=rtsv7M3_T_le_eabi.lib */
/* Section allocation in memory */
SECTIONS
{
.intvecs: > APP_BASE
.text : > FLASH
.const : > FLASH
.cinit : > FLASH
.pinit : > FLASH
.vtable : > 0x20000000
.data : > SRAM
.bss : > SRAM
.sysmem : > SRAM
.stack : > SRAM
}
__STACK_TOP = __stack + 2048;