facing issue on CAN example code

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

facing issue on CAN example code

跳至解决方案
2,565 次查看
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 

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
2,548 次查看
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 项奖励
回复
3 回复数
2,514 次查看
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 项奖励
回复
2,485 次查看
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 项奖励
回复
2,549 次查看
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 项奖励
回复