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.

CCS/TMS320F28379D: Development CAN bootloader for TMS320F28379D

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

Hi everyone,

I want to develop a custom bootloader for CAN on TMS320F28379D. And I refer to "can_flash_kernel (f2806x)", "sci_flash_kernel" and "D_CAN.boot.c". 

But there are very differences among all these codes. I will port CAN kernel from f2806x to f28379d. 

1.Which functions are needed for this ? 

 2.What should be my steps to port can_flash_kernel from f2806x to f28379d ? 

3.How can I port CAN kernel from f2806x to f28379d ? 

4.When I develop a Can_flash_kernel source code for tms320f28379d, can I use it like a custom bootloader ? 

Thanks for all ! 

Best Regards,

Adem

  • Adem

    1, 2, 3. I would start with the F28379D SCI flash kernel since that is already setup to support the proper flash programming logic and swap out the SCI items for CAN. The DCAN boot source file you reference is already one of the pieces needed. The F2806x eCAN example should give you a good idea about what functions need to be added/modified/etc. I don't have further details on what exact functions you need to create or modify.
    4. Yes, the kernel is essentially a bootloader that supports programming flash.

    Best regards
    Chris
  • Thanks a lot for your replying Chris.

    Can I use the DCAN boot source code like custom bootloader(flash kernel) directly  ? I confused at this point. Because DCAN boot code was written on F28379d and it is a boot code like SCI_Boot. Should I make a change on this code ? 

    Regards.

  • Adem

    The DCAN boot code shouldn't require any change as far as I'm aware to integrate into the kernel. If you set your boot mode to "boot to flash" and your flash entry point jumps to your custom kernel, then it will behave similar to a custom bootloader. The kernel will start running (once copied to RAM) and you'll transfer your application via CAN to the CAN kernel which takes the application data and programs it to flash. Once programmed, it will jump to your application.

    Best regards

    Chris

  • Thank you so much Chris !