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.

TMS320F280039C: DCAN Flash programming using can flash kernal and the host dcan flash programmer

Part Number: TMS320F280039C
Other Parts Discussed in Thread: C2000WARE

Hi. I would like to know whether it is possible to do DCAN Flash programming using ZCANPRO FD (USBCAN FD 100U by ZLG) instead of using PEAK PCAN-USB Pro FD. Although when executing the dcan_flash_programmer.exe, it appears as below. I need a method to do this using the ZCANPRO FD if it is possible. execution error of dcan_flash_programmer.exe

  • Hi Ashan,

    The DCAN host programmer included in C2000Ware is intended for use with the PEAK PCAN-USB FD device and relies on PEAK DLLs and their API. Thus, it is not possible to use the ZCANPRO FD device.

    Kind regards,

    Skyler

  • Hi Skyler,

    I hope to use the ESP 32 S3 IC as the Host device to do the DCAN flash programming. is it possible for you to provide the output file of the PEAK PCAN-USB FD device, so that can be helpful for me to emulate the process using the esp32 s3.

  • Hi Ashan,

    Can you clarify what you mean by the "output file of the PEAK PCAN-USB FD device"? If you are looking for the compiled kernel file, the DCAN flash kernel project for F28003x can be found at C2000Ware_Location/driverlib/f28003x/examples/flash. Once this project is imported into CCS, please follow the steps indicated in this application note (www.ti.com/lit/sprad51) to generate this file. The application note also details how the DCAN host programmer is meant to be used with the PEAK PCAN-USB FD device.

    Kind regards,

    Skyler

  • Hi Skyler, 

    My requirement is to configure how the PCAN-USB sends data to the c2000 to update the firmware using the DCAN protocol. I need to understand how the PCAN device communicates with the c2000 device. Need to clarify whether it send the text file of the flash kernal at first and then sends the txt file of the appliccation program (lets say Blynk) that consists of byte values or, it send both files together at once as continuous data stream. I hope to understand how ths communication works. so I can prgram it in the esp32s3 after getting both data recieved to the memory of the esp32s3 IC. 

    Thank you, 
    Best regards,
    Ashan

  • Hi Ashan,

    First, it sends the hex file of the flash kernel and then it sends the hex file of the application program. To see the order of the files sent by the PCAN device, please refer to the application note (www.ti.com/lit/sprad51) or open up the source code of the dcan_flash_programmer in C2000Ware (C2000Ware_Location/utilities/flash_programmers/dcan_flash_programmer/dcan_flash_programmer/dcan_flash_programmer.cpp and C2000Ware_Location/utilities/flash_programmers/dcan_flash_programmer/dcan_flash_programmer/source/f021_DownloadImage.cpp). Familiarizing yourself with the source code of the host programmer and the application note will help you understand the communication process.

    Kind regards,

    Skyler

  • Thank you very much I will refer it.

    Kind regards,
    Ashan

  • Hi Ashan,

    Sounds good, I will be closing the thread now.

    Kind regards,

    Skyler