I've tried to use BootLoadHID with ATMEGA16 device and mini-USB (B-type) connector. This does not work.
I changed the makefile, setting
DEVICE = atmega16
BOOTLOADER_ADDRESS = 3800
D+ is wired to PD2, D- to PD1
The programming mode jumper is on PD0
The code is changed to:
Code: Select all
static inline void bootLoaderInit(void)
{
char i;
PORTD = 1; /* activate pull-up */
for(i=0;i<10;i++); /* delay to allow pin voltage to stabilize */
}
#define bootLoaderCondition() ((PIND & 1) == 0)
Code: Select all
#define USB_CFG_IOPORTNAME D
#define USB_CFG_DMINUS_BIT 1
#define USB_CFG_DPLUS_BIT 2
The device appears as "unknown USB device" that means that USB is not functional.
What else could be wrong ?
The crystal is 12 MHz, all other values are default.