Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Hello ,
I am using TI DSP controller TMS320f28069 . I want to develop a basic custom bootloader which will jump to my application code area. I have refered to many threads but couldnt get this right. Below are the steps i have performed:
-- I have taken the reference from C:\ti\C2000Ware_1_00_06_00_Software\device_support\f2806x\examples\c28\f28069_sci_flash_kernel example code and changed the following:
1) Changed the Ram linker to Flash .
2)Modified the SCI_Boot ( ) function to poll the UART . If recieved the character 'j ' then jump to application address.
SCI_Boot(void)
{
Uint32 EntryAddr;
GpioDataRegs.GPBCLEAR.bit.GPIO34 = 1;
SCIA_Init(115200);
checksum = 0;
while(1)
{
ReceivedChar = SciaRegs.SCIRXBUF.all;
if(ReceivedChar== 'J' || ReceivedChar== 'j')
{
SciaRegs.SCITXBUF ='C';
EntryAddr = 0x3D8002 ;
}
return EntryAddr;
}
}
--Made a application code project which is in Flash sector H.
-- This address of Application code is set as EntryAddress in Bootloader.
Problem statemnt: After recieving the command to jump the PC goes out of reach from bootloader code ,but the application code is not executing.
Please let me know if there is any mistake or i need to do any othe steps for the jumping to application code.
Rohit Sawa