Part Number:CC1310
Dear All,
we are working on cc1310 ,used SDK version 1.60.00.21 and IAR as IDE.
we have two applications of LED blinking,
APPLICATION_1 at location 0x000 and
APPLICATION_2 at location 0x6000 in flash.
To place the codes we made some changes,mentioned below.
IN APPLICATION_1 : .icf file
define symbol __intvec_start__ = 0x00000000;
/*-Memory Regions-*/
define symbol ROM_start__ = 0x00000000;
define symbol ROM_end__ = 0x00005000;
define symbol RAM_start__ = 0x20000000;
define symbol RAM_end__ = 0x20004FFF;
IN APPLICATION_2 : .icf file
define symbol __intvec_start__ = 0x00006000;
/*-Memory Regions-*/
define symbol ROM_start__ = 0x00006000;
define symbol ROM_end__ = 0x0000B000;
define symbol RAM_start__ = 0x20000000;
define symbol RAM_end__ = 0x20004FFF;
we flush the APPLICATION_1(at 0x000), it runs.later we jump to APPLICATION_2 using below assembly instructions.
FOR JUMP TO APPLICATION_2 :
asm("MOV R0,#0x00006000");
asm("LDR R1,[R0,#0x4]");
asm("LDR SP, [R0,#0x0]");
asm(" Bx R1 ");
Now APPLICTION_2 executing till the power ON.
ISSUE:
Whenver we Reset the Device, the appliction_1 executes everytime.
How can we change the defualt resetvector address which is at 0x00000 as it seems?