Here we are working in s32k324. We tried s32k312 CAN example code configuration into s32k324. But it is not working. If you CAN driver code for s32k324 means kindly share it to us.
I've entered the following values for FlexCAN bitrate configuration and updated the code.
But the code does not get updated. Old config values are still there in the FlexCAN_Config0 structure variable. But other parameter values are gets updated.
As you can see in the following image, the S32K344 is pin-to-pin compatible with S32K324. So it is easier to port the examples to the MCU you are using.
I have tried this code for s32k324 but this is also not working. Same s32k344 code we checked in Evolution Board. It send the data in one time. In s32k324 controller CAN code not working and producing Bus error. Kindly give the clarification for CAN configuration.
The function Clock_Ip_GetClockFrequency returns the frequency of a given clock, in this case, FXOSC. Make sure that the clock configuration on Config Tools has the same value as your external clock/oscillator.
Could you share your example project so I can test it from my side? Or, if it is not possible, could you share all the configurations made in COnfigTools? So I can try to replicate the problem using an example code.