ARM Develop environment set up on Linux/MacOS
发布于 1 年前 作者 ___cabbage 501 次浏览 来自 分享

Toolchain Installation

GCC compile:

You need the right GCC compiler, which is gcc-arm-none-eabi.

For Ubuntu/Debian Users:

sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
sudo apt-get update
sudo apt-get install gcc-arm-embedded

For MacOS Users:

Usage of the Homebrew package manager for MacOS is recommended. The installation of Homebrew is quick and easy: installation instructions.

After installing Homebrew, copy these commands to your shell:

brew update
brew install git bash-completion gcc-arm-none-eabi

##JLink driver: You also need the right JLinkexe for flash MindTag board.

For both Ubuntu and MacOS users:

Download the J-Link software from the Segger website and install it according to their instructions.

Download pages

Building the project

git clone
cd MindTag
mkdir build
cd build
cmake -DSTM32_CHIP=STM32F105RC -DTOOLCHAIN_PREFIX=<path_to_toolchain> ..
To build elf file: make
To build .hex: make mindtag.hex
To build .bin: make mindtag.bin

Flash the MindTag board

Connect the JLink cable to the MindTag like this:



After connect the JLink correctly, use these command in your shell, and the command with J-Link> begining is run in JLinkExe.

- JLinkExe -device STM32F105RC -if SWD-DP -speed 20000
- J-Link> loadbin  path/mindtag.bin 0x08000000
- J-Link> r
- J-Link> setpc 0x08000000
- J-Link> g

you can see the application running, then

- J-Link> q 

for quit the JLinkExe.