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: Firmware update using CAN interface

Guru 14260 points

Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE

Hi,

I think the sample code for updating the firmware using the CAN interface is as follows.

・ Flashapi_ex2_sci_kernel

This sample code is written using the SCI interface. So please tell me the parts that need to be changed when changing to CAN.

Also if you have any documents that I should refer to, please let me know.

Thanks,

Koki

  • Hi Koki, 

    The Program/Verify functions read in data in 16 bit words, this needs to be changed to read in the data through CAN instead of SCI. This can be done by assigning SCI_GetWordData to CAN_GetWordData. In addition, whatever inputs are read in over SCI in sci_get_function.c need to be read over CAN. The ROM CAN bootloader files in C2000Ware (C2000Ware_XX\libraries\boot_rom\f28004x\revB\rom_sources\F28004x_ROM\bootROM\source) have the functions needed for CAN initialization and reading in a hex file over the CAN peripheral, this can be referenced to replace all SCI functions with the corresponding CAN functions. 

    In addition, the serial_flash_programmer host utility works with SCI, you would either need to modify it to work with CAN or you can create your own host utility. 

    The SCI Flash kernel app note is linked here: www.ti.com/lit/sprabv4 

    Thanks, 

    Anu