multiple definition of `USART1_IRQHandler' after enabling global interrupts in cubemx.
I am trying to transmit repeatedly using HAL_UART_Transmit_DMA(). The first transmit works. All following fail. The HAL_UART_TxCpltCallback() does not fire. All information I can find on this says you have to check the box 'USART1 global interrupt/...
After checking that box I get the error:
multiple definition of `USART1_IRQHandler'; ./Application/User/stm32f30x_mc_it.o:C:/Software/STM32CubeIDE/STM32-20220817_mcrot/Src/stm32f30x_mc_it.c:147: first defined here.
Searching for 'usart1' in stm32f30x_mc_it.c reveals there is no such definition. In fact the only mention of this function is in the startup file and stm32fxx_it.c. There is a definition for USART_IRQHandler in stm32f30x_mc_it.c.
I'm using the reference manual UM1786. Is there something better? The section 'How to use this driver' on p. 598 is not much use because after generating the code with CubeMX it is not clear what still needs to be done.
So do I need to enable global interrupts and if so, how do I get past this issue?
