USB ASP bootloader not working

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Zaigham Khalid

USB ASP bootloader not working

Post by Zaigham Khalid » Mon Aug 16, 2010 7:39 am

hi..
I have started VUSB just last week. In the hardware consideration of VUSB wiki documents, I found that they recommend metaboard for experiments.. so I made one for me.. On metalab web, they suggest USBASP bootloader.. I have AMEGA162 16PU.. so I modified make file and bootloaderconfig.h for it to run at 12 Mhz crystal and downloaded hex file in MCU... Now I have been constantly debugging for last two days, but I receive message USB device not recognized.. I m getting 3.47V at D- and nothing at D+... fuse bits are all set for external crystal.. i.e cksel are all one. ckdiv8 is also 1.. Bootrst ,bootsz0 and bootszi are enabled (0)... libusb and filter are installed.. I have time and again checked the connections.. Please help..

frank26080115
Rank 2
Rank 2
Posts: 43
Joined: Fri Jun 19, 2009 4:43 pm

Re: USB ASP bootloader not working

Post by frank26080115 » Mon Aug 16, 2010 6:21 pm

did you reconfigure the bootloaderCondition() ? you didn't mention it in your post

zeeekay
Posts: 7
Joined: Tue Jul 20, 2010 11:13 pm
Contact:

Re: USB ASP bootloader not working

Post by zeeekay » Mon Aug 16, 2010 6:50 pm

hi .. Thanks for reply, Finally I have gotten my board working on hid-mouse.. Now I am sure that hardware is not the problem..
I did not configure the jumper bit.. It is set as default to be pin 7 of PORTD. .. Do I need to set some fuse bits other than CKSEL and clcdiv8 (hey are set for external cystal).. for bootloader.. I m still getting "not recognized" error for usbasp.

frank26080115
Rank 2
Rank 2
Posts: 43
Joined: Fri Jun 19, 2009 4:43 pm

Re: USB ASP bootloader not working

Post by frank26080115 » Mon Aug 16, 2010 8:25 pm

These are the settings I would use
http://frank.circleofcurrent.com/fuseca ... LOCKBIT=FF

So you are indeed using PD7 as the jumper? That pin must be an input and held low for the bootloader to activate.
Make sure you are compiling for the right chip, and make sure the address of the bootloader is set correctly in the makefile, for the atmega162 this should be 0x3800 (I think)

zeeekay
Posts: 7
Joined: Tue Jul 20, 2010 11:13 pm
Contact:

Re: USB ASP bootloader not working

Post by zeeekay » Mon Aug 16, 2010 10:18 pm

Thanks again.. My fuse bits were same except of JTAG. so I enabled it (0).. Now making it clean: I have
D- at PD4
D+ at PD2
jumper to gnd at PD7

external crystal: 12 MHz
I m downloading program through ISP prog (lpt programmer).

I again started with fresh copy and build hex, to burn.. but still it is unrecognized device.. Its late night now.. so will again start it in morning... Thanks

zeeekay
Posts: 7
Joined: Tue Jul 20, 2010 11:13 pm
Contact:

Re: USB ASP bootloader not working

Post by zeeekay » Tue Aug 17, 2010 12:59 pm

Hi.. Trying it today, I made bootloadHID work for me.... It is good.Thank you very much for your support

Post Reply