Skip to main content
AKim.1
Visitor II
February 19, 2021
Question

Possible code generation bug when using External mode and USART receive block.

  • February 19, 2021
  • 0 replies
  • 630 views

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.

This topic has been closed for replies.