Page 1 of 1

USB ASP bootloader not working

Posted: Mon Aug 16, 2010 7:39 am
by Zaigham Khalid
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..

Re: USB ASP bootloader not working

Posted: Mon Aug 16, 2010 6:21 pm
by frank26080115
did you reconfigure the bootloaderCondition() ? you didn't mention it in your post

Re: USB ASP bootloader not working

Posted: Mon Aug 16, 2010 6:50 pm
by zeeekay
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.

Re: USB ASP bootloader not working

Posted: Mon Aug 16, 2010 8:25 pm
by frank26080115
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)

Re: USB ASP bootloader not working

Posted: Mon Aug 16, 2010 10:18 pm
by zeeekay
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

Re: USB ASP bootloader not working

Posted: Tue Aug 17, 2010 12:59 pm
by zeeekay
Hi.. Trying it today, I made bootloadHID work for me.... It is good.Thank you very much for your support