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/TDA2PXEVM: Enabling UART4 instance for connecting sensor TDA2px evm

Part Number: TDA2PXEVM
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hello All

In client's custom board  based on TDA2Px, UART4 instance is used to get data from sensor, in file ..\ti_components\drivers\pdk_01_09_00_17\packages\ti\drv\vps\src\boards\src\bsp_boardTda2pxDefault.h

I could see UART instance ID initialzed from 0 to 2 only, Will you please let us know how to initialize UART4 ? We are using PSDK 3.03 sysbios all configuration.

Also is there any way to chek if it is working on TDA2px-evm since custom board has some time to be available with us.

regards

Hrishikesh

  • Hi,

    The board module initializes the devices connected on the TI EVM.
    For custom boards and for new devices, the board module needs to be updated based on the board schematics.

    Alternatively can also do the following from the application directly instead on board module.
    1. Pinmux configuration based on the SoC pins used in your board.
    2. Prcm configuration for the UART instance used.
    3. Board mux configuration if needed in your board.

    The UART Driver however supports all the instances of the UART.
    You can initialize the UART using the GIO_addDevice API with the device id set to the UART instance used and the device name string.
    In your case may be BSP_DEVICE_UART_INST_ID_3 (inst id starts with 0)
    Then you can open the UART driver handle with GIO_create API with the device name string.

    You can refer the below UART example for the driver configuration and usage,
    pdk_<install_dir>\packages\ti\drv\bsp_lld\uart\examples\uart_echo

    Regards,
    Prasad