avr+development environment+linux, building of avr microcontroller development environment under win7

Publisher:渤海湾Latest update time:2022-01-19 Source: eefocusKeywords:avr  linux Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Operating system: win7 professional x86

Development software: avr studio 4.19

First, download AVR Studio 4.19, because it seems that this is the last development environment that Atmel officially supports JTAG ICE. And only this version 4 supports Windows 7. I happened to have a JTAG, so I decisively chose this version.

8da04a560b813fbc697814ae2efebdc5.png

Related software download address:

It seems that there are many common tools to download here.

At the beginning, I used the development environment built by avr studio 4.19+WinAVR-20100110.

But a problem occurred. When compiling the file, the compiler could not be found. The following error occurred:

make: Makefile: No such file or directory avr-objcopy: 'main.elf': No such file

There are many errors above, which probably means that the compiler and link tool cannot be found.

I analyzed the reasons that caused this error and found the following two:

1: There is a Chinese path in the file path of the project file. The software made by foreigners does not support Chinese. Just accept it.

But I looked carefully and it seems that there is no Chinese path.

2. There is a problem with the compiler configuration. Reinstalling avr studio 4.19 and WinAVR-20100110 does not work either.

The temporary solution is as follows:

:project-->configuration options Open the main project options window

On the left window: Include directories tab, click include file search on the right folder to add the file path: C:WinAVR-20100110-installavrinclude

In the left window: Memory settings tab, remove the hook in front of usr AVR Toolchain, and add in avr-gcc: C:WinAVR-20100110-installbinavr-gcc.exe

In make: add: C:WinAVR-20100110-installutilsbinmake.exe

Finally the compilation was successful.

But a problem occurred. Every time I rebuilt the project, I had to reconfigure the compiler, which was very troublesome.

The ultimate solution emerged:

Install avrstudio419 first

Then install avr-toolchain-installer-3.3.0.710-win32.win32.x86

39eaff780aa55e55cd791f0ff91b97c5.png

Comparing the contents of the installation folder with those generated by installing winavr, there is not much difference. Very good~~

8c8a469e53df82006992be538a27e901.png

Okay, here's a picture of successful compilation.

b3dbd13a243ef4f9fd46cfb4a523d34d.png

Do you think the font is beautiful? It is much better than the built-in font.


Keywords:avr  linux Reference address:avr+development environment+linux, building of avr microcontroller development environment under win7

Previous article:B001 - Atmega16 - Assembly - Address space allocation
Next article:ATMEGA16 serial port sending and interrupt receiving CVAVR program

Recommended ReadingLatest update time:2024-11-15 10:22

Design of Remote Wireless Photometry System Based on ZigBee and 3G
A remote wireless photometry system based on the combination of ZigBee short-distance wireless communication technology and 3G long-distance wireless communication technology is designed; the system processor uses Samsung S5PV210 processor, the short-distance wireless communication module uses TI's CC2530 chip, and the
[Microcontroller]
Design of Remote Wireless Photometry System Based on ZigBee and 3G
The linux kernel prints "BUG: scheduling while atomic
When the Linux kernel prints "BUG: scheduling while atomic" and "bad: scheduling from the idle thread" errors, Usually, a dormant function, such as semaphore, mutex, sleep, is called in the interrupt handling function. However, the Linux kernel requires that during interrupt handling, system scheduling and pree
[Microcontroller]
Embedded Linux Based on TinyXml
  This paper proposes a residential electricity management solution based on embedded Linux system. The system structure is shown in Figure 1. The entire residential electricity management system is structurally divided into four layers: the first layer is the main station, which is responsible for remote meter readin
[Microcontroller]
Embedded Linux Based on TinyXml
AVR Driver for 25C256
/************************************Hardware Macro Definition************ *************************/ #define SelectMemory1() (PORTA&=~0X01) #define DeselectMemory1() (PORTA|=0X01) #define ClrHoldMemory1( ) (PORTA&=~(0X01 #define SetHoldMemory1() (PORTA|=(0X01 /********************** ******************Initialize S
[Microcontroller]
Play with mini2440 development board [make and modify linux startup logo image]
Today I will play with the modification and creation of Linux startup logo images. For the mini2440 development board I have, the manufacturer Friendly Arm originally provided a conversion tool, which is relatively easy to use. However, that tool is only developed for 32-bit Fedora 9 system, and I am currently using
[Microcontroller]
Play with mini2440 development board [make and modify linux startup logo image]
OK6410A Development Board (VIII) 91 linux-5.11 OK6410A Process Development History
Refer to the origin of process address space abstraction to understand the conversion from bare metal to OS At first it was bare metal Later multi-process Later, multithreading (i.e. coroutine) was implemented in user mode // A kind of Portable Thread belonging to the thread model Coroutines were first created, the
[Microcontroller]
AVR commonly used library functions
AVR commonly used library functions 1. Character Type Functions 2. Standard C Input/Output Functions 3. Standard Library Functions – Standard library and memory allocation functions 4. Mathematical Functions 5. String Functions 6. BCD Conversion Functions 7. Memory Access Functions 8. Delay Functions
[Microcontroller]
A serial communication routine based on AVR microcontroller
This program uses the ATMega128 chip. It sends data in query mode and receives data in interrupt mode. If you have any questions, please feel free to share with me! I hope it will be helpful to you! //ICC-AVR application builder: 2007-6-10  // Target: M128 // Crystal: 7.3728Mhz //Author: Caterpillar #include iom12
[Microcontroller]
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号