Pantech.AI

How to Install STM32CUBE IDE on Windows

I Hope everyone is ready to work with STM32F411RE Microcontroller before we need software, which helps to configure and interface with your microcontroller!

Let’s start the installation with step by step procedure for STM32CUBE IDE:-

1. Visit this Link to get software to download!

 https://www.st.com/en/development-tools/stm32cubeide.html#get-software

Fig 1 Install page https://www.st.com/en/development-tools/stm32cubeide.html#get-software

2. Download the software STM32CubeIDE-Win

Fig 2 Get software

Note: In this Blog, stm32cube IDE is going to install in Windows. So specifically install by stm32cube IDE Windows Installer 1.16.0 Get latest

Fig 3 choose the latest version

After reach out the software make sure go download with a latest version

3. Create an account

    After you give GET LATEST, accept the License Agreement,

Fig 4

Go with Download as a guest

Fig 5

Note: Either you can create an account or use it to go with a guest.

After going to the download as a guest

Fig 6

Give the details asked and GET LINK TO DOWNLOAD

Fig 7

Give Download now

Fig 8 

It starts to Download as a zip file. Now keep away the stm32cube ide. We are going to install the modules which require for stm32cube ide.

4.Install the MSYS2

Go to the https://www.msys2.org/ 

Scroll down 
Step 1: Download the Installer  msys2-x86_64-20240727.exe

Fig 9

Step 2:

Fig 10

Step 3: Choose the right path

Fig 11

Make sure the path is prominent! And give Next 

Step 4: Start to Install

Fig 12

Step 5: Finish the installation

Fig 13

Step 6: Now MSYS2 is ready for you and a terminal for the UCRT64 environment will launch. 

MSYS2 offers various environments, and the first decision you’ll need to make is which one to use.

Eg.MINGW64

Fig 14

Step 7: Don’t need to visit here, you can directly to the terminal

You’ll likely want to install tools such as the mingw-w64 GCC to begin compiling projects. To do this, run the following command:

Fig 15

$ pacman -S mingw-w64-ucrt-x86_64-gcc

Step 8: Terminal will start to install the packages 

Fig 16

 Give yes

Step 9: You can now use gcc to compile software for Windows.

$ gcc –version

Fig 17

5.Open MSYS2 using command prompt

After successfully installing the packages, Just whether you can open your MSYS2 using command prompt. Here go with a procedure

Step 1: Go to THIS PC in your laptop or system

Step 2:Go to the MSYS2 folder 

Step 3: Select the path and copy the path

Step 4:Paste the path in your command prompt which you already opened

Fig 18

After paste the path give “ENTER” you can see the MSYS2 has opened

Fig 19

After opened MSYS2 synchronizing packages database
Step 6: Give the command pacman -Syu

Fig 20

Step 7: Give the command pacman -S –needed base-devel mingw-w64-x86_64-toolchain

Fig 21

Enter a selection(default=all) : 3 (Give 3 and enter)

Fig 22

Give Y and Enter

Fig 23

Finally updating the info directory file.

6. Paste the path of MSYS2 in Environment variable in control panel

Previously, we had to paste the path in the command prompt. Now going to paste the MSYS2 path in the environment variable in control panel

Step 1: Go to the Window in your PC or laptop

Step 2: Go to the environment variables

Fig 24

Step 3: Select the advance and select the environment variable

Fig 25

Step 4: Click the path and select the edit

Fig 26

Step 5: Give new and paste the path

Fig 27

Fig 28

Give ok and close

7.Extract the STM32CUBE IDE

Now Just think in the beginning we download one zip file yes!!!.. Stm32cube IDE and it’s time to extract it.

Step 1: Go to the zip file and extract that file

Step 2: Extract the file

Fig 29

Step 3: Wait for Setup to Load

Fig 30

Step 4: Agree

Fig 31

Step 5: Install

Fig 32

Step 6: Finish it off! Finally we have successfully installed the stm32cube ide in your pc or laptop. I Hope you have installed it. Thank you.

Leave a Comment

Your email address will not be published. Required fields are marked *