i.MX6Q UART2 ENABLİNG İSSUE

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

i.MX6Q UART2 ENABLİNG İSSUE

967 Views
mustafabakircio
Contributor IV

Hello ;

I ' m working on Wandboard Quad which has iMX6Q processor on it . I  opened it 's UART2 features from it 's  imx6q-wandboard.dts but I have some problem about it and my mind is confused if I did right or missed something while enabling the UART2 . 

I can  send data from the  UART2_TX  but even if  I set up the both console and ttymxc1 (UART2) baudrates same , I recieve nonsense character 's  .

And I enabled from  im6q-wandboard.dts adding ;

&uart2 {

               pinctrl-names = "default";

               pinctrl-0 = <&pinctrl_uart2_1>;

               status = "okay" ;

};

Did  I missing something or did I do something wrong about it ? 

Thanks for your help ...

0 Kudos
4 Replies

674 Views
mustafabakircio
Contributor IV

I couldnt attach the file sorry @igorpadykov :smileygrin: 

0 Kudos

674 Views
igorpadykov
NXP Employee
NXP Employee

Hi Mustafa

issue with receiving may be related to settings in register

IOMUXC_UART2_UART_RX_DATA_SELECT_INPUT, sect.36.4.581 i.MX6DQRM

one can attach jtag debugger or printf to check if correct settings were provided.

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

674 Views
mustafabakircio
Contributor IV

I found the imx6q_pins.h file  :smileyhappy:

the uart2 

MX6_PAD_DECL(EIM_D26__UART2_TX_DATA, 0x03D0, 0x00BC, 4, 0x0000, 0, 0)

MX6_PAD_DECL(EIM_D26__UART2_RX_DATA, 0x03D0, 0x00BC, 4, 0x0928, 0, 0)

MX6_PAD_DECL(EIM_D27__UART2_TX_DATA, 0x03D4, 0x00C0, 4, 0x0000, 0, 0)

MX6_PAD_DECL(EIM_D27__UART2_RX_DATA, 0x03D4, 0x00C0, 4, 0x0928, 1, 0)

0 Kudos

674 Views
mustafabakircio
Contributor IV

Hi igorpadykov ;

Firstly thank you for your response , 

uart2 {
pinctrl_uart2_1: uart2grp-1 {

                                 fsl,pins = <

                                                    MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1

                                                    MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1

                                                  >;

};

actually I this register configuration for uart2 , I still searching how I can reach this IOMUXC definitions  from files but when this settings are involved I getting confused  actually ALT Modes are confusing me  can you explain it briefly if you have time ? Or can you give me any example about how to make IOMUX or usage ALT modes . 

I m attaching the definition dtsi file  if you want to check it 

Thank you igorpadykov 

Best regards

Mustafa

0 Kudos