I am a new Gemma user having the following system:
- 32-bit Win7 and XP in laptops
- Gemma with Arduino v1.0.3 software
- USBtinyISP is installed
Issues:
(1) Gemma's red LED kept blinking
(2) PC's Device Manager kept sensing new hardware device, even after the Gemma show up as an USBtinyISP AVR Programmer
(3) Arduino v1.0.3 failed to upload the code "Blink", and had the following error messages:
- Could not find USBtiny device (0x1781/0xc9f), or
- Got a lot of red text, errors and also a warning about Verification Failed
I pushed the reset PB before uploading the code and followed the instruction to change the avrdude.conf file in the hardware/tools/avr/etc folder.
Please help...
Gemma's red LED keeps blinking
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Gemma's red LED keeps blinking
The Gemma will only appear as a USBTinyISP while the bootloader is running. If the upload doesn't start in time, the bootloader will stop and the device will disappear from the Device Manager.
When you upload a sketch, it compiles it first before starting the upload. To make sure that the bootloader is running when the upload starts, hold the reset button down until just before the upload starts. It may take a few tries to get the timing right.
When you upload a sketch, it compiles it first before starting the upload. To make sure that the bootloader is running when the upload starts, hold the reset button down until just before the upload starts. It may take a few tries to get the timing right.
-
- Posts: 9
- Joined: Sat Nov 09, 2013 8:49 pm
Re: Gemma's red LED keeps blinking
support_bill,
Thanks for the quick reply. I followed your instruction to push the reset PB right before upload started. The following the error message reported by Arduino software. I double checked the new avrdude.conf for Gemma, downloaded from Adafruit website, is in "C:\Program Files\Arduino\hardware\tools\avr\etc".
************** Error Message reported by Arduino software **************************
...
... (lots of red text)
(expected 4, got -5)
avrdude: error: usbtiny_receive: usb_control_msg: sending control message failed, win error: The device does not recognize the command.
(expected 4, got -5)
avrdude: verification error, first mismatch at byte 0x0000
0x22 != 0x00
avrdude: verification error; content mismatch
avrdude: error: usbtiny_transmit: usb_control_msg: sending control message failed, win error: The device does not recognize the command.
***********************************************************************************************************
Thanks for the quick reply. I followed your instruction to push the reset PB right before upload started. The following the error message reported by Arduino software. I double checked the new avrdude.conf for Gemma, downloaded from Adafruit website, is in "C:\Program Files\Arduino\hardware\tools\avr\etc".
************** Error Message reported by Arduino software **************************
...
... (lots of red text)
(expected 4, got -5)
avrdude: error: usbtiny_receive: usb_control_msg: sending control message failed, win error: The device does not recognize the command.
(expected 4, got -5)
avrdude: verification error, first mismatch at byte 0x0000
0x22 != 0x00
avrdude: verification error; content mismatch
avrdude: error: usbtiny_transmit: usb_control_msg: sending control message failed, win error: The device does not recognize the command.
***********************************************************************************************************
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Gemma's red LED keeps blinking
That error is usually due to a problem with avrdude.conf. Are you sure you changed it? If you have more than one version of the IDE installed, make sure you changed it in the right one.(expected 4, got -5)
Another possibility is to try the direct AVRDude approach:
http://learn.adafruit.com/introducing-t ... th-avrdude
-
- Posts: 9
- Joined: Sat Nov 09, 2013 8:49 pm
Re: Gemma's red LED keeps blinking
Hi support_bill,
I removed the existing Arduino software and installed a new copy of v1.0.5 software using Windows's program installer. Therefore, I am sure that the avrdude.conf is in the directory "C:\Program Files\Arduino\hardware\tools\avr\etc\".
I followed the website's instructions using the command line "avrdude -v", and got a DOS error message in the attachment: "avrdude is not a recognized internal or external command"
I can feel I am getting closer to the problem.
Thanks for your help.
I removed the existing Arduino software and installed a new copy of v1.0.5 software using Windows's program installer. Therefore, I am sure that the avrdude.conf is in the directory "C:\Program Files\Arduino\hardware\tools\avr\etc\".
I followed the website's instructions using the command line "avrdude -v", and got a DOS error message in the attachment: "avrdude is not a recognized internal or external command"
I can feel I am getting closer to the problem.
Thanks for your help.
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Gemma's red LED keeps blinking
If you don't have the avrdude install directory in your environment search path you will get that error. You can either edit your environment variables, or navigate to the avrdude folder before issuing the command."avrdude is not a recognized internal or external command"
-
- Posts: 9
- Joined: Sat Nov 09, 2013 8:49 pm
Re: Gemma's red LED keeps blinking
hi support_bill,
After switching to the directory "C:\Adafruit_Arduino\hardware\tools\avr\etc', I got the same DOS error message: avrdude could not be recognized as a command (see the attachment).
After switching to the directory "C:\Adafruit_Arduino\hardware\tools\avr\etc', I got the same DOS error message: avrdude could not be recognized as a command (see the attachment).
- Attachments
-
- AVRdude_Error_Message.jpg (71.06 KiB) Viewed 1286 times
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Gemma's red LED keeps blinking
You need to run the .exe, not the .conf. The executable file is in: ... \hardware\tools\avr\bin
- phild13
- Posts: 247
- Joined: Mon Sep 10, 2012 1:05 pm
Re: Gemma's red LED keeps blinking
Have you installed winAVR?
WinAVR (Windows) or Crosspack for AVR Development (Mac) software contains avrdude, which is needed! Installing WinAVR will install avrdude and add the correct path to the Windows Envirnonment Variables which enables avrdude use from the command prompt.
Your command window proves your path variable is not set or you have not installed avrdude.
WinAVR (Windows) or Crosspack for AVR Development (Mac) software contains avrdude, which is needed! Installing WinAVR will install avrdude and add the correct path to the Windows Envirnonment Variables which enables avrdude use from the command prompt.
Your command window proves your path variable is not set or you have not installed avrdude.
-
- Posts: 9
- Joined: Sat Nov 09, 2013 8:49 pm
Re: Gemma's red LED keeps blinking
support_bill and PhilD13,
I added the path to run the avrdude.exe and to access avrdude.conf, and got the attached response in the dos command line.
However, I still got error while uploading...
Mike
I added the path to run the avrdude.exe and to access avrdude.conf, and got the attached response in the dos command line.
However, I still got error while uploading...
Mike
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Gemma's red LED keeps blinking
It is reporting the correct device signature for the ATTiny85, which is the processor in the Gemma. Try this command line:
avrdude -c usbtiny -p attiny85
-
- Posts: 9
- Joined: Sat Nov 09, 2013 8:49 pm
Re: Gemma's red LED keeps blinking
support_bill,
I tried the command: avrdude -c usbtiny -p attiny85, and the dos responded "Device Signature = 0x1e930b, and Fuses OK".
The error message while uploading remained the same.
I tried the command: avrdude -c usbtiny -p attiny85, and the dos responded "Device Signature = 0x1e930b, and Fuses OK".
The error message while uploading remained the same.
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Gemma's red LED keeps blinking
OK. Let's send you out a new one. Contact [email protected] with a link to this thread.
-
- Posts: 9
- Joined: Sat Nov 09, 2013 8:49 pm
Re: Gemma's red LED keeps blinking
support_bill,
Thanks for your help. I have two Gemma's that were purchased at the same time not long ago, and they behave the same. One is as new, but the other one was applied solder to attach a NeoPixel ring.
May I de-solder the used Gemma and exchange both Gemma's for new ones?
Thanks.
Mike
Thanks for your help. I have two Gemma's that were purchased at the same time not long ago, and they behave the same. One is as new, but the other one was applied solder to attach a NeoPixel ring.
May I de-solder the used Gemma and exchange both Gemma's for new ones?
Thanks.
Mike
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Gemma's red LED keeps blinking
Hmmm - If you are seeing the same issue with two of them, a replacement may not help. Take a look through this thread to see if there is anything you haven't tried yet. http://forums.adafruit.com/viewtopic.php?f=52&t=45541
Please be positive and constructive with your questions and comments.