AnsweredAssumed Answered

character not Received on UART

Question asked by Suhas Prabhu on Jul 10, 2019
Latest reply on Jul 16, 2019 by Kerry Zhou

Hello, 

 

I am initialising the driver as follows. example code is for UART2. the same effect is seen also for UART1. 

void InitUART2(void)
{
Driver_USART2.Initialize(USART2_SignalEvent_t);
Driver_USART2.PowerControl(ARM_POWER_FULL);
Driver_USART2.Control(ARM_USART_MODE_ASYNCHRONOUS, 115200);

// Enable RX und TX
Driver_USART2.Control(ARM_USART_CONTROL_TX, 1);
Driver_USART2.Control(ARM_USART_CONTROL_RX, 1);
}

 

I am able to sent the characters to the tera term. I am not able to get the character receive event 

 

void USART2_SignalEvent_t(uint32_t event)
{
if (ARM_USART_EVENT_SEND_COMPLETE == event)
{
__asm("nop");
}
if (ARM_USART_EVENT_RECEIVE_COMPLETE == event)
{
__asm("nop");
}
if (ARM_USART_EVENT_RX_OVERFLOW == event)
{
__asm("nop");
}
}

//Any more setting to be done more to get the characters reception?

Regards,

Suhas Prabhu

Outcomes