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.

TMS320F280049: CAN BOOTLOADER

Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE, TMS320F28377S

Hi. Task: download firmware via CAN and write it to flash.Any working examples?

  • Hello,

    Thanks for your question! While there are no examples of the specific use case mentioned, the C200Ware software and documentation (linked here) does provide the two individual parts required for this kind of development:

    1. CAN communications examples (located in C2000Ware_*version#*/driverlib/f28004x/examples/can). This can be used to get the firmware to the device via CAN.

    2. Flash examples (located in C2000Ware_*version#*/driverlib/f28004x/examples/flash). These can be used to write the firmware to flash.

    By combining these examples for the specific use case needed, it is possible to develop such a program.

    Let me know if this answers your question!

    Regards,

    Vince

  • Hi Vince,

    If I start with this:

    1. CAN communications examples (located in C2000Ware_*version#*/driverlib/f28004x/examples/can). This can be used to get the firmware to the device via CAN.

    does this mean that I first need to flash code to the microprocessor to initialize the CAN bus or can I use the CAN bus to transmit the data I need to a brand new microprocessor without initializing it first?

    Thank you,

    Trevor

  • Hi Trevor,

    Thanks for the clarification question. There is an additional option to simply boot from CAN (see the following thread for more information regarding this):

    https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/704634

    Let me know if this thread helps answer more closely what you are looking to do!

    Regards,

    Vince

  • Vince,

    Thank you for the link, this really helped. In summary, there is no way to program a fresh microcontroller with CAN. We must first flash using a different method to set it up. 

    Is this true for all microcontrollers that you offer such as the TMS320F28377S as well?

    Thank you,

    Trevor

  • Hi Trevor,

    This is correct for all C2000 microcontrollers, the CAN boot mode is not configured by default and requires a change of the boot options to choose. But once OTP has been programmed to change the boot options for the device, CAN can be used as the default boot option from then on!

    Let me know if that clears up the CAN boot process!

    Regards,

    Vince

  • Vince,

    Yes that cleared it up quite nicely. thank you.

    Trevor