EEVblog Electronics Community Forum
Electronics => Beginners => Topic started by: Vindhyachal.takniki on October 31, 2016, 04:37:58 pm
-
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/ArduinoToBreadboard (https://www.arduino.cc/en/Tutorial/ArduinoToBreadboard)
Shows 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?
-
I think this is what you are looking for : https://www.arduino.cc/en/Tutorial/ArduinoISP (https://www.arduino.cc/en/Tutorial/ArduinoISP)
EDIT: My bad, that's the same link.
This is specifically for arduino megas : http://playground.arduino.cc/Code/MegaISP (http://playground.arduino.cc/Code/MegaISP)
-
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.
-
+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.
-
I didn't want to be the first guy to go off-topic and suggest growing out of the Arduino sandbox ;) But 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.
-
When I programmed AVR I used a homemade USBasp. Always worked flawlessly.
-
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.
-
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.
-
I bought USBasp programmer