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.

RTOS/AM5728: UART2 access issue

Part Number: AM5728

Tool/software: TI-RTOS

My board is evmAM5728.

When I study  the UART, I find a problem that the registers about UART2 cannot correctly be read and written.

Firstly ,I create a sys/bios project  using resource explorer in CCS .The problem as follows:

1.

2. UART3  right

3.UART2  wrong

I write 15 into the UART2 register UART_LCR(0x4806200C) .But I cannot change the  value .And the k that  is the value of the UART_LCR(0x4806200C) is 1208401932(0x4806200C). How strange it is!

I try other registers about UART2 ,I get the  similar one .

4.UART1 right 

So,why the UART2 registers can not  run correctly.

Finally, I try it  using the PDK example (like UART_BasicExample_evmAM572x_c66xExampleProject ,MCASP_Audio_evmAM572x_c66ExampleProject),I find  a new problem .

I can read and write the UART2 registers correctly ,but the value in Memory Browser can not change.Why?

Can you give me some advices about it ?

  • The RTOS team have been notified. They will respond here.
  • Gf-li,

    In order to program a UART instance, you need to power and clock the module and if you look at the board library for evmAM572x, it currently only sets up UART1, UART3 and UART9 as only those pins are available for use use on the GP EVM.

    Check the file evmAM572x_clock.c, this file will show you what modules are clocked :

    Can you please do the same configuration to enable and clock the UART2 module and try this experiment. This should fix your issue. you can either update and rebuild board library after enabling UART2 clock or do it directly from the application.

    Regards,

    Rahul