Problem with CAN_Read block from STM32-MAT package and CAN Unpack block from Simulink
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi everyone,
I'm having compatibility problems with the CAN_Read block from STM32 library and the CAN Unpack from Embedded Coder Simulink library. I need to use CAN_MESSAGE MATLAB type for working with .dbc format. The IDE field on the rxHeader is set at 4 by the CAN_Read block, while the CAN Extended flag from the CAN Unpack expects 1U when it evaluates the condition for unpacking the received message.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/409115/image.png)
This code is generated by these blocks:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/409120/image.png)
Is there any solution to use CAN UNPACK with STM32 and extended messages?
Best regards,
Ruben
0 Kommentare
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!