C2000 Microcontroller Blockset - XCP Not working

12 views (last 30 days)
Hello ,
I'm working with the C2000 block set. (F28378xD)
I am trying to communicate with XCP but there is no response from the processor.
Can you help me?

Answers (1)

Aman Banthia
Aman Banthia on 27 Oct 2023
Hi Muhamet,
I understand that you are trying to use XCP on CAN with C2000 and assume you are using F2837xD block set but there is no response from the processor.
Here are a few general steps you can take when troubleshooting communication issues with XCP over CAN on a TI C2000 (F2837xD) device:
  1. Check your hardware connections: Make sure that your CAN bus is correctly wired and terminated. The CAN_H and CAN_L lines should be connected correctly, and the bus should be terminated with 120 Ohm resistors at both ends.
  2. Check your CAN settings: Make sure that the baud rate and other CAN settings on your C2000 device match those on the device you're trying to communicate with.
  3. Check your XCP settings: XCP requires specific settings for the Slave Address, Master Address, and other parameters. Make sure these are set correctly.
  4. Check your C2000 configuration: Make sure that the CAN module on the C2000 device is correctly configured and enabled. This typically involves configuring the CAN GPIO pins, initializing the CAN module, and setting up the CAN message objects.
  5. Use debugging tools: Tools like a CAN bus analyzer can help you see if any messages are being sent on the bus. On the software side, you can use breakpoints and step through your code to see where it might be getting stuck.
Please refer to the following MATLAB documentation to know more about C2000 block set:
Hope that the above solution help.
Best Regards,
Aman Banthia

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!