MATLAB does not recognize STM32CubeMX

조회 수: 17 (최근 30일)
Birey Kadioglu
Birey Kadioglu 2022년 4월 18일
편집: Thibault Leroux 2024년 5월 8일
When I try to build and generate code for my model on matlab/simulink I recieve the following error:
The call to stm32_make_rtw_hook, during the entry hook generated the following error:
getSTM32CubeMxPath:PathNotFound for 'C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe'
===> Install STM32CubeMX tool or Update/Apply path from: Configuration Parameters > Code Generation > STM32 Options
The build process will terminate as a result.
Caused by: getSTM32CubeMxPath:PathNotFound for 'C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe'
===> Install STM32CubeMX tool or Update/Apply path from: Configuration Parameters > Code Generation > STM32 Options
Even though the path is correct MATLAB does not seem to be able to recognize the program.
I could not find anyone else who encountered the same problem. Does anyone know the solution to this? Thanks in advance

답변 (1개)

Mahmoud El Hage
Mahmoud El Hage 2022년 5월 30일
Hi Birey,
I've been having the same problem for literally 5+ weeks and I could not find anyone who can help me yet. If you found the solution, I will be grateful if you share it :)
Thanks
  댓글 수: 2
Abderraouf
Abderraouf 2024년 5월 2일
i have the same error any one solve please help >
Thibault Leroux
Thibault Leroux 2024년 5월 8일
편집: Thibault Leroux 2024년 5월 8일
Hi, after some work, it seems it is only a matter of file installation. When you install STM32 file for simulink, you have some files to download (STM32CubeMx and an other). Be sure that it is downloaded in the correct version or it will never work. After, simulink will ask you to check the correct installation of these files. Then follow the tips on the installation window of simulink. Note that you will need an account on STM website.

댓글을 달려면 로그인하십시오.

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by