Here is my 'progress' or at least steps I undertook so far:
I modified the optiboot makefile to change the AVR_FREQ to 8Mhz, as I will be runnint the Attiny on its internal oscillator:
luminet: TARGET = luminet
luminet: MCU_TARGET = attiny84
luminet: CFLAGS += '-DLED_START_FLASHES=3' '-DSOFT_UART' '-DBAUD_RATE=9600'
luminet: CFLAGS += '-DVIRTUAL_BOOT_PARTITION'
luminet: AVR_FREQ = 8000000L
luminet: LDSECTIONS = -Wl,--section-start=.text=0x1d00 -Wl,--section-start=.version=0x1efe
luminet: $(PROGRAM)_luminet.hex
luminet: $(PROGRAM)_luminet.lst
I burned the OptiBoot bootloader and am able to see the led on PA7 blink three times as expected.
avrdude -c usbtiny -p attiny84 -e -u -U lock:w:0x3f:m -U efuse:w:0xFE:m -U hfuse:w:0xDF:m -U lfuse:w:0x62:m
avrdude -c usbtiny -p attiny84 -U flash:w:optiboot_luminet.hex
I modified my boards.txt to add a new section as follows:
##############################################################
attiny84.name=ATtiny84 Optiboot
attiny84.upload.protocol=stk500 //tried 'arduino' as well
attiny84.upload.maximum_size=7424
attiny84.upload.speed=9600
attiny84.build.mcu=attiny84
attiny84.build.f_cpu=8000000L
attiny84.build.core=tiny
I hooked up the FTDI cable, TX and RX as follows:
/* Ports for soft UART - left port only for now. TX/RX on PA2/PA3 */
.. and yes, I tried swapping the lines just in case.
I hooked up a 0.1uF ceramic capacitor in series with the RtS line on the FTDI
I try to upload a sketch, but get:
Using Port : COM20
Using Programmer : stk500v1
Overriding Baud Rate : 9600
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude done. Thank you.
Comments are welcome
