Unable to create a STM32CubeMX Project using "Embedded Coder Support Package for STMicroelectronics STM32 Processors"
Show older comments
Hello Comunity,
I am trying to create new project for STM32F4xx based boards. But I can not create the create project biuld options in Simulink Hardware implementation. I have attached the screenshot of the error. I have followed the step shown in the msg and tried to do hardware setup. I have already installed required STM32 CubeMX(v6.4.0) and STM32CubeProgrammer(v2.6.0) as recommended by the simulink hardware support package andthe installation paths are also validated. I was able to complete the setup but still it pops up.

3 Comments
Adit Kirtani
on 12 Jun 2024
Hi,
Could you kindly share the following:
- Which release of MATLAB are you working with?
- The '.mat' file output when you run the following commands:
clear
MW_STM32_Prefs = getpref('MW_STM32');
save("stm32_preferences");
- When running the hardware setup screens, do the previously set paths appear again?
- Does the path set for STM32CubeMX require admin rights to be executed? If yes, kindly move it to a location where admin rights are not required, rerun the hardware setup screens and provide the new path.
Regards,
Adit Kirtani.
Goutham Varanasi
on 29 Jul 2024
Hi,
- Try launching the hardware setup screen and select a different path
- May you confirm the path in this file (C:\Users\'username'\.stm32cubemx\plugins\updater) updater.ini is same as the new folder path
- Execute 'getpref('MW_STM32')' command and observe the STM32CubeFW, this should be having the firmware path as an output argument.
If the issue persists, please contact Technical Support
Regards
Goutham Varanasi
Answers (0)
Categories
Find more on STMicroelectronics Discovery Boards in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!