[dorkbotpdx-blabber] Teensy 2 AVRISP-MKII (LUFA) problems
scott at dixons.mailworks.org
Tue Oct 18 02:37:28 EDT 2011
Boy, I'm puzzled. Just within the last couple of weeks, I used a teensy with ArduinoISP to program a factory fresh atmega328p on a board I did in the group order. We also used that setup to program a bunch of tiny44 and tiny84s on Monty's brushbot boards. I don't have any tiny45 or tiny13 around to check (only other avr I have at the moment is a 2313) but I sure think that it should all work. Are these new chips or have the fuses been set before? I'm guessing the invalid signature which comes back is 0x0. If not, what is it?
Besides the obvious switches to set programmer type, target type and port, about the only other switch I've needed to play with in avrdude is -B which sets the programming clock speed (essentially). If it is too fast (depending on how the target clock fuses and external xtal, if any, are setup), it might cause problems.
The only other thing I can say is if you are still struggling with this by next Monday, we can take a crack at figuring it out at the Dorkbot meeting.
On Oct 17, 2011, at 11:08 PM, Jason Plumb wrote:
> First, (Paul/Jim/Scott) thanks for the feedback/advice/hints. Greatly appreciated.
> I tried the arduino (teensyduino) route last night without success. Also tried a Teensy++ 1.0 board as a programmer, several tiny45 chips and a tiny13. Same problem.
> I compiled and tried avrdude 5.11.1 tonight. Same problem.
> I tore down the breadboard, pulled out a different physical board, built it back up (which takes all of about 4 minutes), and same thing.
> Still speculating, spelunking, bewildered.
> On 10/17/2011 11:05 AM, Scott Dixon wrote:
>> Ah, yes. I think the version of ArduinoISP that I have been using dates back before Arduino 19. As Paul says, it should run out of the box now.
>> My experience with "invalid device signature" is that it usually means that the programmer is now saying the right things to avrdude and that the problem is in the communication with the target. Likely suspects, from my own errors, are wiring problems with the SPI lines, lack of power to the target, or incorrect fuse settings (particularly issues with external clock settings).
>> As Jim noted, Laen made up a bunch of copies of a simple board for using the teensy as an ISP programmer. It breaks the lines out to a standard Atmel 6 pin ISP header. If you want to do this a lot, it is nice to have one of these boards and you might see if Laen still has any left.
>> On Oct 17, 2011, at 3:23 AM, Paul Stoffregen wrote:
>>>> Hmmm...I grabbed teensyduino and the arduino software, loaded up the ArduinoISP sketch and have guessed that I didn't need to make pin changes because the teensyduino should be using its own "core" pins (I'm guessing that it's activated when choosing the target device from the menu clickies).
>>> Yes. Starting with Arduino 0019, ArduinoISP's pins are configured automagically by the pins_arduino.h header, which in turn depends on the board you selected in the menu.
>>> The pins on Teensy 2.0 are 0 = SS (connect to reset on the target chip), 1 = SCLK, 2 = MOSI, 3 = MISO. The pinout info is here:
>>>> Upon programming ArduinoISP that way (and the implicit reboot), a /dev/ttyUSB000 (symlinked to /dev/ttyACM0) shows up, and I change my avrdude commandline accordingly...and it tries to work, but fails out with "invalid device signature".
>>> Maybe it's "working", but your avrdude params aren't quite right? The exact command and the exact output would make guessing the problem much easier. You can also run avrdude with -v -v for extra verbose output, which probably doesn't help, but might be worth attaching to your next message anyway?
>>> Also, make sure you have a modern version of avrdude, like 5.10 or 5.11. Run it with no inputs to see the version info.
>>>> Thanks for the tips!
>>>> dorkbotpdx-blabber mailing list
>>>> dorkbotpdx-blabber at dorkbot.org
>>> dorkbotpdx-blabber mailing list
>>> dorkbotpdx-blabber at dorkbot.org
>> dorkbotpdx-blabber mailing list
>> dorkbotpdx-blabber at dorkbot.org
> dorkbotpdx-blabber mailing list
> dorkbotpdx-blabber at dorkbot.org
More information about the dorkbotpdx-blabber