Other Parts Discussed in Thread: AWRL1432
Tool/software:
Can you provide a sample program for UART interrupt mode? Thanks!
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.
Tool/software:
Can you provide a sample program for UART interrupt mode? Thanks!
I used the polling method, but found that another part was processing the CAN BUS interrupt and would miss the UART receiving data, so I hope the interrupt method can solve this problem!
I referred to \MMWAVE_L_SDK_05_05_00_02\examples\drivers\uart\uart_echo_callback
Modified the following settings
//============
UART_Transaction_init(&trans);
while (TRUE)
{
/* Read 8 chars */
gNumBytesRead = 0U;
trans.buf = &gUartReceiveBuffer[0U];
trans.count = 1;
transferOK = UART_read(gUartHandle[CONFIG_UART_CONSOLE], &trans);
APP_UART_ASSERT_ON_FAILURE(transferOK, trans);
/* Wait for read completion */
SemaphoreP_pend(&gUartReadDoneSem, SystemP_WAIT_FOREVER);
DebugP_assert(gNumBytesRead == APP_UART_RECEIVE_BUFSIZE);
}
//============
The test terminal sent data "$PID0A:0|"
Why is the following callback function only entered once instead of 9 times?
//============
void uart_echo_read_callback(UART_Handle handle, UART_Transaction *trans)
//============
I need to do the following check. If the word ends with "|", it means the end of a command.
Sorry, what I meant was
what is the application you are evaluating AWRL1432 for? Is it automotive parking or industrial?
thank you
Cesar
Thank you
Please take a look at the following example
C:\ti\MMWAVE_L_SDK_05_05_02_00\examples\drivers\uart\uart_echo_callback
This example uses an ISR
thank you
Cesar