Unable to Programm stm Microcontroller.

2 views (last 30 days)
Mihir
Mihir on 13 Feb 2024
Commented: Mihir on 23 Feb 2024
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:

Answers (2)

Hassaan
Hassaan on 13 Feb 2024
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 Comment
Mihir
Mihir on 13 Feb 2024
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??

Sign in to comment.


Madhu Varshini
Madhu Varshini on 20 Feb 2024
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 Comment
Mihir
Mihir on 23 Feb 2024
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.

Sign in to comment.

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!