Hi,
I have encountered a problem when using platform: used:S32SDK_S32K1xx_RTM_3.0.0 for can init.
1、Testing procedure:
Use the CAN tool to send a single frame, and then power on the machine to perform CAN initialization. Under normal circumstances, the machine should first send an ACK message and then enter the receive processing interrupt function. But when the problem occurred, it was found that only ACK was returned, but the IFLAG1 register corresponding to MB was not triggered, so the receiving interrupt was not triggered.
2、Current code initialization timing:
Please guide me with this.
Thank you.
Regards,
}
Solved! Go to Solution.
Hi,
yes, this behavior is possible if Normal mode is selected in configuration. Then after Init is called, module enters Normal mode and will ACK incoming messages.
But you can select Freeze mode as operation mode in configuration. This way module stays in Freeze mode upon Init calling. Finally call FLEXCAN_ExitFreezeMode after all MBs, masks, etc init is done.
BR, Petr
Hi,
yes, this behavior is possible if Normal mode is selected in configuration. Then after Init is called, module enters Normal mode and will ACK incoming messages.
But you can select Freeze mode as operation mode in configuration. This way module stays in Freeze mode upon Init calling. Finally call FLEXCAN_ExitFreezeMode after all MBs, masks, etc init is done.
BR, Petr