This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280049C: 280049 bootloader

Part Number: TMS320F280049C
Other Parts Discussed in Thread: LAUNCHXL-F280049C

Hi TI experts, I'm debugging 280049C CAN bootloader on developing board LAUNCHXL-F280049C &CCS10.2. In my bootloader sw project,I combine bootloader segment and main app segment in the only one project. Everything seemed to be OK from the beginning.I send CAN start command from PC sw to 280049C. The main app segment receives the CAN start command and jumps TO bootloader segment. Then bootloader segment can receive CAN bootdata from PC and Flash the candata to flash memory. After completing the process of flashing data to memory,the bootloader segment can jump back to main app segment. As a proof ,PC sw can receive data from 280049C. without power off . But when I power off the developing board LAUNCHXL-F280049C and power on again,PC sw can not receive data from 280049C any more . Next I make comparison test with CCS downloading and can downloading. 1)after CCS downloading,the sw can restart when power off and power on again. 2)Next I make a test to reboot the after-can -downloading board. I change the address 0xd00 data from a random initial data to 0xA5FF FFFF and the board can reboot and PC sw can receive can data from 280049C.. This means can downloading change something .And when power off and power on again ,the BOOTROM get different data from 0xD00. Am i clear or not?Can U give me some advice to solve this problem /Thanks a lot.

  • Hi ,

    I am looking into this issue and will get back to you soon.

    Regards,

    Ronak

  • no response. I hope this post not sink down very soon.

  • Hi ,

    Can you please confirm that when you power on and then power off your device you are expected to use CAN boot or Flash boot once the programming is done?

    For example, once your program is copied via CAN to flash do you expect the device to wait for CAN message for new command or work with the existing program in Flash?

    From your description, I feel that you are not switching to Flash boot directly when you restart the device, and the device is already programmed by CAN earlier.

    Thanks,
    Ronak

  • Hi Ronak,Thanks for your reply.I have worked for 10 more years for ti 28xDSP and this is a not easy question.

    1.The board LAUNCHXL-F280049C is not power off.
    After bootloader segment has received CAN bootdata from PC and Flashed the candata to flash memory,the bootloader segment wait for 15s and then jump back to main app segment.This is realized like below coding :

    if (CpuTimer0Regs.TCR.bit.TIF) // 5mS flag
    {
    CpuTimer0Regs.TCR.bit.TIF = 1;

    uiCanErrorCount ++;
    if(uiCanErrorCount >=3000)//60s
    {

    Application_Entry_Point();//From boot segment to mainAPP segment.

    }
    ..................
    }

    2.The board LAUNCHXL-F280049C powers off and powers on again.

    My program starts from "RESET : origin = 0x3FFFC0, length = 0x000002" to main APP segment "BEGIN : origin = 0x080000, length = 0x000002".

    3.From your description, I feel that you are not switching to Flash boot directly when you restart the device, and the device is already programmed by CAN earlier.
    --------U are right.When I power off and power on ,my My program jumps to main APP segment directly and does not switch to Boot segment .
    When main APP segment receives CAN command ,the program then jumps to Boot segment.
    4.The key point is:
    if I use CCS download .out file to 280049,after power off and power on ,the main program can start normally(PC monitor can receive data from 280049).
    if I use my own PC SW to download .out file to 280049,no power off ,the main program can start normally(PC monitor can receive data from 280049).
    if I use my own PC SW to download .out file to 280049,after power off and power on,the main program can not start (PC monitor can not receive data from 280049).