To enable UART1 of MCIMX7D7

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

To enable UART1 of MCIMX7D7

636 Views
tamotsu
Contributor III

Hello.

I want to use MCIMX7D's UART1 in DTE mode, but it doesn't work.

IOMUXC_SW_MUX_CTL_PAD_UART1_RX_DATA     WR32(0x30330128, 0x01);

IOMUXC_SW_MUX_CTL_PAD_UART1_TX_DATA     WR32(0x3033012C, 0x01);

UART1_UFCR    WR32(0x30860090, 0x0240);           Set DTE mode

UART1_UBIR     WR32(0x303600A4, 0x000F);

UART1_UBMR   WR32(0x308600A8, 0x00FA);

UART1_CLK_ROOT  WR32(0x308600B4, 0X0000);

UART1_UCR2    WR32(0x30860084, 0x4027);

UART1_UCR1    WR32(0x30860080, 0x0001);

The TXD pin (L3) remains LOW. Please let me know if there any mistakes or additions to the setting.

Best regards.

 

Labels (1)
0 Kudos
Reply
4 Replies

613 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Are you using RTOS?

0 Kudos
Reply

608 Views
tamotsu
Contributor III

Hello Zhiming_Liu.

I'm not  using RTOS.

The port functionaly is checked using the function for configuring the bebugger's initial seting.

Debugger is J-Link + J-Flash of SEGGER.

Setting up IOMUXC worked fine.

I have comfirmed that the DCEDTE function of UART1_UFCR also works.

However, even if I set UARTEN and TXEN to 1 and set a value to TXDT, it is not sent.

 

0 Kudos
Reply

605 Views
tamotsu
Contributor III

Hello Zhiming_Liu.

UART1_UCR1 and UCR2 do not change to the reset value even if the setting value is written and then read.

Best regards.

0 Kudos
Reply

599 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

This is reference setting for using DTE , please refer the kernel driver and dts.

Zhiming_Liu_0-1701737893293.pngZhiming_Liu_1-1701737930101.pngZhiming_Liu_2-1701737940999.pngZhiming_Liu_3-1701737966020.png

Zhiming_Liu_4-1701737989598.png

 

 

0 Kudos
Reply