Share | The first STM32L552 development board in life - Development environment
Original author:
STM32 Chinese Community User Sanjiegou
I have been studying the NUCLEO_L552ZE_Q development board in my hand these two days , but it is not enough to just study the appearance. I also have to run the program and realize certain functions. Before writing the program, I have to configure its development environment first. Next, let's talk about setting up the development environment. Software requirements:
1. STM32CubeMX ( version 5.6.0 or above)
2. MDK -ARM ( V5.17 or above)
3. ST -Link driver
STM32CubeMX
In order to master this microcontroller faster, I plan to start with the firmware library first, and not study the registers for the time being. The STM32L5 series microcontroller uses the HAL peripheral library. At this time, you can use the official development software STM32CubeMX 's graphical operations to quickly build a project. It will automatically include the required files according to your needs, without having to consider which file to add to the project.
It is worth noting that only by installing version 5.6.0 of STM32CubeMX can the STM32L5 series microcontrollers be supported. The community can currently download version 5.3.0 , so you need to download it from the ST official website. I will post the download address here: STM32CubeMX download, which is convenient for everyone to download. You don’t need to log in, just fill in your name and email address, and the download link will be sent to your email.
I won’t go into detail about the installation steps. Except for the installation directory, which you can customize according to your own needs, keep all other options as default.
After installing STM32CubeMX , it is just an empty shell. To generate the project we need, we need to install the corresponding software package. The installation steps are as follows:
It is worth noting that the default installation location of the software package is not in the software installation directory, but in the system disk ( C drive). If you need to modify it, you can refer to the steps below to modify it:
I have been using MDK to develop microcontrollers, so I plan to continue using it this time. For specific installation methods, you can search " MDK-ARM installation" on Baidu, and you can find very detailed installation steps. I will not repeat them again. You can download the software from the MDK official website, or from the Baidu download link I provided, with the extraction code: m7kl . The official website download depends on your mood, and the download speed is not very ideal. You can find a way to download from Baidu Netdisk (such as: PanDownload ).
After installing MDK , you also need to install the software support package for the STM32L5 series microcontroller: Keil.STM32L5xx_DFP.1.1.0.pack , which can also be downloaded from the MDK official website. It is also available in my network disk.
ST-Link Driver
The debugger on the NUCLEO-L552ZE-Q development board is ST-Link V2-1 . Since I have been using V2 before , I need to install a newer driver so that the computer can recognize the device. Similarly, the versions that can be downloaded in the community are relatively old. You can download them from the official website. www.st.com Search: stsw-link009, stsw-link007
This is the end of the development environment construction. If everything goes well, the next issue will start the STM32L552 programming journey.