Integrated environment based on GNU ARM Eclipse to build

background

The teacher gave me STM32 board do not care to give me bad, and now the epidemic has not in the past, in order to review and consolidate related to transplant stm32, only the first play simulated.

We speak mainly based in the build environment.

host platforms: Ubuntu 16.04

GNU ARM Eclipse Introduction

GNU ARM's official website: https://gnu-mcu-eclipse.github.io/

GNU ARM Eclipse is an integrated editor on the basis of the eclipse, the whole environment, compiler, debugger, downloader (JLINK), simulator, tracker.

It can be very convenient to complete most of the operation in a window.

The following operations are verified on the windows, but there is no guarantee that linux is very likely to support
in order to facilitate lazy people, this blog post the download link and the download page.
If the passage of time iterative version, go to download page.

Now part of the English reading

1. Install and JAVA eclipse

(The words of the latest version of the eclipse is how oxygen acridine?)

2. Install GNU ARM-plugin

Recommended update site way, Marketplace I tried it seems not.
Anyway, when I fall election are elected, you can choose to play high according to their needs.
After missing it can be re-installed.
Tutorial of GNU ARM-plugin
is not recommended Quguan downloading the installation package, because I tried several times without success. After all github.io not a network drive.

3. Install the GNU ARM Embedded

This is the arm of the cross compiler (and possibly a gdb in there?)
Linux use apt-get install gcc-arm-none-eabi gdb-arm-none-eabi(applicable to Ubuntu, other linux consider yourself)
the Tutorial of the GNU ARM Embedded
Although the tutorial has repeatedly emphasized not installed in a strange path, but I was installed in a strange path, and finally there will be no solutions to document
the Download Page
the Download gcc-ARM-none-EABI-6-2017-q2-Update-win32.exe (which seems to be a dynamic link, the best the above feed to download the download page (Yes, no 64))

4. Install Windows Build Tools

This tool is for use in the windows also make other compiler directive.
linux Please ignore!
linux please ignore!
linux please ignore!
the Tutorial of Windows Build Tools
Similarly, although the tutorial has repeatedly emphasized not installed in a strange path, but I still packed in strange paths, and finally there will not find the file the solution to
the Download Page
the Download the GNU-the MCU-the Eclipse-Build-Tools-2.9-20170629-1013-win64-Setup
the Download the GNU-the MCU-the Eclipse-Build-Tools-2.9-20170629-1013-win32-Setup

5. Installation Qemu

This is a PC side virtual machine, although support is not very good (at least STM32F429I-Discovery yes), at least use
the Tutorial of Qemu
the Download Page
latest version no windows, and good gas ah (debian is linux)
above, although the tutorial again He stressed the solution files do not install in a strange path, but I still packed in strange paths, and finally there will not find
the Download gnuarmeclipse-QEMU-win64-2.8.0-201612271623-dev-the setup.exe
the Download gnuarmeclipse- -win32-2.8.0-201612271623-dev-QEMU the setup.exe
the Download gnuarmeclipse-QEMU-debian64-2.8.0-201703022210-head.tgz
the Download gnuarmeclipse-QEMU-debian32-2.8.0-201703022210-head.tgz

6. Installation kit JLINk

This is a JLINK interface, you can automatically download programs, on-line debugging, run online. (There may be more advanced features, I do not know)
the Tutorial of JLINK
Again, though repeatedly stressed the tutorial do not install in a strange path, but I still packed in strange paths, and finally there will not find the file the solution to
the Download Page
the Download JLink_Windows_V620c.exe
Linux a bit more I will not put up.

7. Install Tracealyzer

Real-time operating system can be tracked and saved for analysis. But not in real time to watch
the Download Page
the Download Tracealyzer for FreeRTOS (HOST)
Integrating at The Recorder
is important to define #define TRC_CFG_ARM_CM_USE_SYSTICK, in trcConfig.h: before 151.
Otherwise, Qemu inside the simulation time did not have the time tags generated Snapshot can not be opened.
Unstable transmission will run on the board, the time stamp task is incorrect.
I met phenomenon is a very simple task to run for a very long time, without interruption, no other tasks to interrupt, but there are no large period of time to perform the task.
Plus problem solving after TRC_CFG_ARM_CM_USE_SYSTICK.

Thus do the complete installation before, you can try a sample binkly GNU ARM provides.

https://gnu-mcu-eclipse.github.io/tutorials/blinky-arm/

If you can not find the path, found in the menu bar: Window -> Preferences, you can set individually for each part of the path.

img

ST-LINK environment

STM32F429I-Discovery comes with ST-LINK, but above all for the JLINK.
If you want to directly STLINK, please install the Utility STLINK
the Tutorial of STLink

STLink can be upgraded to JLink
the Tutorial Update of
the Download Page
the Download STLinkReflash

Guess you like

Origin www.cnblogs.com/schips/p/12346022.html