Unable to access the UART port using A55 core of imx93 board (Digi coreconnect 93)

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

Unable to access the UART port using A55 core of imx93 board (Digi coreconnect 93)

跳至解决方案
1,041 次查看
rk4
Contributor I

Dear NXP Support Team,

 

I want to attach a sensor in the UART port of the board and access via A55 core.

I have tried below things but neither of them worked.

  • Total available port from UART1 to UART8 – 8 Nos

  • The UART4 port as a Xbee interface is available like ttyXBee, so I also attempted to transfer data using c code and directly using command line but none of them where worked.

  • Followed the URAT instruction from this website, and I am getting port ttyLP3, ttyLP5 and ttyLP6 port. The port ttyLP3 and ttyLP5 have no pinout on the board. The ttyLP6 is connected with the console port which is ttyACM0 (UART to USB), so we cannot use it.

  • Tried to configure UART7 (Mikroe interface) but the tty node is not created, maybe it missed configuration from dts side. (I am unsure about it)

  • The UART1 is connected to the Bluetooth chip, so it cannot be accessible.

  • No details found from UART2 and UART8.

 

Can you guide me how to access the UART port using A55 core of the board and C language programming?

 

 

0 项奖励
回复
1 解答
994 次查看
Chavira
NXP TechSupport
NXP TechSupport

Hi @rk4!

 

Your UART7 is configured as a rs485 in file ccimx93-dvk.dts

&lpuart7 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_uart7>;
	linux,rs485-enabled-at-boot-time;
	digi,rts-gpio = <&gpio2 10 GPIO_ACTIVE_HIGH>;
	/delete-property/dmas;
	/delete-property/dma-names;
	status = "okay";
};

 

only delete the line linux,rs485-enabled-at-boot-time; and the uart7 should be listed in the device folder with the name ttyLP6

 

Best Regards!

Chavira

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,004 次查看
rk4
Contributor I

Dear @Chavira , 

 

Thanks for prompt response.

 

Could you tell me how to create a ttynode for UART7 (MIKROE interface) in A55 core? OR if its already available in it, can you tell me what is the name of it?

0 项奖励
回复
1,001 次查看
Chavira
NXP TechSupport
NXP TechSupport

HI @rk4!

 

Please share your device tree file.

 

0 项奖励
回复
997 次查看
rk4
Contributor I

Hello @Chavira , 

 

Please find attached dts file that I am using.

0 项奖励
回复
995 次查看
Chavira
NXP TechSupport
NXP TechSupport

Hi @rk4!

 

Your UART7 is configured as a rs485 in file ccimx93-dvk.dts

&lpuart7 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_uart7>;
	linux,rs485-enabled-at-boot-time;
	digi,rts-gpio = <&gpio2 10 GPIO_ACTIVE_HIGH>;
	/delete-property/dmas;
	/delete-property/dma-names;
	status = "okay";
};

 

only delete the line linux,rs485-enabled-at-boot-time; and the uart7 should be listed in the device folder with the name ttyLP6

 

Best Regards!

Chavira

0 项奖励
回复
1,035 次查看
Chavira
NXP TechSupport
NXP TechSupport

HI @rk4!

Thank you for contacting NXP Support!

 

I don´t have access to the device tree of that board since is not an NXP board.

I can help you to analyze the device tree if you can share the device tree with me.

 

Unfortunately we don´t have any guide of how to use UART ports in Linux, but you can check some guides in internet like this guide.

 

For Further support please contact to digi support.

 

Best Regards!

Chavira

0 项奖励
回复