I got my AT90USB162 recognized by Flip, but I have a couple problems:
1. I can't read any from Flip because of "Device protection is set" crappy thing keeps preventing me from reading the device.
2. Using the ASPUSB programmer, AVRDude can't read the fuses. It keeps saying "Yikes" wrong device id, BUT Flip is able to see the device id without problem!
So where is what I have done.
-Start up Flip. It shows the device id correctly. Attempted to read. Got the "Device protection is set" error. See the AT90USB162_Device_protection_is_set.jpg image attached.
-Fine. Do an erase from Flip. Now, I am able to read within Flip, but note of the device id is now all 0xFF values. See the AT90USB162_Erased.jpg image attached.
Unplug the USB cable and plug in the USBASP programmer. Attempted to read the fuse bits via AVRDude but got the below.
c:\AVR\projects\fuses>avrdude -p usb162 -c usbasp -u -U lfuse:r:lfuse.txt:h -U h fuse:r:hfuse.txt:h -F avrdude: error: programm enable: target doesn't answer. 1 avrdude: initialization failed, rc=-1 avrdude: AVR device initialized and ready to accept instructions avrdude: Device signature = 0x000000 avrdude: Yikes! Invalid device signature. avrdude: Expected signature for AT90USB162 is 1E 94 82 avrdude done. Thank you.
-Unplugged USBASP programmer and plug the back USB cable and start Flip. Flip now shows the correct device id again AND I again can't read the device.
BUT...I am able program a blinking LED program via Flip and run it. Obviously the AT90USB162 built-in bootloader is still there. But, once I unplugged the USB cable and exited Flip, the blinking LED is not running as 8Mhz, because the gap between blinking is very long, unlike previously when it was blinking at a 1.5 sec programmed interval. Plugged back the cable and started Flip again. Now the uC is not recognized by Flip. And blink program runs, BUT again not with the 1.5 sec programmed interval but some long interval! :evil:
What's going on? Please advise. So close to start writing some firmware for the AT90USB162. I want to be able to change the fuse bits to use 16Mhz and without the DIV8 bit turned on and turn off all lock bits. I want to be able to NOT use Flip if I want to, e.g., using LUFA, etc.