This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Enabling ttyO1,ttyO2,ttyO3 in am335x

Hi all,

        I am tring to access ttyO1,2,3 

I am using SDK 05.07.00.00 in my hardware but there is problem in access ttyO1 , ttyO2 and ttyO3  while is working fine as console (UART1)

while boot I can see

:omap_uart:ttyO0 at MMIO 0x44e09000 (irq = 72 ) is a OMAP UART0

console [ttyO0] enabled

omap_uart:ttyO1 at MMIO 0x48022000 (irq = 73 ) is a OMAP UART1

omap_uart:ttyO2 at MMIO 0x48024000 (irq = 74 ) is a OMAP UART2

omap_uart:ttyO3 at MMIO 0x481a6000 (irq = 44 ) is a OMAP UART3

omap_uart:ttyO4 at MMIO 0x481a8000 (irq = 45 ) is a OMAP UART4

omap_uart:ttyO5 at MMIO 0x481aa000 (irq = 46 ) is a OMAP UART5

as to check the devices i have check:

#ls /dev

it shows ttyO0,ttyO1,ttyO2,ttyO2,ttyO4,ttyO5 .........

As per Some post when I try to debug:

root@evm# cat/sys/kernal/debug/omap_mux/ecap0_in_pwm0_out    but it show no file found

and for other debug commands it shows same error;

I have checked /etc/inittab file in which I have find command --> getty 115200 ttyO0

I have tried to run  from console but nothing happens ---while it get hangged.for other tty*

Thanks for your reply:

Praveen

  • Hi Praveen,

    Are you testing in your costume board or  TI SK board or any other board.

    Can you post the details regarding on which pins these uarts are connected.

    If possible  attach pinmux.dat file of your project by generating .dat file using pin mux utility.


    Regards,

    Rajeev


  • Hello Rajeev ,

                       Its my custom board and I am using UART0_RXD/TXD for console and UART3_RXD/TXD for other peripheral

    Regarding UART0_RXT/TXD or ttyO0 is working fine I can able to see the booting at 115200 baud but regarding ttyO3 i can't see any changes.

    I have tried to open ttyO3 port from console by excuting :

    root@..# chmod 777 /dev/ttyO3

    after this command I can able to find ttyO3 port is open

    but i am not able to read and write data on bus;

    I am new .so,dont know how to  generate pinmux.dat file.

    I am executing an application based on Qt Creator on AM335x kit when I am using ttyO0 as my port and program it works well and transmit data as it is required but when going for ttyO3 with same baud rate I am not able to see any  output; Rest of the configuration are as ttyO0.

    From application I can able to find out ttyO3 Port is open but I cant see even a garbage transmission.

    Regards:

    Praveen

  • Hi Praveen,

               Following is the link to download pinmux utility from TI, which is very useful  as all most all the pins in AM335x have different modes i.e., mode0 to mode7.

    http://software-dl.ti.com/dsps/dsps_public_sw/am_bu/ampinmux/latest/index_FDS.html

      Install it in windows PC and try to create .dat file according to your hardware pins

                 Regarding ttyO3 there may be initialization  problem regarding pins. Can you tell me on which hardware pins have you connected. If you can send me schematics for your UART PINS, it will be more help full. 


    Regards

    Rajeev.

  • Hello Rajeev ,

                 You are absolutely right there is problem regarding pins 

      Regarding ttyO3 is running fine as there is hardware problem

    Thanks alot. 

    Regards

    Praveen