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.

using UART0 and UART1 in DM6437

Hi, I'm trying to work whit two uart in DM6437 (UART0 and UART1) at same project.

So, I created two UDEV like UART0 and UART1, and for both I configured like :

function table ptr = _UARTMD_FXNS

function table type = IOM_Fxns

device params ptr = _Uart_DevParams

I don't configured the init function because I'm using default configurations from UART.

The problem is that, when I try to send data using UART0 it lock, but if I use USART1 it work well.

In documents of the driver don't have any example or saying nothing if it is possible.

obs. When I use GIO_create it work well for both (UART0 and UART1 so, I think that it is not problem of to create the driver).

  • Ok, I found what was wrong.

    In Uart_DevParams (PSP_UART_Config) I was configuring the PSP_OpMode like "PSP_OPMODE_INTERRUPT" and now I configuring like "PSP_OPMODE_POLLED" and is working.

    If I would like to use "PSP_OPMODE_INTERRUPT"  will I to need configure the HWI?

    So, at the moment it is working.

    But if someone could solve this doubt I'm gratefull.

  • The interrupt mode should work, the driver should be handling the HWI for you already based on how the example is setup. It may be worth trying out the example within C:\dvsdk_1_01_00_15\psp_1_00_02_00\pspdrivers\drivers\uart\sample to verify it works on your platform, the example utilizes the interrupt mode of the UART driver. Assuming it does work you may want to compare your setup to how this example uses the driver.