Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hello TI Experts,
I am working with the G3507 board and using the UART peripheral in interrupt mode (RX only). When I send data from the serial monitor, I receive the expected data but also some additional garbage characters.
Could you please help me identify the cause? I have attached the UART code and configuration details below for your reference.
#include "ti_msp_dl_config.h" volatile uint8_t gEchoData = 0; int main(void) { SYSCFG_DL_init(); NVIC_ClearPendingIRQ(UART_1_INST_INT_IRQN); NVIC_EnableIRQ(UART_1_INST_INT_IRQN); DL_SYSCTL_enableSleepOnExit(); while (1) { __WFI(); } } void UART_1_INST_IRQHandler(void) { switch (DL_UART_Main_getPendingInterrupt(UART_1_INST)) { case DL_UART_MAIN_IIDX_RX: DL_GPIO_togglePins(GPIO_LEDS_PORT, GPIO_LEDS_USER_LED_1_PIN | GPIO_LEDS_USER_TEST_PIN); gEchoData = DL_UART_Main_receiveData(UART_1_INST); DL_UART_Main_transmitData(UART_1_INST, gEchoData); break; default: break; } }
Thank You
Amara Rakesh.