ic Handbag Project

success with Gemma on Windows...

Success making Gemma work with Windows PCs

project guide showcase starter kit coding
    tech home page

IMPORTANT. These are extracts from our own notes from getting Gemma to work on Windows PCs/laptops etc. We keep them to help us when we have to configure a new machine. As we mostly use Windows, and we are running an increasing number of Workshops, we are starting to see the same problems repeating. CAUTION. We hope you find these descriptions useful, but please use the Adafruit official pages for all authoritative information. We can accept no liability for the horrible things you might do to your PCs, and the hours you might waste, when our information turns out to be incorrect. Corrections gratefully received.

Use Control Panel, System to find out your system details.
Use Control Panel, Device Manager to see how Gemma is being seen (has to be plugged into the USB port at the time)
Example 1. Dell XPS M1530 Laptop (Vista Home Premium SP2)
System type: 32 bit operating system
 
No problems were experienced. After the driver has been successfully installed
Gemma shows as: LibUSB-Win32 Devices
- USBtinyISP AVR Programmer
   
Before driver has been installed
Gemma shows as: Unknown device
- Trinket
 
Example 2. Misc Desktop (Windows 7 Home Premium )
Processor: Intel Core Duo CPU
System type: 64-bit operating system
Start: Copy driver files onto hard disk, then connected Gemma via USB cable.

Problem 1. Did not recognise device etc.
It was first plugged into a USB hub, then into one of the two USB ports on the front of the computer.

Solution 1. Used rear USB ports.
Immediately recognised as a TRINKET, and tried to install driver. That failed however, but took us a step closer.

Problem 2. Driver not working.
In Control Panel/Device Manager now listed as a LibUSB-Win32 Device. Clicking on it shows driver not working.

Solution 2. Reinstalled suitable driver.
Selected 'Reinstall Driver' and then browsed to the "Windows 7 and 64 bit" driver explained below. Worked fine.

Gemma shows as: LibUSB-Win32 Devices
- USBtinyISP AVR Programmer
 

Example 3. ASUS EeePC 1001 PX ( Windows XP Home. SP3)

Processor: Atom N450
System type: 32 bit

Start: Copy standard driver files onto hard disk, then connected Gemma via USB cable.

Immediately "Found new hardware" Trinket. Opened found new hardware wizard.
1. Said No to option "Can Windows connect to Windows Update".
2. Installation wizard. Selected "install from a list or specific location"
3. Used "Include this location" to browse to driver location.

Problem 1. Access denied message.
Tries for a while, then says "there was a problem installing this software, Trinket. Access is denied. "

Tried once more from Device Manager (MyComputer, Properties, Hardware, Device Manager) but same message. NB At this point the Trinket is showing under LibUSB-Win32 Devices. Right click it for Properties, then Reinstall Driver.

Solution 1. Install as Administrator from Safe Mode.
This seems to be a permissions problem.

Windows XP home has lots of options unavailable or hidden. Restart in Safe Mode (restart, hold down f8 key). Log in as Administrator (That special account is normally hidden when not in Safe Mode, and is different from you as user with a notional Administrator account).

Driver now reinstalls fine from MyComputer, Properties, Hardware, Device Manager. restart, and all still seems to be well.

NB Useful tip. To see Administrator account use Windows key+R to open the Run box, then enter (without the quotes) "control.exe userpasswords2". You will see that your admin account was a mere Power User, and only the Administrator has access to all system files.

After the driver has been successfully installed
Gemma shows as: LibUSB-Win32 Devices
- USBtinyISP AVR Programmer
 
Problem 2: Got 'Expected 4 got 5' errors when uploading

This relates to a later stage when we had both the standard Gemmified Arduino software loaded, and the simple Blink code. Instead of uploading the blink code Arduino gave us these errors.

Solution 2. Change 'chip erase delay' in avrdude.conf file
Method as explained below in Example 5. Worked perfectly first time after that. NOTE if you use the latest Gemmified Arduino download from the Adafruit website this should no longer happen as it incorporates that fix.
Example 4. ASUS EeeTop ( Windows 7 Home Premium)
Processor: Intel Atom CPU 330
System type: 32 bit
Start: Copy driver files onto hard disk, then connected Gemma via USB cable.
Problem 1. Did not recognise device etc.
The ASUS eeeTop has 6 USB ports. None of them recognized the device
Solution 1 An external USB hub.
(Eventually ...) Connected powered USB hub to one of the eeeTop's USB ports. Instantly recognised, and then installed easily.
Meanwhile we learned this trick (not that it was relevant in this case, as it turns out)
Using Windows 7 Hardware Wizard
1. Open a DOS Prompt, remembering to right click to Run as Administrator
2. Type hdwwiz.exe
3. The Add Hardware Wizard Opens (It is a normal Windows dialogue)
4. Select "Install the hardware I manually select"
5. Select "LibUSB-Win32 Devices"
6. Select "USBtinyISP AVR Programmer"
(use Have Disk to browse to where driver is)
 
Example 5. ASUS EeePC 1025C ( Windows 7 Starter. SP1)
N.B. Several Windows 7 Pro 32 bit installations we did were identical to this.
Processor: Intel Atom N2800
System type: 32 bit
Start: Copy driver files onto hard disk, then connected Gemma via USB cable.

Immediately recognized as Trinket, and tried to install driver.

Problem 1. Driver not working.

Says it cannot install driver.

Solution 1.Reinstall driver via Device Manager.

Go through process Device Manager, click on Trinket to get up Properties. Select 'Update driver software', 'browse my computer' and point to driver files previously copied to PC.

Computer brings up Windows security message "Windows cannot verify publisher". Select "Install this driver software anyway".

Windows has successfully installed your driver software "USBtinyISP AVR programmer"

NB Should no longer get the error below if you are using the latest (March 2014) version of the Adafruit download of Arduino for Gemma etc - it already has the fix built in.

See http://forums.adafruit.com/viewtopic.php?f=51&t=51083&p=258884#p258884

Problem 2: Got 'Expected 4 got 5' errors when uploading

This relates to a later stage when we had both the standard Gemmified Arduino software loaded, and the simple Blink code. Instead of uploading the blink code Arduino gave us lots of this error message.

Solution 2. Change 'chip erase delay' in avrdude.conf file

We did this using Wordpad (as it is software available on the eeePC). Use 'Find' to get to a section called 'attiny85' then a few lines under that see 'chip erase delay = 90000' . Change the 9 to a 4. Everything worked perfectly after that.

Note 1. You may have to save it as a text file and then rename it to avrdude.conf. Do rename the old version as something like avrdude_old2.conf

Note 2. You can find the location of the avrdude.conf file by looking in the verbose text from Arduino (remember the verbose setting in Preferences), but it usually in your Arduino installation under hardware/tools/avr/etc Remember to change the view options on your PC to uncheck 'hide known file extensions' so that you can see filename endings and ensure you do not end up with a file called avrdude.conf.txt

 

Getting Windows 7 and 64 bit driver (Ex 2 above)
Browse to the following post in this adafruit forum: "I think there is an updated driver available (Win 7 and 64 bit)"

http://forums.adafruit.com/viewtopic.php?f=20&t=17112

Go down to the Sept 22 2008 post (thanks to 'mightyown') and download the zip file. This gives suitable drivers for Win7 and 64 bit systems, which Windows will not throw out as unsigned (apparently "since a Microsoft KMCS accepted digital signature is embedded in the kernel driver libusb0.sys"). That is all a bit too techie for us, but it seems to work.

Adafruit have pinned this post at the top of their USBtiny forum, so assume they must rate it.