Page 1 of 1

BootloadHID problem??

Posted: Wed Oct 28, 2009 1:36 pm
by bencao74
Hi,

yesterday I was trying to get the BootloadHID to work. But no success.

Here's my setting:

hfuse 0xC0
lfuse 0x9F

Dminus : PD1
Dplus : PD2

Code: Select all

static inline void  bootLoaderInit(void)
{
    PORTC = 1 << 0; /* activate pull-up for key */
    _delay_us(10);  /* wait for levels to stabilize */
}

#define bootLoaderCondition()   ((PINC & (1 << 0)) == 0)   /* True if jumper is set */

#endif


PC0 for bootloader acitvation jumpered to GND.

Project option in winavr
General:
Device atmega8
Frequency 12000000 hz
Optimization -O1

default include and lib settings
no memory settings

Custom Compilation:
-Wall
-gdwarf-2
-DF_CPU=12000000UL
-O1
-fsigned-char

for all files.

PCB schematic.

Image
http://3.bp.blogspot.com/_YLXgzxS8cEc/Sp5JjQm9nQI/AAAAAAAAAzo/BCYSyUjuL14/s1600-h/lulu_v0.1.png

I've tested it with other HID Devices talking to the same datalines.

Error Message is that device is not recognized. Used OS is winxp.

Thanks for the help!

Jochen