Why do I receive an error while building code generated for the STM32F4xxx target using Embedded Coder in MATLAB R2023b?

2 visualizaciones (últimos 30 días)
I am generating code and trying to build it for the STM32F4xxx target using Embedded Coder in MATLAB R2023b. While doing so, I am receiving the following error:
C:/Users/<username>/Downloads/esc1/esc/esc/codegen/Core/Src/stm32f4xx_it.c:210:23: error: 'hdma_usart2_rx' undeclared (first use in this function) 210 | HAL_DMA_IRQHandler(&hdma_usart2_rx);
Why am I getting this error, and how do I resolve this? 

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 18 de Mzo. de 2024
Editada: MathWorks Support Team el 18 de Mzo. de 2024
You seem to be using a different version of the STM32CubeMX software than expected. Please do the Hardware Setup as explained in the documentation below, and check which version of STM32CubeMX is expected: 

Más respuestas (0)

Productos


Versión

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by