Hello NXP friends,
I'm encountering some issues with CAN bus data acquisition for an IMU in FreeMASTER, and I would appreciate any guidance or suggestions you can provide.
Hardware - Custom S32k344 PCB
SDK - RTD3.0.0
IDE - Simulink MBDT with S32CT
Problem Description:
noobsplzwin_8-1718993636263.png
noobsplzwin_7-1718993523776.png
noobsplzwin_9-1718993656249.png
- I have configured three types of CAN Hardware Objects receive: polling, interrupt for standard ID and interrupt for extended ID to ensure I am not missing any messages.
- It looks like our CAN configuration is reading the CAN messages with polling instead of interrupting. (This explains why changing Simulink step time would get more data reading)
Questions
- What could be causing the controller to prioritize reading from CAN ID 281 and neglecting the other IDs? I feel like some of my S32CT configuration is incorrect.
- For S32k3 MBDT, is there any way we can specify which CAN Controller to start reading? So far, it looks like the only way to read is via IRQ, which reads all the messages from all CAN Controllers are configured.
I have attached my MEX file and Simulink model for reference. : ( My team has been troubled by this random issue for almost a week. Any help or advice would be highly appreciated!!!
Regards,
Connor