Hello NXP Community,
I am currently working with the S32K344 MCU in Simulink.
I have set up FreeMASTER via CAN, and it basically works fine. However, I would also like to send and receive my own CAN messages on the same CAN bus where FreeMASTER is connected.
Here I am facing two issues:
Reception (Rx):
When I try to send my own messages, the CanIf_RxIndication block is not triggered. In other words, the transmitted CAN messages are not being processed on the receive side.
Transmission (Tx):
When the application (FreeMASTER) is not connected, the CAN messages sent from the MCU have a cycle time of around 4 seconds. Normally, they should be transmitted in shorter, regular intervals, but it seems like the system is idling.
Once I connect the FreeMASTER application, the transmission cycle immediately returns to normal and the messages are sent with the expected cycle time.
My expectation is that, regardless of whether FreeMASTER is connected or not, the other CAN messages on the bus should be transmitted and received at the normal rate. Currently, without FreeMASTER, the messages slow down and are not processed on the Rx side at all.
Do you have any idea what could be causing this behavior, or which steps I should check to solve it?
Some possible causes that come to my mind are:
FreeMASTER sharing the same hardware resources with the CAN driver,
Misconfiguration or missing settings in the CanIf module,
CAN buffers not being properly triggered when FreeMASTER is not connected.
Has anyone encountered a similar situation and found a solution?