Why do I receive an error while building code generated for the STM32F4xxx target using Embedded Coder in MATLAB R2023b?
2 views (last 30 days)
Show older comments
MathWorks Support Team
on 5 Mar 2024
Edited: MathWorks Support Team
on 18 Mar 2024
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?
Accepted Answer
MathWorks Support Team
on 18 Mar 2024
Edited: MathWorks Support Team
on 18 Mar 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:
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!