Hello,
I have tried to configure CAN0,CAN1,CAN2 on S32k312(100 pins).
I am using model based design tool box
CAN1 and CAN 2 are running successfully with no issues.
CAN0 is not working. I went through all parameters .But all parameters on CAN0 is identical to CAN1.These should not be any issues.
Please solve the issue
CAN transreceiver is not an issue.It is working fine
Attaching the model
Hello @avinashstarkenn ,
I opened the model you attached and noticed you are using the PTC2 and PTC3 pins for the CAN0 instance. Have you tried assigning different pins for the CAN0_RX and CAN0_TX signals? Or is there any specific reason for why these pins have been chosen for CAN0?
In the default configuration we provide for S32K312 Q172 and S32K311 Q100, the default pins for CAN0_RX and CAN0_TX are set to PTA6 and PTA7.
I tested these pins on the S32K312-Q172 and S32K311-Q100 and did not encounter any problems in using the CAN Communication.
Could you provide any more details that could be useful on trying to diagnose this issue?
Regards,
Robert V
Hello @robertv ,
I want my CAN pins on PTC2 and PTC3.My custom board is having pins for CAN0.
I was furious when I read you reply. I know that PTA6 and PTA7 will work as those are example code ,but I don't want that.
As NXP has provided CAN0 in PTC2 and PTC3,so it is your duty to solve this problem instead of giving excuses
Regards
Hello @avinashstarkenn ,
The examples and default configuration projects that we provide inside the Model-Based Design Toolbox aim to address specific boards, that we have used for development and testing. As for S32K312, the default configuration is designed to match the S32K312-Q172EVB hardware particularities.
If you are developing a custom PCB, you would need to reroute the pins according to your hardware schematics. To help with this process, we provide you with a series of articles that showcase the process of creating custom configurations (including CAN configuration):
- Dio: https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Interacting-with-Digital-Inputs-Outputs-on...
- UART & FreeMASTER: https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Sending-data-via-UART-and-monitoring-signa...
- ADC & PWM: https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Controlling-LED-intensity-with-ADC-and-PWM...
- CAN: https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Communicating-over-the-CAN-Bus/ta-p/175845...
Regards,
Robert V
Hello,
I already have done those steps and was able to configure those appropriate pins.
You are again giving excuses. Please pin point the issue by going through it and trying it yourself.
Again it is your duty to solve the problem with the project that I have attached.
Regards