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!