Solved
UART Receive code is not working.
I am using STM32F103C8 MCU and Trying to communicate with Quectel EC200U-CN 4G module and i am not getting data through UART2 Receive pin.
Please go through my code and suggest me
void USART2_IRQHandler(void){
if ((USART2->SR & USART_SR_RXNE) != RESET){
GSM_buf[GSM_indx] = USART2->DR;
GSM_indx++;
while(!(USART2->SR & USART_SR_TC));
}
if(GSM_indx >= (BUF_SIZE-1))
GSM_indx = 0;
}