cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 handshake with MATLAB&Simulink.

cvram
Visitor
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.
1 REPLY 1
mƎALLEm
ST Employee

Hello  and welcome to the ST community,

For Matlab/Simulink environment related questions please ask them in the Mathworks community.

Thank you

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.