2010-09-04 10:36 AM
USART doesnot go into interrupt service routine
2011-05-17 05:05 AM
It is provided with IAR workbench installation.
Thanks, I've attached ST Micro's portion of the firmware/library code, basically loosing the EWARM projects or anything looking like IAR's
2011-05-17 05:05 AM
hello ANN ,
first I use stm32f103ret6 second I use Raisonance RAID7 anyway here is my ISR ----------------------------------------- void USART1_IRQHandler(void) { volatile unsigned int IIR; IIR = USART1->SR; if (IIR & USART_FLAG_RXNE) { // read interrupt USART1->SR &= ~USART_FLAG_RXNE; Rx_buffer[Rx_ptr] = USART_ReceiveData(USART1); Rx_ptr++ ; if (Rx_ptr > 511) {Rx_ptr=0;com0err=1;} if (ending_char()) do_instruction(); } if (IIR & USART_FLAG_TC) { USART1->SR &= ~USART_FLAG_TC; // clear interrupt if (Tx_ptr < Tx_len) { Tx_ptr++; send_char (Tx_buffer[Tx_ptr]);} else USART_ITConfig(USART1, USART_IT_TC, DISABLE); } }2011-05-17 05:05 AM