2026-05-13 11:55 PM - last edited on 2026-05-14 12:20 AM by Andrew Neil
We are considering a system configuration in which a model created in Simulink is programmed onto an STM32 microcontroller, and CAN communication (both transmission and reception) is performed.
In this context, we would like to ask for your recommendations regarding:
We would appreciate it if you could share any recommended settings or best practices from STMicroelectronics.
In particular, we would be grateful for your advice on any points to consider regarding consistency between CubeMX configuration/initialization code and code generated using Simulink and Embedded Coder.
Solved! Go to Solution.
2026-05-14 12:26 AM
@Hikaru wrote:consistency between CubeMX configuration/initialization code and code generated using Simulink and Embedded Coder.
Not quite sure what you mean by this ?
The operation of Simulink is beyond the scope of this forum - it's nothing to do with ST - so you'd need to discuss that with MathWorks:
https://uk.mathworks.com/support/contact_us.html?s_tid=hc_resources
https://uk.mathworks.com/help/?s_tid=nav_help_doc
https://uk.mathworks.com/help/simulink/index.html?s_tid=hc_panel
https://uk.mathworks.com/matlabcentral/?s_tid=user_nav_community
2026-05-14 12:26 AM
@Hikaru wrote:consistency between CubeMX configuration/initialization code and code generated using Simulink and Embedded Coder.
Not quite sure what you mean by this ?
The operation of Simulink is beyond the scope of this forum - it's nothing to do with ST - so you'd need to discuss that with MathWorks:
https://uk.mathworks.com/support/contact_us.html?s_tid=hc_resources
https://uk.mathworks.com/help/?s_tid=nav_help_doc
https://uk.mathworks.com/help/simulink/index.html?s_tid=hc_panel
https://uk.mathworks.com/matlabcentral/?s_tid=user_nav_community
2026-05-14 3:09 AM
Hello @Hikaru ,
I confirm @Andrew Neil 's saying.
We can help you with CAN issues using HAL but unfortunately not with Simulink.