Programming custom Atmega2560 using Arduino - Page 1
Forum section: electronics / beginners

author: Vindhyachal.takniki
author_rank: Frequent Contributor
timestamp: October 31, 2016, 04:37:58 pm
content: 1. I have made a customized board using Atmega2560. Code is made using Arduino 1.6.5. Currently I am testing my code on arduino Atmega2560 board. Now have to shift code to customized Atmega2560 board.2. Have both uno & Atmega2560 arduino boards. How to program the customized board, so that next time onwards I can program customized board directly from arduino IDE 1.6.5.3. I was reading this:https://www.arduino.cc/en/Tutorial/ArduinoToBreadboardShows how to program ATmega328using arduino uno. In this MCU on arduino uno board has to be removed. But in my case I have Atmega2560, which is SMD so I cannot remove it. So how to do it?

author: pyroesp
author_rank: Regular Contributor
timestamp: October 31, 2016, 08:22:20 pm
content: I think this is what you are looking for :https://www.arduino.cc/en/Tutorial/ArduinoISPEDIT: My bad, that's the same link.This is specifically for arduino megas :http://playground.arduino.cc/Code/MegaISP

author: Ammar
author_rank: Regular Contributor
timestamp: November 01, 2016, 09:57:44 am
content: If you are going to be programming a lot of atmel microcontrollers, it may be worth buying an avrisp. Cheaper than having an arduino dedicated to the task. I think you can just hold shift and click download program in the arduino IDE with it and you're done.

author: Aeternam
author_rank: Unknown
timestamp: November 01, 2016, 01:43:08 pm
content: +1 on the dedicated programmer. I'm using the ATMEL-ICE, works very well.Then, if you make the switch to Atmel Studio you can even debug your program using a decent debugger while it's running on the MCU, beats printing out debug statements through the Arduino serial interface.

author: Zbig
author_rank: Frequent Contributor
timestamp: November 01, 2016, 01:50:05 pm
content: I didn't want to be the first guy to go off-topic and suggest growing out of the Arduino sandboxBut since the thread is already gravitating towards this conclusion: please do! You've made your own custom board. Take it as an opportunity to switch to the proper development environment. Get yourself an Atmel ICE, switch to Atmel Studio and you'll never look back.

author: pyroesp
author_rank: Regular Contributor
timestamp: November 01, 2016, 08:09:45 pm
content: When I programmed AVR I used a homemade USBasp. Always worked flawlessly.

author: retrolefty
author_rank: Super Contributor
timestamp: November 01, 2016, 08:21:04 pm
content: A $2 Asian Nano board running the ArduinoISP sketch will serve your need. Arduino IDE allows uploading of sketch using programmer, so Bob's you uncle.

author: rrinker
author_rank: Super Contributor
timestamp: November 03, 2016, 06:31:24 pm
content: Yeah. I was thinking about the AVRisp, my project will be using dozens of ATTiny85's. The first test ones, I just used ArduinoISP and wired it up to one of my Unos. But for $5 in parts (probably less, actually) I can wire it up as a shield with a nice socket for the chip to be programmed. They're all getting blasted with the same code. ArduinoISP should be plenty adequate. I'll also be using a lot of Nanos, but I've found a nice source of bulk packages that come without the header pins soldered on - that takes a few seconds per board, and then they too get blasted with the standard code for that part of the project and are ready to plug in and go.

author: Vindhyachal.takniki
author_rank: Frequent Contributor
timestamp: November 06, 2016, 03:07:24 pm
content: I bought USBasp programmer