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.

how can I trace the information about localUART_Regs?

Hi All

      I debug a project  which include the struct CSL_UartRegs

      CSL_UartRegs * localUartRegs = (CSL_UartRegs *)((Uint32)UART_Regs + uartNumber * 0x1000);

      I want to know the value of the localUartRegs. but in Expression It post the error,The error and screenshot as bellow.

        localUART_Regs unknown Error: identifier not found: localUART_Regs

   

  when I try to use the Registers to find the value, but It seems that I can't find that register. I remember that Uart receive buffer register, is RBR a physical register? where can I get the value of that?

   

  Best Regards

  Yewkui Wang

  

  • Hi Yewkui,

    Yes. The UART registers base address is defined in memory map table of 2.3 Memory Map Summary (Data manual). The register descriptions are available in KeyStone Architecture Universal Asynchronous Receiver/Transmitter (UART) User Guide (Literature Number: SPRUGP1). 

    Thank you.

  • Hi Rajasekaran K

        I know  it but on Memory Browser  I can't find the value.

         computer sent a number '123456'  through Uart to dsp,then, I guess that the RBR is 123456.

        but when I check it on the Memory Browser, where is the number?

        the screenshot as below:

     

     Thank you for you response

  • Hi,
    The RBR register holds 8 bit data and remaining bits are reserved. That does not help to read the complete data transferred from host computer and do not understand the purpose of this experiment however you can run platform test available in PDK to test the UART.

    PATH: ..\ti\pdk_C6678_1_1_2_6\packages\ti\platform\evmc6678l\platform_test

    Thank you.