Unable to Programm stm Microcontroller.

4 次查看(过去 30 天)
Mihir
Mihir 2024-2-13
评论: Mihir 2024-2-23
I am trying to program stm32f446 nucleo board using matlab but i am getting following error, which i am unable to resolve.
Also when I was installing Embedded coder support package for STM, it required CubeMX v6.2 and CubeProgrammer v2.6 whereas I already have CubeMX v6.8 and Programmer v2.13 but the installation still fails. Does anyone have an idea how to resolve this??
I am using MATLAB R2021b, CubeMX v6.8 and Programmer v2.13. Attaching all images and simulink model:

回答(2 个)

Hassaan
Hassaan 2024-2-13
Make sure STM32CubeMx instance is not already open and the internet access is working. Also, if its better to know if you have admin rights for software installation as sometime it can cause issues.
-----------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
It's important to note that the advice and code are based on limited information and meant for educational purposes. Users should verify and adapt the code to their specific needs, ensuring compatibility and adherence to ethical standards.
Professional Interests
  • Technical Services and Consulting
  • Embedded Systems | Firmware Developement | Simulations
  • Electrical and Electronics Engineering
Feel free to contact me.
  1 个评论
Mihir
Mihir 2024-2-13
CubeMX was not open; Internet was working fine. And I have the admin rights for installation.
But that did not solve my issue.
Also my simulink model is not working, any idea what I am doing wrong??

请先登录,再进行评论。


Madhu Varshini
Madhu Varshini 2024-2-20
Hi, There can be two workaround for the above issue:
  • Instead of going through the Hardware Setup Screen, can you download the latest firmware from the STM32CubeMX directly.
  • Before this screen, you get the option for the firmware path, give the path where you have downloaded from the firmware from STM32CubeMX
  • You can also use the latest MATLAB release instead and there should not be any issue even from Hardware Setup Screen.
  1 个评论
Mihir
Mihir 2024-2-23
I already have downloaded CubeMX.
I am providing the correct path of cubeMX, but it says that "required version is 6.2 whereas i have downloaded version 6.8."
There should be some other alternative instead of updating my MATLAB software.
MATLAB should be compatible for the updated versions of CubeMX and Cube Programmer.

请先登录,再进行评论。

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by