Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the construction of eclipse+yougatoo+cygwin+jlink cross-compilation environment under win

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

Today, I will talk to you about how to build a cross-compilation environment for eclipse+yougatoo+cygwin+jlink under win. Many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

The installation of a tool

1 install cross-compilation tools

Yagarto (yagarto-bu-2.21_gcc-4.6.2-c-c++_nl-1.19.0_gdb-7.3.1_eabi_20111119.exe) is chosen here. Add the bin path to the system environment variable Path after installation, such as C:\ yagarto\ bin;, open the console and enter "arm-none-eabi-gcc-v". If the version of gcc can be displayed, the cross compilation chain is installed successfully.

2 install the tools tool (yagarto-tools-20100703-setup.exe)

Add the bin path to the environment variable Path after installation, for example: C:\ yagarto-tools-20100703\ bin;, enter "make-v" > in the console

Also note that the version of make I installed is 3.8.1, because it is said on the Internet that 3.8.1 bug causes make to produce errors such as "process_begin: CreateProcess (NULL, pwd,...) failed." In fact, this is not the problem of make, it should be the environment is not well configured. I continued to install cygwin after the error to resolve the problem.

3. Install cygwin

My system is win7_x64, so install cygwin64 and add C:\ cygwin64\ bin; to Path after installation. I don't have gnu make tools installed in cygwin, so I can use which make to see which make is used in cygwin

When installing cygwin, it is best to install and configure vim together, so that it will be much easier to use. Execute cp / usr/share/vim/vim74/vimrc_example.vim ~ / .vimrc to copy the configuration file of vim for use. Add colorscheme koehler at the end of the .vimrc to change the color matching for vim. The other color matching is under / usr/share/vim/vim74/colors, you only need to change the last koehler of .vimrc to the name under colors to change the color scheme.

In addition, the configuration file of cygwin copies all the environment variables of win to cygwin as environment variables. You can type echo $PATH in cygwin shell to view it. If you want to edit PATH by yourself, you can edit it by vim / etc/profile. My environment variables are shown in the figure (# comments are temporarily unneeded variables)

3 install eclipse for Candlestick +

The java environment needs to be installed before installation. And the java path is added to the system environment variable. The versions of java and eclipse (x86 or x86 / 64) must be the same.

Second, the use of ide

Cancel Build Automatically under Project

Open Project-> Properties-> CAccord + Build-> Discovery Options

Select the arm-none-linux-gnueabi-gcc.exe tool for cross-compiling chains under Load build output from file. If you don't set it here, you can specify the compilation chain in makefile.

Open Project-> Properties-> Setting + Build-> Setting-> Binary Parsers and select GNU Elf Parser. If you don't set it here, you can use the command in makefile to generate the file.

If the compilation chain and output file are specified in makefile, the above configuration does not need to be set, and some projects that are not compiled by "make all" can configure the compilation command in the project. For example, make TARGET=mx28 BOARD=evk can be set in the properties of the project

Open the new debugger under Run-> Debug Configuration-> Zylin Embedded debug (native).

(1) Select the project to be debugged under Main-> Project

(2) Select the compiled and output xxx.elf file under Main-> CAccord + Application

(3) Select the GDB tool for cross-compilation chain under Debugger-> GDB Debugger: arm-none-eabi-gdb.exe

(4) enter the following command under Commands

# connect to the J-Link gdb servertarget remote localhost:2331# Set JTAG speed to 30 kHzmonitor endian littlemonitor speed 30# Setup GDB for faster downloads#set remote memory-write-packet-size 1024monitor speed autobreak _ startloadcontinue

Save all settings and click Debug to start debugging.

After reading the above, do you have any further understanding of how to build a cross-compilation environment for eclipse+yougatoo+cygwin+jlink under win? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report