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:
Download the way, there are two mainstream choose the first official JTAG download, is this
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
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 里出现你添加的工具时的名字,点击出现下面这种文字成功: