Error in code generation with Embedded Coder Support Package for STMicroelectronics when implementing an ADC hardware interrupt
Mostrar comentarios más antiguos
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 comentarios
Nithin
el 30 de Sept. de 2025
Hi Daniel,
This issue will be addressed in an upcoming release of MATLAB.
Bill
el 27 de Oct. de 2025
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
el 28 de Oct. de 2025
Respuestas (0)
Categorías
Más información sobre STMicroelectronics Discovery Boards en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!