Simulink cannot read my STM32 NUCLEO-H753ZI Hardware
30 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello!
I bought an STM32 NUCLEO H753ZI hardware, supported by MathWorks, and wanted to connect it to Simulink. Though I used the correct selection in the configuration parameters and made sure the correct COM port is selected, and did the same process I was asked by Mathworks support to do before with NUCLEO-U545RE-Q (which wasn't supported by Mathworks after all) I still got this error after building the model : Error: The following error occurred during deployment to your hardware board:
No STM32 MCU connected.
The following were the steps I did to ensure that everything is set up:
1) Download and install “STM32CubeMX-6.12.0” from this link: https://www.st.com/en/development-tools/stm32cubemx.html
2) Ensure that the "Embedded Coder Support Package for STMicroelectronics STM32 Processors" is installed and run the following command in the MATLAB command window: cd (stm32cube.utils.getSharedRootDir)
3) Backup the “stm32mcuinfo.json” file.
4) In this JSON file, locate the object with the “name” property: "STM32U5xx Based MCUs". Change the "version" property from 1.0.2 to 1.6.0.
5) Go to HOME -> Add-Ons -> Manage Add-Ons and search for "Embedded Coder Support Package for STMicroelectronics STM32 Processors".
6) Click on the settings icon and select “STM32U5xx Based MCUs”.
7) Next, validate the installation path of “STM32CubeMX-6.12.0” as per Step 1. A warning may pop up indicating that the version of CubeMX is incompatible. This can be ignored.
8) Validate the “STM32CubeProgrammer” installation path.
9) Next, open “STM32 Cube Programmer” and check if the board is recognized. If not, the reason may be an older version of the software.
10) Update to “STM32CubeProgrammer-2.17.0” and verify this again.
11) Specify the folder path for installing the firmware. This will download “STM32Cube_FW_U5_V1.6.0” in that folder.
12)Next, you can create a project in “STM32CubeMX ”. In the project manager, ensure that the “Do not generate the main()” option is checked. Set the toolchain/IDE to “STM 32CubeIDE” and uncheck the “Generate under root” option.
13) Under the Advanced settings, set the Driver Selector option to “LL”. Also, ensure that “visibility” is unchecked under generated function calls. In the pinout and configuration, choose the timer as “TIM1”.
14) Generate the code for this project. In the Simulink model, open the configuration parameters. Under hardware implementation, choose the Hardware board: “STM32U5xx”.
15) set the STM32CubeMX project path to the generated IOC file under target hardware resources. Build the model.
These were the steps I was asked to do for STM32 NUCLEO U545RE-Q before. Now I used them the same with NUCLEO-H753ZI the one supported by Mathworks and got the same error anyway.
Any help regarding this matter?
Thank you in advance.
0 Kommentare
Antworten (1)
Saurabh
am 13 Nov. 2024 um 15:34
It may be beneficial to check which version of ST-LINK is in use and consider upgrading the firmware to the latest version. Additionally, using the latest release of STM32CubeProgrammer could resolve potential issues.
Ensure that all pins are correctly connected and verify that the power supply (VDD) from the application board is properly connected to the ST-LINK/V3.
I hope this helps.
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!