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.

Problem in configuring "CONTROL_CONF_SPI0_SCLK" register as UART2 RxD.

I am working on BeagleBone White with AM335x StarterWare. I want to use UART2.

I read the code for initilaising UART0 and modified it for UART2 by changing base register, and the clock interfaces. I enabled all L4 InterConnect clocks, UART2 Clock and all other L3 Clocks enabled in UARTModuleClkConfig.

In the Beaglebone Kit, the UART2Tx and UART2Rx are pinmuxed with SPI0_D0 and SPI0_SCLK resp.

So I modified the UARTPinMuxSetup() function to configure those SPI pins as UART Rx/Tx. But when I used the TI XDS100v2 USB Emulator to debug it. I can't see the values of the MODULE_MODE change from "0b111"  (which is configuration for GPIO) to 0b001. And obviously, the UART is not working, it is not printing anything on terminal.

The value of THR (Transmit Hold Register) is changing with each byte I send.

So I wanted to ask if I need to enable something else also.