Hi All,
I'm hoping one of your will recognize the error of my ways and provide a nudge in the right direction.
I am trying to build one of the example HID LUFA USB projects and load it into a USBKEY board.
I am using Studio 6.1. I installed the LUFA extension. I selected the "LOWLEVEL KEYBOARD1" example and made this into a "solution" or "project" (not sure of the Atmel-specific jargon here).
I "Clean Solution" under the BUILD Tab in Studio 6.1, I "Build Solution", I Rebuild Soultion, and all runs fine with no errors and I get the "Succeed" message at the end of each operation. In the DEBUG folder new HEX & EEP files are created.
I use my JAGICE-MKII programmer to load the hex file into the USBKEY board. That works fine. HOWEVER, when I try to load the EEP file I get an error indicating there is not enough data in the EEP file, and the operation is curtailed. The EEP file is 1K in length. I'm not even sure of this EEP file needs to be loaded for this example.
But the BIG PROBLEM is that when I plug the USBKEY board into my PC USB port, nothing seems to be happening. The green LED on the USBKEY board is lit, but I don't see any activity on the board's other LEDs (should there be?).
The PC activity LED seems to do a little something when the USBKEY is first connected to the USB port, but I'm not so sure that it happens everytime I connect or disconnect from the USB.
My assumption is that the example is configured for the USBKEY board because of something I read in the LUFA documentaion or on Dean's website. But when I look in the boardtypes.h file I see this:
#define BOARD_ BOARD_NONE
Which seems to indicate the project is "delivered" in an unconfigured state. I changed the "BOARD_NONE" to "BOARD_USBKEY", rebuilt, recleaed, re-everythinged, but No Dice!
Any help would be greatly appreciated. I'm trying to incoporate USB HID functionality into a larger project. I had good luck with the ATXMEGA-A3BU demo project, but I wanted to give the LUFA approach a fair shot too, since it seems the LUFA documentation is more prolific and it has a good reputation among my Fellow Freaks.
Forgot to mention, that the USBKEY board is brand new, and it did work perfectly with the pre-programmed demo it came with.