Clear Filters
Clear Filters

Code generation from Simulink to STM32F103 Processor.

25 views (last 30 days)
I developed a model in simulink for BLDC motor with trapezoidal commutation with PI based speed and current control,I want to convert this into embedded code for STM32F103 series processor,I also want to give pin configurations for hall sensor input and gate signal generation,help me in this regard.When Iam searching for this it is showing to install STM31/MAT files but those files are obsolete now in the website.Let me know whether that MAT files are necesssry now or tell me the ways to generate the code for STM32F103 series with pin configurations.

Accepted Answer

Madhu Varshini
Madhu Varshini on 11 Oct 2023
Hi Nandini,
STM32/MAT target is obsolete and not supported with the latest versions of MATLAB as mentioned here: https://www.st.com/en/development-tools/stm32-mat-target.html
Our Embedded Coder Hardware Support Package is not supporting this board at this point but it will be available in a future release. One option for now is to use the algorithm export workflowmentioned here: https://in.mathworks.com/help/mcb/gs/algorithm-export-workflow-for-custom-hardware.html

More Answers (1)

Nandhini
Nandhini on 18 Oct 2023
Hi,thank you for the support.I tried implementing the open loop model, i generated the code and also integrated it with driver code in keil environment and got downloded into the STM32 NucleoF302R8 board and tried to start the motor from host model but my motor is not running,i also configured the communication port.Help me in this regard.

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!