Error in code generation with Embedded Coder Support Package for STMicroelectronics when implementing an ADC hardware interrupt

26 visualizaciones (últimos 30 días)
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?

Respuestas (0)

Productos


Versión

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by