Other Parts Discussed in Thread: MSP430F2419
I would like to relocate my code currently running in Flash and fLASH2 (MSP430F2419) to extended memory (starting at 0x10000) exclusively. I modified the link cmd file as follows:
.text : {}> FLASH2 /* CODE */
.text:_isr : {} > FLASH /* ISR CODE SPACE */
.cinit : {} > FLASH2 /* INITIALIZATION TABLES */
.const : {} > FLASH2 /* CONSTANT DATA */
.cio : {} > RAM /* C I/O BUFFER */
.pinit : {} > FLASH2 /* C++ CONSTRUCTOR TABLES */
FLASH : origin = 0x2100, length = 0xdebe
FLASH2 : origin = 0x10000,length = 0x10000
I left isr in Flash section. The code seems to run ok. However, if I pause it using code composer debug environmnet (while in sleep mode), and restart it again, I get a software reset and reenter main as if I just rebooted. I am running 4.2.1.04 of CCS. I am I missing something? This doesnt happen if I load the code in both FLASH and FLASH2. Please help. Thanks.