Setting up an ARM development environment under windows

Source: Internet
Author: User

See a book on the introduction of arm embedded development, "Step by step write embedded operating system", the book is used under the Windows environment to learn, for me this kind of work can only use the windows of people is a great thing.

So also specially bought a paper book to see, just in the first chapter of the development environment and the second chapter of the most basic HelloWorld have been stuck for a long time, today finally solved, record a bit.

The development environment has been tossing for a long time for 2 reasons:

1. In the book said, under www.leeos.com can download related software, such as Cygwin,arm-elf-gcc,skyeye and other tools. However, this site has been stopped ...

Later, accidental coincidence, accidentally found a website, which put the relevant software, although not used, but also a little progress.

Software Download website: https://osdn.jp/projects/sfnet_leeosbasic/releases/

Downloaded according to the book configuration can not be successful, it is estimated that Cygwin has been updating the reason, so give up

2. In the environment, the installation of cross-compiler is a small problem, mainly SkyEye this arm simulator installation.

This software is open source, but it means that no professional personnel to maintain, has not been updated for a long time.

SkyEye mainly relies on LLVM, while LLVM has been updated. This led to the latest SkyEye and the latest LLVM could not be matched.

At the beginning of the compilation is only a header file can not be found, modified some of the code, the function can not be found directly ... This is skyeye used the old function.

Therefore, this also gave up.

The final solution is to put the SkyEye installation to work, and then consider other ways.

SkyEye official website

https://sourceforge.net/projects/skyeye/

The following action method runs successfully under the Win7 64 bit.

1. Download Msys-skyeye-3.0.msi

Msys-skyeye-3.0.msi contains MSYS's basic system, which is installed by default and SkyEye matching LLVM

Installation is possible, the default path C:\msys

2. Download Mingw-skyeye-3.0.msi

Mingw-skyeye-3.0.msi is a compiler for MINGW, including GCC, etc.

After installation, note the installation path, such as C:\mingw

3. Download arm's Cross compiler Gcc-arm-none-eabi-5_3-2016q1-20160330-win32

Https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q1-update/+download/gcc-arm-none-eabi-5_3-2016q1-20160330-win32.zip

After downloading, unzip to a path, such as C:\toolchain

4. Download the Skyeye-1.2.6_rc1.tar.bz2,skyeye source code file

In this way, all the software has been downloaded. Make a simple environment configuration

Open with Notepad

C:\msys\1.0\etc\profile (in fact, Linux environment variable configuration file)

At the bottom, there's already a

Export Path= ".:/ Usr/local/bin:/bin:/mingw/bin: $PATH:/c/mingw/bin"

Verify that the path is consistent with the MinGW installation path

In this way, MinGW and Msys are linked together.

Export Path= ". $PATH:/c/toolchain/bin"

This associates the cross-compiler tool Arm-none-eabi with the Msys.

So, all of the configurations are complete.

5. Unzip the SkyEye source code, go in

./configure

Make

Make install

It's ready to install.

The installation is complete, and our environment is built.

Then according to the book 19 pages to write HelloWorld program, test success.

Finally finished! ~ ~

Setting up an ARM development environment under windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.