我现在调试str710的uart1,用中断方式接收数据,有中断标志,但是就是进不了中断服务程序,不知为啥?我用的ADS编译器。我把代码附上大家帮我看看,问题出在哪? UART_OnOffConfig(UART1, ENABLE); UART_FifoConfig (UART1, DISABLE); UART_FifoReset (UART1 , UART_RxFIFO); UART_FifoReset (UART1 , UART_TxFIFO); UART_LoopBackConfig(UART1 , DISABLE); /* Configure the UART0 as following: - Baudrate = 9600 Bps - No parity - 8 data bits - 1 stop bit */ UART_Config(UART1,9600,UART_NO_PARITY,UART_1_StopBits,UARTM_8D); UART_RxConfig(UART1 ,ENABLE); EIC_Init(); EIC_IRQChannelPriorityConfig(UART1_IRQChannel, 1); EIC_IRQChannelConfig(UART1_IRQChannel, ENABLE); EIC_IRQConfig(ENABLE); UART_ItConfig(UART1,UART_RxBufFull, ENABLE); while(1);
加上EIC_IRQConfig(ENABLE),总是出现unrecognsed swi的错误,不知为何? |