The issue I am facing when using the STM32U585 microcontroller in the MATLAB and Simulink (M&S) Environment.
1. The controller is the STM32U585Allx. Discovery kit.
2. We are working on a project in Simulink (Model-Based Design). As a first stage, we are sensing three-phase AC currents and a PWM generator as a part of our project. For this project the hardware is provided by STM32 U585-based Discovery kit. All hardware support packages have been installed in the M&S environment. We are setting up the hardware in STM32CubeMX, configuring ADC1 and Timer1. All the desired parameters are set and we are generating the code.ioc file. The ADC is set for injected signal inputs. TRG0 provides the trigger for the ADC1. The ADC1 block in Simulink is not getting linked with .ioc file generated in SubeMX. The error is: Index exceeds the number of array elements. So we cannot proceed further. We would like to get your advice and suggestions.