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.

Configure UART1 BeagleBone Black

Hi,

I'm trying to configure the UART1 in BBB, but with no successful results. I need to do two steps:

1> Write the proper clock configuration code for UART1 in platform/beaglebone/uart.c

2> Write the appropriate Pin Multiplexing code for UART1 in platform/beaglebone/uart.c

Someone could point a manual or tutorial to do this ?

Thanks in advance.

  • Hi Matheus,

    Beaglebone Black support is not provided in StarterWare 02.00.01.01 Release.

    Please refer to the patch which adds Beaglebone black support to 02.00.01.01 StarterWare.
    The patch is available in the following link
    http://software-dl.ti.com/dsps/dsps_public_sw/am_bu/starterware/latest/index_FDS.html

    You can also refer to the following thread for Beaglebone Black support in StarterWare.
    http://e2e.ti.com/support/embedded/starterware/f/790/p/320805/1135911.aspx#1135911

    To enable the UART1 clocks you can try and use the below code snippet to enable the clocks for UART1.

    HWREG(SOC_PRCM_REGS + CM_PER_UART1_CLKCTRL) |=
                                 CM_PER_UART1_CLKCTRL_MODULEMODE_ENABLE;

    while((HWREG(SOC_PRCM_REGS + CM_PER_UART1_CLKCTRL) &
        CM_PER_UART1_CLKCTRL_MODULEMODE) != CM_PER_UART1_CLKCTRL_MODULEMODE_ENABLE);

    while(!(HWREG(SOC_PRCM_REGS + CM_PER_L4LS_CLKSTCTRL) &
           (CM_PER_L4LS_CLKSTCTRL_CLKACTIVITY_L4LS_GCLK |
            CM_PER_L4LS_CLKSTCTRL_CLKACTIVITY_UART_GFCLK)));


    Reference code for setting clocks and pinmux can be found at platform/evmskAM33x/uart.c or platform/beaglebone/uart.c

    Please also check the schematic to figure out the pins on which the UART1 Tx and Rx pins are
    brought out. Also take care of the mode of the particular pins.

    For configuring the pinmux for you can refer the following thread for some inputs
    http://e2e.ti.com/support/embedded/starterware/f/790/p/282104/984781.aspx#984781

    Regards
    Anant