2021-02-18 04:32 PM
Hello all,
I am working with STM32-Mat/Target and currently facing an issue when placing a receive block with External mode enabled. The error is the multiple definition of 'HAL_UART_RxCpltCallback' and 'HAL_UART_ErrorCallback' which is called in both STM32SerialRtiostream.c and USART.c, where USART.c is the file generated from Simulink using the receive block provided by STM32-Mat/Target. Since the receive block is configured to use interrupt receive mode I guess both files are calling for the same callback functions. Is there a workaround for this bug or can I not use the receive block in interrupt mode while interfacing with External mode in Simulink?
Thank you in advance.