Other Parts Discussed in Thread: C2000WARE
We Have two partitions for two applications running in the TMS320F2808 controller.
1.One application is running in Sectors A and B.
2.Second application is running is Sectors C and D.
After power on controller enters into the first application then immediately checks for common flag b/w application one and two.And jumps to second application and the normal initialisation steps happens for the second application.
In the second application when we enter any function we are getting TRAP instruction with PC address pointing to 0x66.
Below is the instruction for jump from application one to two.
void main (void)
{
Uint32 lastFgCounter = 0;
//here is the code which check for common flag b/w applications
asm(" LB 0x3EC000");//Jump instruction to the next application
// Initialize System Control: PLL, WatchDog, Peripheral Modules' Clocks
InitSysCtrl();
// Initialize GPIO
InitGPIO();
// Initialize the PIE control registers
InitPieCtrl();