Hello,
I have a S32K146 an made a project using the SDK and the processor expert. The project has a timer pal and a CAN pal. I initialize the CAN pal in the main function. One message buffer for receive and one for tranceive messages. I tried to send messages with standard and extended IDs. No problem so far.
Now I want to put the CAN init functions into a "system_init" function. In this function the timer, can, gpios etc will be initalisied. The "system_init" function is called in the main routine. If I send a CAN message with extended ID, there is a message only with standard ID. If I send a message with standard ID, the message is a remote frame.
Am I making some mistakes or is initialisiation of CAN, Timer, etc only possible in the main function?