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

2 次查看(过去 30 天)
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? 

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2024-3-18
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 个)

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by