facing issue on CAN example code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

facing issue on CAN example code

Jump to solution
2,559 Views
selvarajasekar
Contributor III

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 

selvarajasekar_0-1702020586059.png

 

2)screen_shot_2 -in flex_mcl_ip module we can configure the flexio pins but we cant able to configure the Flexcan pins 

selvarajasekar_1-1702020787300.png

except can project in all project we have the option to configure the pins 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
2,542 Views
PetrS
NXP TechSupport
NXP TechSupport

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

View solution in original post

0 Kudos
Reply
3 Replies
2,508 Views
selvarajasekar
Contributor III

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

0 Kudos
Reply
2,479 Views
PetrS
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply
2,543 Views
PetrS
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply