標題: STM32 cubemx生成KEIL5代碼后顯示參數(shù)重定義如何解決? [打印本頁] 作者: 鄉(xiāng)村男神 時間: 2020-3-17 21:53 標題: STM32 cubemx生成KEIL5代碼后顯示參數(shù)重定義如何解決? SignalGenerator_v0.1\SignalGenerator_v0.1: Error: L6200E: Symbol USART1_IRQHandler multiply defined (by stm32f1xx_it.o and usart.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 1 error messages.
"SignalGenerator_v0.1\SignalGenerator_v0.1" - 1 Error(s), 0 Warning(s).
Target not created.
兩個確認都有定義USART_1IRQHandler,
這個是STM32F1XX.IT.C的定義段
void USART1_IRQHandler(void)
{
/* USER CODE BEGIN USART1_IRQn 0 */
/* USER CODE END USART1_IRQn 0 */
HAL_UART_IRQHandler(&huart1);
/* USER CODE BEGIN USART1_IRQn 1 */
/* USER CODE END USART1_IRQn 1 */
}
這個是USART.C的定義段
void USART1_IRQHandler(void)
{
u32 timeout=0;