DMA Interrupt in top model and ADC block in reference model (which uses DMA) causes a build failure with STM32 Support Package
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 5 de Ag. de 2024
Respondida: MathWorks Support Team
el 5 de Ag. de 2024
When trying to build a model for STM32 with ADC & Hardware Interrupt blocks, the code generation fails with the following error:
stm_adc_ll.c:520: multiple definition of 'DMA1_Stream1_IRQHandler'
This only happens when using a referenced model with the interrupt on the top level:

If the DMA interrupt is inside the referenced model, code generation is working as expected. How can this error be avoided?
Respuesta aceptada
MathWorks Support Team
el 12 de Jul. de 2025
This is a known limitation. An ADC block that uses DMA, and the DMA interrupt needs to be in the same model.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre STMicroelectronics Discovery Boards en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!