F28335 CAN communication reliability
1 view (last 30 days)
Show older comments
Manex Barrenetxea
on 26 Sep 2017
Answered: Venkatesh Chilapur
on 9 Oct 2017
I am working on the data transmission between several F28335 through CAN-Bus. However, I cannot find the information regarding the error management. My concern is if I have to include in simulink any additional control strategy to guarantee the correct transmission/reception of the data.
I guess that CRC and ACK are implemented on F28335 HW (so it will be transparent for us in Simulink, right?). But, I do not know if the DSP has an automatic retransmission after an error is detected, and if it has, I do not know either the number of retransmission tries after an ACK lack or a transmission error. Could anyone clarify my these questions please?
Thank you all in advance,
0 Comments
Accepted Answer
Venkatesh Chilapur
on 9 Oct 2017
Hi,
Right now, via simulink block, we are not supporting viewing of the error flags that are inside the eCAN module . However, has a workaround, user can use the "System Initialize" block found under "Simulink coder->Custom Code" library blocks and add lines of code that would enable the interrupt when any of the error flags are set. To more on this, please refer the eCAN section of the device user guide. You can then add the "Hardware Interrupt" block in your model and configure it for CAN interrupt to generate the ISR code. Inside the ISR, you can filter the flags to read the source of interrupt and act accordingly.
Regards, Venkatesh Chilapur
0 Comments
More Answers (0)
See Also
Categories
Find more on Block Libraries in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!