Code generation from Simulink to STM32F103 Processor.

조회 수: 21 (최근 30일)
Nandhini
Nandhini 2023년 10월 9일
답변: Nandhini 2023년 10월 18일
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.

채택된 답변

Madhu Varshini
Madhu Varshini 2023년 10월 11일
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

추가 답변 (1개)

Nandhini
Nandhini 2023년 10월 18일
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.

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by