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.
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
Comparing the contents of the installation folder with those generated by installing winavr, there is not much difference. Very good~~
Okay, here's a picture of successful compilation.
Do you think the font is beautiful? It is much better than the built-in font.
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
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- What is the difference between low inertia and high inertia of servo motors?
- B&O Beoplay E8 TWS True Wireless Bluetooth Earphones
- Flyback switching power supply simulation using Saber
- Our company makes FOC motor drivers. The algorithm is mature. We want to find a chip manufacturer to cooperate with us to make a motor-specific chip.
- How to build a simple and efficient isolated power supply below 2W
- Six common circuit board surface treatment processes
- [N32L43X Review] 1. Getting Started Environment Configuration
- Tektronix THz Radar Signal Test Solution
- [RISC-V MCU CH32V103 Review] - 5: Failed to leave API and enter Assembly, returned to API......
- BQ76940 sampling chip damage issue
- [RVB2601 Creative Application Development] LoRa Gateway Wireless Host Computer