Atmega2560 based tutorial (1) - development environment to build

Atmega2560 based tutorial (1) - development environment to build

       This tutorial developed Atmega2560 not to write programs by Arduino environment, but with the official Atmel Studio7.0 to write programs, better learning Atmega2560 versatility of these devices.
       Since learning of the development Atmega2560, and other single-chip learning as the first to have one of their own development board. Atmega2560 the core board on Taobao to buy less, you can buy this:

But this development board, there are some extra parts, and I own a set of open source their core plate

Download the way, there are two mainstream choose the first official JTAG download, is this

Although this function is very powerful, but the worst thing is too expensive, 500 knives. The second option is through pirated USB ASP Taobao is the kind of common Downloader
Now all the hardware resources ready to start the installation Atmel Studio7, the installation process reference links

https://jingyan.baidu.com/article/93f9803f02e48ce0e46f5535.html
after installed, install the USB asp drive reference link https://jingyan.baidu.com/article/3aed632e2d8bdc70108091b5.html
Finally usb asp join Atmel Studio7, specific tutorial below:
open Atmel Studio7, find Tools-> External tools

Click External tools, go to the Edit

title修改为:USBasp(这个就是个名字可以随便取的)
command修改为: C:\WinAVR-20100110\bin\avrdude.exe(这个是你avrdude的位置)
arguements修改为:avrdude -c usbasp -p atmega2560 -U flash:w:$(ProjectDir)Debug$(TargetName).hex:i

在Tool 里出现你添加的工具时的名字,点击出现下面这种文字成功:

发布了12 篇原创文章 · 获赞 2 · 访问量 4154

Guess you like

Origin blog.csdn.net/jiantoushi/article/details/104011902