How to transmit CAN frames in Simulink with embedded coder?
1 回表示 (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!