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.

335x uart1 problem

i am using prebuilt-images from ti-sdk-am335x-evm-07.00.00.00 on my beaglebone black . and i want to open the device node of uart1 to programme on the application layer . but i don't know which one is for uart1.i guess that ttyO0 is for uart0,but i can't find ttyO1.

please give me some help~

thanks 

best regards

  • Yiwei Zhang,

    Have you enabled UART1 in the DeviceTree Source (DTS) file? By default, the SDK uses am335x-boneblack.dts which uses a lot of things from am335x-bone-common.dtsi (a DTS include file). You'll need to modify this file (or, whatever file you are using) to include the appropriate settings for UART1. You can use UART0 in am335x-bone-common.dtsi as a guide.

    You'll need to add 2 sets of settings (use UART0 as a guide):

    1. Pin Mux settings in &am33xx_pinmux structure.
    2. Add a new &uart1 structure.

    Then you'll need to compile these DT changes and load them onto the board. Upon a reboot, you should have the port that you need.