2.2 Prepare Free IDEs for Developing STM32
Last updated
Last updated
strongly recommend two free IDEs for developming STM32:
And is adopted in our case.
It's supposed that students have already installed . For the time being, the most recent Eclipse release is , and what we are using is .
According to :
GNU MCU Eclipse is an open source project that includes a family of Eclipse plug-ins and tools for multi-platform embedded and development, based on GNU toolchains. This project is hosted on . The former project was hosted on and .
The right-hand sidebar on clearly summarizes what's needed to be installed, as in the following image:
According to our summation, four things must be installed:
Therefore, we have this Eclipse Plugin installed from within Eclipse MarketPlace as follows:
J-Link is defaultly installed under folder /opt/SEGGER.
Four exe files are respectively installed as:
/usr/local/bin/st-flash
/usr/local/bin/st-info
/usr/local/bin/st-util
/usr/local/bin/stlink-gui
Click on Window->Perspective->Open Perspective->Other, you will see the following perspective:
Then double click Packs, and click the refresh button to Update the packages definitions from all repositories.
After around half an hour on my computer, and multiple times of clicking Retry and Ignore, I got the following views:
It's NOT hard to find STMicroelectronics->STM32F7 Series and have STM32F7xx_DFP installed. The NEWEST version 2.10.0 will be installed by default.
Note: You might meet this ERROR while installing a pack. java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Finally, we configure Eclipse IDE for STM32 MCU development. Click on Window->Preferences.
Global ARM Toolchains Paths
Alternatively, you can configure OpenOCD toolchain instead.
Alternatively, you can configure RISC-V toolchain instead.
Global QEMU Path
Global SEGGER J-Link Path
Just enable save automatically before build and UTF-8 encoding within Workspace Preference.
Currently, if you install the plugin from within Eclipse by providing the plugin's update site URL , you will possibly meet the following error message:
It's clearly summarized in that there are 2 ways to carry out the installation for GNU MCU Eclipse ARM Embedded GCC: The xPack install and Manual install.
The manual install is strongly recommended. You ONLY need to visit , and download the corresponding file. is downloaded and extracted under /opt/GCCToolChains in our case. Let's have a look at what files are under the ARM toolchain folder:
The J-Link binaries are available at . In our case, DEB installer 64-bit is to be downloaded from . And to install it, we ONLY need to double-click this deb file under Ubuntu.
The reason why we need to install is that comes with a ST-Link on board. The processes on how to checkout and build the source code are clearly displayed by the following commands:
According to the description on , we need to input into URL in dialog MCU Packages - Repositories, as follows:
This is a bug from Java, and the solution can be found on . Be more specific, the solutions is:
To install the free IDE , is redirected to . Users must first register on , and then strictly follow .
Since we are going to use throughout our course, we are NOT going to elaborate how to carry out the development for STM32 using .