Hi,
I am currently using S32 Design Studio version 3.4, and I have imported the S32K3 RTD AUTOSAR 4.4.2.0.0 D2203 example projects. Specifically, I imported the can_example_s32k344 project for use with my S32K344 board. While I have successfully tested I2C, SPI, and UART functionalities, I am encountering issues with the can_example_s32k344 and FlexCAN_Ip_example_s32k344 projects.
Upon importing these projects, I noticed that there was no pin configuration provided. Consequently, I manually configured the pins. However, I am uncertain about how to configure the FLEXCAN pins within the FLEXCAN module. Unlike the UART example code and others, there is no platform module available for assigning specific GPIO pins to FLEXCAN pins in the CAN example code.
I would appreciate your prompt assistance in guiding me on how to configure GPIO pins for FLEXCAN in the CAN example code. Thank you.
I have included screenshots of the configurations for both the UART and CAN examples.
1)Screen_shot_1 -FLEXCAN module how to configure the FLEXCAN pins
2)screen_shot_2 -in flex_mcl_ip module we can configure the flexio pins but we cant able to configure the Flexcan pins
except can project in all project we have the option to configure the pins
Solved! Go to Solution.
Hi,
pins are configured in Pins config tool.
You can refer to below example tested on S32K344EVB-Q172;
https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-FlexCAN-Ip-TX-RX-EnhanceRXFIFO-test...
BR, Petr
Hi,
Thanks for your response. In the CAN example code, is it possible to communicate using the CAN basic protocol, or is the communication limited to CAN FD only? Please provide clarification on this matter.
I have another question. I am not using an evaluation board; instead, I am using only the S32K344 on a standard board (photo attached). The eval board uses the TJA1153 transceiver, but we are using the TJA1050 CAN transceiver. Could this difference cause any issues?
Thanks and Regards,
Rajasekar A
Hi,
If have CAN FD enabled still it is possible to send/receive standard CAN messages.
A TJA1050 can be used as well, setupCanXCVR function used in the example is not needed.
Just this transceiver has max 1Mbps bitrate, so either reconfigure data phase bitrate in the example or do not use bitrate switching.
BR, Petr
Hi,
pins are configured in Pins config tool.
You can refer to below example tested on S32K344EVB-Q172;
https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-FlexCAN-Ip-TX-RX-EnhanceRXFIFO-test...
BR, Petr