gregs78cam
Member
Teensy2.0, Arduino1.0.5, ATTiny45(10Mhz)
I have a very simple program that I would like to run on a ATtiny45. Obviously the I/O pins will need to be changed but it looks like this:
I have found quite a few articles, tutorials, pages written on how to get Arduino to do ISP. All with varying degrees of complexity and number of steps, from just dropping files into place, to modifying all sorts of things I have muddled my way though it to the point of getting the bootloader burned to the ATtiny45. I do have a heartbeat on pin9, but here is what I get back.
The "PAGEL" and "BS2" errors are said to be expected and to ignore them. But I don't know where to go from here. So I closed the IDE, dropped a different .zip file into the hardware folder, restarted, and went straight to upload the 'blink' sketch as a test. I got this:
I don't quite get why those are listed as being in a 'temp' folder, but oh well.
I guess the bottom line is has anyone got a Teensy as ISP for ATtiny45 to work? And would mind sharing details?
Thanks.
Greg
I have a very simple program that I would like to run on a ATtiny45. Obviously the I/O pins will need to be changed but it looks like this:
Code:
byte data;
void setup() {
}
void loop () {
data = analogRead(12) / 4;
analogWrite(9, data);
delay(5);
}
I have found quite a few articles, tutorials, pages written on how to get Arduino to do ISP. All with varying degrees of complexity and number of steps, from just dropping files into place, to modifying all sorts of things I have muddled my way though it to the point of getting the bootloader burned to the ATtiny45. I do have a heartbeat on pin9, but here is what I get back.
Code:
Arduino: 1.0.5 (Windows XP), Board: "ATtiny45 (w/ Arduino as ISP)"
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny45
avrdude: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
The "PAGEL" and "BS2" errors are said to be expected and to ignore them. But I don't know where to go from here. So I closed the IDE, dropped a different .zip file into the hardware folder, restarted, and went straight to upload the 'blink' sketch as a test. I got this:
Code:
Arduino: 1.0.5 (Windows XP), Board: "ATtiny45 (internal 1 MHz clock)"
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny45 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\arduino\cores\arduino -IC:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\attiny\variants\tiny8 C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\Blink.cpp -o C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\Blink.cpp.o
In file included from C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\arduino\cores\arduino/Stream.h:26,
from C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\arduino\cores\arduino/HardwareSerial.h:28,
from C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\arduino\cores\arduino/Arduino.h:193,
from Blink.pde:7:
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\arduino\cores\arduino/Print.h:32:1: warning: "BIN" redefined
In file included from c:/documents and settings/greg/desktop/arduino-1.0.5/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotn45.h:38,
from c:/documents and settings/greg/desktop/arduino-1.0.5/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h:282,
from c:/documents and settings/greg/desktop/arduino-1.0.5/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:82,
from C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\arduino\cores\arduino/Arduino.h:8,
from Blink.pde:7:
c:/documents and settings/greg/desktop/arduino-1.0.5/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotnx5.h:55:1: warning: this is the location of the previous definition
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\malloc.c.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\realloc.c.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\WInterrupts.c.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\wiring.c.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\wiring_analog.c.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\wiring_digital.c.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\wiring_pulse.c.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\wiring_shift.c.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\CDC.cpp.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\HardwareSerial.cpp.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\HID.cpp.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\IPAddress.cpp.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\main.cpp.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\new.cpp.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\Print.cpp.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\Stream.cpp.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\Tone.cpp.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\USBCore.cpp.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\WMath.cpp.o
Using previously compiled: C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\WString.cpp.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\malloc.c.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\realloc.c.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\WInterrupts.c.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\wiring.c.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\wiring_analog.c.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\wiring_digital.c.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\wiring_pulse.c.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\wiring_shift.c.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\CDC.cpp.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\HardwareSerial.cpp.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\HID.cpp.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\IPAddress.cpp.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\main.cpp.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\new.cpp.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\Print.cpp.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\Stream.cpp.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\Tone.cpp.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\USBCore.cpp.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\WMath.cpp.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\WString.cpp.o
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-gcc -Os -Wl,--gc-sections -mmcu=attiny45 -o C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\Blink.cpp.elf C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\Blink.cpp.o C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\core.a -LC:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp -lm
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\Blink.cpp.elf C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\Blink.cpp.eep
C:\Documents and Settings\Greg\Desktop\Arduino-1.0.5\hardware\tools\avr\bin\avr-objcopy -O ihex -R .eeprom C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\Blink.cpp.elf C:\DOCUME~1\Greg\LOCALS~1\Temp\build3814921862945245800.tmp\Blink.cpp.hex
Binary sketch size: 830 bytes (of a 4,096 byte maximum)
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny45
avrdude: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
I don't quite get why those are listed as being in a 'temp' folder, but oh well.
I guess the bottom line is has anyone got a Teensy as ISP for ATtiny45 to work? And would mind sharing details?
Thanks.
Greg
Last edited: