uploading firmware with mega-isp and a seeeduino

so my needs are simple, apply a new firmware to a rainbowduino only, i dont have an isp programmer…or do i?

i have a seeeduino laying around, and came across mega-isp on google code

heres how i did it.

i edit my sketch in arduino ide to how i want it. make sure there is no .hex file in the applet folder and build it. this should create the hex for me to upload to the device.

I couldnt get arduino ide to upload to the rainbowduino with this isp method so i just used avrdude but i hit some snags.

I used the winavr toolchain to do the actual uploading rather than using the one that came with arduino ide. The issue i was having with the rainbowduino was that the m168 cannot have an f8 written to the efuse so i had to do the commands manually.

here are the commands:
avrdude -c avrisp -p m168 -P com7 -b 19200 -B 5 -V -e -U lock:w:0x3F:m -U hfuse:w:0xDF:m -U lfuse:w:0xFF:m -U efuse:w:0x00:m
avrdude -c avrisp -p m168 -P com7 -b 19200 -B 1 -V -D -U flash:w:rainbowduino.hex:i
avrdude -c avrisp -p m168 -P com7 -b 19200 -B 5 -V -U lock:w:0x0F:m

  • Calendar

    • August 2017
      M T W T F S S
      « Sep    
       123456
      78910111213
      14151617181920
      21222324252627
      28293031  
  • Search