Flashing ATMEGA

edited January 2014 in General
Hey guys, just wondering if there is anyone out here with some tips on how to flash the ATMEGA and what kind of interface you might suggest.

I was looking at this: http://www.atmel.com/tools/avrispmkii.aspx and it seemed interesting.

With all the DIY stuff I am interested in I thought it might be a good investment to just go ahead and learn how to do it myself :)

Comments

  • It is a very good tool for what you are looking into doing.

    I have one and it is very useful!
  • I can recommend the usbasp programmer. It's cheap, diy, and available as kit. The slow version without external xtal for under 5€ and the faster one for around 10€

    I've been using it for years without problems.

    It won't work with avr studio but with avr dude it works like a charm!

  • I have the avr isp MKII and it works just fine with avrdude as well as avr studio. The reality of the situation though is that you rarely need it. For projects like LXR, the chip comes with a bootloader already flashed. If you have a spare arduino board (non smd) sitting around you can even use that to flash a bootloader (or even a firmware) onto a blank chip. I guess it depends on what you are planning on doing.
  • Good input. I noticed from a little bit of research that it isn't as easy as finding a dongle or something and placing the chip in it. It seems a lot of people are flashing from breadboards etc. There's gotta be an easier way than that yeah?
  • edited January 2014
    Edit: Oops, thought this was for the AVR device, not the ATMEGA. 
  • edited January 2014
    @Teef, solder 28 and 40 pin sockets to breadboard. Add 2 caps, quartz and 10 pin header for usbasp. I'm using this temporary adapter for about four years =) It takes 20 minutes once to solder and than saves a lot of time.
    And usbasp+avrdude FTW.
  • Right on, thanks a lot schrab! 
  • Can someone explain why you'd want to do this? 

    What exactly is the ATMEGA used for in the LXR? 
  • In my LXR case it's non-standard OLED, encoder with swapped lines and my laziness to setup ARM toolchain to compile and assemble SDcard firmware image.
    And the need for flashing dozens MCU's for other projects of course =)
  • on the LXR the atmega is the big 40 pin chip on the frontpanel pcb.
    It is responsible for the whole UI, display, buttons etc...

    you won't need a programmer if you got a full kit, but if you self source the parts you have to bringt the firmware on the atmega chip (at least the bootloader) or it will do nothing.

    and of course you can use it to flash AVR (ATMEGA) chips for other DIY projects as well.
  • on the LXR the atmega is the big 40 pin chip on the frontpanel pcb.
    It is responsible for the whole UI, display, buttons etc...

    you won't need a programmer if you got a full kit, but if you self source the parts you have to bringt the firmware on the atmega chip (at least the bootloader) or it will do nothing.

    and of course you can use it to flash AVR (ATMEGA) chips for other DIY projects as well.
    Exactly what I was looking for. Thanks! 
Sign In or Register to comment.