CAN communication with Plecs on TI C2000: is there a limit?

Hi,
I am programming a TMS320F2837xD with Plecs.
I am sending CAN messages using the CAN Tx block.

It seems like the number of such blocks in a model is limited to 16.
When I stream messages on 16 CAN IDs, they all get sent.
I add two more blocks (say on CAN ID 0x20 and 0x21), the messages are not sent
I remove two of my first CAN Tx blocks and 0x20 0x21 are then present.

Haven’t found any limitation mentioned in the documentation though.

Any idea anyone ?

Xavier, what version of PLECS and the C2000 TSP are you using? The transmission rates and step sizes are a possible factor too, so can you please share a test model?

Hi Bryan, sorry for the delay, I am working only part-time on the project where I encountered this problem.
Here is the version I’m on:


And as for the TSP:

CANTest.plecs (383.8 KB)

Attached is a test file.
It works fine as is, i.e: streaming constant float values on CANIDs 0x20-0x2F at 200ms interval.

When I add one message (CANID 0x30), I have no problems executing the program, but I’m only receiving 16 CANIDs, 0x30 is not received. I remove CANID 0x20 and I receive 16 CANIDs 0x21-0x30.

I observed the same result with my receiving software and PCAN-View

Hence my suspicion that I can only use 16 Tx blocks

Hi Xavier, I have resolved this issue and our next C2000 TSP bug fix release will allow you to transmit up to 32 CAN messages. Thank you for the bug report!

1 Like