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.

TMS320F2800157: CAN Flash Programmer run through Command line

Part Number: TMS320F2800157
Other Parts Discussed in Thread: C2000WARE, , LAUNCHXL-F2800157

I am trying CAN Flashing using PCAN-USB 

Following the procedure like below using the cmd line

i

When checking the code it should be initialized but don't know how to initialize it.

Any help is much appreciated. Thanks in Advance.

  • Hi Premkumar,

    Thank you for providing these images, the pin connections are correct. The only difference between the setup you are using and the setup I am testing is the soldered connections between the CAN interface and the PEAK USB device. Just to rule out the possibility of any hardware issues, can you test your setup with some of the MCAN example projects available in C2000Ware? The projects are located at C2000Ware_Location/driverlib/f280015x/examples/mcan. There is an application note that explains these examples and how to run/analyze the results of these examples ( https://www.ti.com/lit/spracu9 ). If you see problems with the examples provided, there is likely an issue with your connection to the CAN interface.

    Kind regards,

    Skyler

  • Hi Skyler,

    I have tested  MCAN example projects available in C2000Ware. I have tested with both transmit and receive part, it is working.

    Thanks,

    Premkumar. T

  • Hi Premkumar,

    Okay, thank you for verifying. Since we have confirmed the CCS and device setup to make sure they are consistent, I believe there could be an issue with the PEAK USB setup. What is the clock frequency of the PCAN USB FD device? Below is a screenshot of the settings used on my device.

    Kind regards,

    Skyler

  • Hi Skyler,

    I have checked by setting the configuration for PEAK USB setup, that you have mentioned above, when I am setting that configuration and loading the file it is showing error . when I am setting clock frequency as 20MHZ, and bit rate as 1Mbps file is getting loaded but it is indicating red while loading.

    Please find the attachment,

    Thanks,

    Premkumar. T

  • Hi Premkumar,

    You are correct, it should be 20MHz. I didn't realize the system reset on my end to show 80MHz. I will reach out to you offline to schedule a call so we can resolve this.

    Thanks,

    Skyler

  • Hi Premkumar,

    I am replying to update the thread with what we discussed offline.

    - When preparing the device to load the kernel/application, the EMU_BOOTPIN_CONFIG and EMU_BOOTDEF should be set as discussed above and the device should be reset. Do not load the kernel or application on the device via CCS, this is done via the bootROM code and kernel code

    - Many references in the flash kernel are for the f28003x device, so they need to be modified to work on the f280015x device. Some of the main differences are GPIO configuration, Flash sector size, and Flash API usage (Flash API Guide: https://www.ti.com/lit/spruj96)

    Best,

    Skyler