Member #212912

Member Since: March 24, 2011

Country: United States

  • Product PGM-08702 | about 3 years ago

    #the following sets the expected FUSE settings. If you have no idea what  
    #you are doing, you might consider looking at the boards.txt for something  
    #that makes sense. Or go here for easy calculation of the bitmask based on  
    #the options you want--http://www.engbedded.com/fusecalc/ .  
    avrdude -c stk500v2 -p m328p -P /dev/tty.usbmodem641 -U lfuse:w:0xff:m  \  
    -U hfuse:w:0xda:m -U efuse:w:0x05:m -b 115200  
    #the following writes the bootloader  
    avrdude -p m328p -c stk500v2 -P /dev/tty.usbmodem641 -b 115200 -D \  
    -U flash:w:/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex
    
  • Product PGM-08702 | about 3 years ago

    If you are wanting to take an erased Atemga 328 and make it Arduino compatible, you can use avrdude with something like the following.
    #the following makes the chip writable for what we want to do
    #if this fails, the chip might be locked down too far and it will
    #need to be erased. you can’t decrease the permissions. you
    #can only make them more strict. to increase the permissions
    #you have to wipe the chip.
    avrdude -p m328p -c stk500v2 -P /dev/tty.usbmodem641 -b 115200 -D -U lock:w:0x3F:m

  • Product PGM-08702 | about 3 years ago

    avr500atmega328.build.f_cpu=16000000L  
    avr500atmega328.build.core=arduino  
    ##############################################################
    
  • Product PGM-08702 | about 3 years ago

    Then modify and/or add an entry to boards.txt (/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/boards.txt – default location on OS X). The “upload.using” is the important part. It references the programmer.txt entry we just created. If you are modifying other entries, comment out the other upload options. e.g. upload.protocol, upload.maximum_size, and upload.speed. I added the following entry for the ATmega328:
    ##############################################################
    avr500atmega328.name=AVR500v2 programmer with ATmega328
    avr500atmega328.upload.using=olimexisp
    avr500atmega328.bootloader.low_fuses=0xFF
    avr500atmega328.bootloader.high_fuses=0xDA
    avr500atmega328.bootloader.extended_fuses=0x05
    avr500atmega328.bootloader.path=atmega
    avr500atmega328.bootloader.file=ATmegaBOOT_168_atmega328.hex
    avr500atmega328.bootloader.unlock_bits=0x3F
    avr500atmega328.bootloader.lock_bits=0x3F
    avr500atmega328.build.mcu=atmega328p

  • Product PGM-08702 | about 3 years ago

    To use this with the Arduino IDE you will need to add an entry to programmers.txt (/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/programmers.txt – default location on OS X). It should look something like the following:
    olimexisp.name=AVR ISP 500 Olimex
    olimexisp.communication=serial
    olimexisp.protocol=stk500v2

  • Product PGM-08702 | about 3 years ago

    This programmer worked out of the box for me on OS X 10.6.7. And it worked under Virtual Box running Windows XP SP3 and AVR Studio 4. The beta version of AVR Studio 5 does not yet support this programmer. Supposedly it will be supported in the final version.

No public wish lists :(