Error in code generation with Embedded Coder Support Package for STMicroelectronics when implementing an ADC hardware interrupt
显示 更早的评论
I followed the example to implement the FOC on an STM32 microcontroller.
In contrast to your example, the following hardware is used:
- NUCLEO-H755ZI-Q Evaluation Board with STM32H755ZIT6 dual core CPU https://www.st.com/resource/en/user_manual/um2408-stm32h7-nucleo144-boards-mb1363-stmicroelectronics.pdf
- X-NUCLEO-IHM08M1 motor driver expansion board https://www.st.com/resource/en/data_brief/x-nucleo-ihm08m1.pdf
The hardware configuration was performed using CubeMX following the example and adapted to the STM32H755ZIT6. The software is intended to run on the M4 CPU core, so the following hardware configuration was set up in Simulink:

The interrupt routine for the ADC was implemented in Simulink and STM32CubeMX as shown in the example. However, code generation in Simulink is not possible. After each build, the following error message appears as soon as the analog-to-digital converter blocks are implemented in the model:
Output argument "ret" (and possibly others) not assigned a value in the execution with "stm32cube.blocks.internal.addH7DualCoreFlagsAndPaths>isSoftwareTrigger" function.
What is this error message and how can I fix it?
3 个评论
Nithin
2025-9-30
Hi Daniel,
This issue will be addressed in an upcoming release of MATLAB.
Bill
2025-10-27
Can you please explain the fix for this? I can't get injected conversions to work either. I'm unable to wait for the next release.
Daniel Krebold
2025-10-28
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 STMicroelectronics Discovery Boards 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!