Clear Filters
Clear Filters

How to transmit CAN frames in Simulink with embedded coder?

1 view (last 30 days)
Hi,
I'm using Simulink in order to make one program to send CAN frames using the TMS320F28335 experimenter kit.
In the model of simulink I have add the Target Preferences's block, setting the CAN module configuration; and one constant (uint8) wired to the eCAN Transmit block.
In the eCAN Transmit block I have indicated te CAN module, the mailbox number, and one invented ID (standard frame).
I build the model and I send the .out file generated to the Code Composer Studio v5. But I don't see any pulses/frames in the oscilloscope . The probes are directly connected to the gpio18 and gpio19 (tx and rx).
What's incorrect? Should I add anything to the model in simulink?
Previously I made one model in Simulink to read CAN frames, and works properly, but this model to send frames no.

Answers (0)

Community Treasure Hunt

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

Start Hunting!