Search found 17 matches

Go to advanced search

by rodmolina
Wed Aug 05, 2009 4:19 pm
Forum: V-USB
Topic: Atmega8535 OK / Atmega328p FAIL
Replies: 34
Views: 21882

Re: Atmega8535 OK / Atmega328p FAIL

SOLVED POST: wrong fuses

the problem was i was using codevisionAVR to program the fuses but aparently it has wrong info about mega328P so the code was not starting at boot address..

i can use it now at 12MHz or 16MHz perfectly ;)

Thank you all!
by rodmolina
Wed Aug 05, 2009 4:18 pm
Forum: V-USB
Topic: about avrusb library
Replies: 11
Views: 4107

Re: about avrusb library

SOLVED POST: wrong fuses

the problem was i was using codevisionAVR to program the fuses but aparently it has wrong info about mega328P so the code was not starting at boot address..

i can use it now at 12MHz or 16MHz perfectly ;)

Thank you Christian!
by rodmolina
Wed Aug 05, 2009 4:12 pm
Forum: V-USB Project Ratings
Topic: BootloadHID
Replies: 48
Views: 58846

Re: BootloadHID at mega328P

;) i made it work! the problem was the codevisionAVR having a wrong datafile about m328p fuses, so the chip was never starting at boot address. i realized this when i read the chip with AVR Studio, i saw the fuses with different values. i was using codevision to set the fuses, not to compile bootloa...
by rodmolina
Wed Jul 29, 2009 6:12 pm
Forum: V-USB Project Ratings
Topic: BootloadHID
Replies: 48
Views: 58846

Re: BootloadHID

DEVICE = atmega328p
BOOTLOADER_ADDRESS = 7800
F_CPU = 12000000

and fuse settings are:
bootrst=0
bootsz0=1
bootsz1=0

or

DEVICE = atmega328p
BOOTLOADER_ADDRESS = 7000
F_CPU = 12000000

and fuse settings are:
bootrst=0
bootsz0=0
bootsz1=0

none of this works.. :(
by rodmolina
Wed Jul 22, 2009 3:56 pm
Forum: V-USB Project Ratings
Topic: BootloadHID
Replies: 48
Views: 58846

Re: atmega328p

[quote="otitov"]hi! does anybody succeed to run BootloadHID on atmega328p?[/quote] i have the same problem.. i made it work on atmega168v @ 12MHz crystal but when i switch to atmega328p it just doesnt work.. the only way it works is setting TEST_MODE = 1 and BOOTLOADER_ADDRESS = 0 any help...
by rodmolina
Mon May 04, 2009 9:15 pm
Forum: V-USB
Topic: Atmega8535 OK / Atmega328p FAIL
Replies: 34
Views: 21882

Re: Atmega8535 OK / Atmega328p FAIL

hi there! i made it work, but in order to make it work on a 328p i made some changes on the iom328p.h library file..i dont know why, i didnt checked the hole file but i seemed to be identically to iomx8.h general library file used by atmega48/88/168 (not pico) but, the PRR register is included anywa...
by rodmolina
Mon Apr 27, 2009 7:40 pm
Forum: V-USB
Topic: Atmega8535 OK / Atmega328p FAIL
Replies: 34
Views: 21882

Re: Atmega8535 OK / Atmega328p FAIL

i made it work.. with a 12mhz crystal, both atmega8535 and atmega168V (yes, i know its only 10mhz but it worked fine) but i still cant make it work on atmega328p. i think there is a compatibility issue, because mega168 and mega328 are from the same family.. i know the mega328 is running because i ru...
by rodmolina
Thu Apr 16, 2009 7:32 pm
Forum: V-USB
Topic: Atmega8535 OK / Atmega328p FAIL
Replies: 34
Views: 21882

Re: Atmega8535 OK / Atmega328p FAIL

:oops: i thought thats the way it works.. i assumed the osc calibrations were made automatically as the module for 12,8mhz was loaded, if i port D+ to INT0 the osc tune was made at every usb bus reset and if i port D- to INT0 then the osc tune was made at every packet.. so how should i do to have an...
by rodmolina
Wed Apr 15, 2009 10:00 pm
Forum: V-USB
Topic: about avrusb library
Replies: 11
Views: 4107

Re: about avrusb library

sorry christian, i ve made a new post since there is no relation between the topic and my actual problem.. i thought it was correct to do it, and didnt see your reply but.. here i am now: i have been testing my chances.. neither the atmega8535 and atmega328p works at 12,8Mhz code. atmega8535 works a...
by rodmolina
Wed Apr 15, 2009 9:53 pm
Forum: V-USB
Topic: Atmega8535 OK / Atmega328p FAIL
Replies: 34
Views: 21882

Atmega8535 OK / Atmega328p FAIL

i have been testing my chances.. neither the atmega8535 and atmega328p works at 12,8Mhz code . atmega8535 works at 12 and 16Mhz atmega328p no successfull results even with same crystals here is what i did : always running at 3,3v i simply took the mouse-hid project and just like it was, i compiled i...
by rodmolina
Tue Apr 14, 2009 9:36 pm
Forum: V-USB
Topic: about avrusb library
Replies: 11
Views: 4107

Re: about avrusb library

Welll.. i have tried out with both 16Mhz and 12Mhz with 10pF capacitors and i also added the 68ohms resistors at D+ and D- lines. No results. i have a led at deviceconnect_pin, it blinks many times and then it says again not recognized I saw at metaboard that you were using 27pF capacitors at the cr...
by rodmolina
Wed Apr 08, 2009 8:26 pm
Forum: V-USB
Topic: about avrusb library
Replies: 11
Views: 4107

Re: about avrusb library

i had tried recently with MOUSE_HID example, with no success..

i will try with a crystal as a last resource.. i have the feeling that my avr is not running at a RC calibrated 12,8Mhz
by rodmolina
Tue Apr 07, 2009 7:47 pm
Forum: V-USB
Topic: about avrusb library
Replies: 11
Views: 4107

Re: about avrusb library

you were right! my code wasnt at boot loader section.. now it is, i have checked it out with avrdude in terminal mode! BUT.. windows still dont recognized it, i made a "dump cal" and now it seems the firm is running, since it has changed from 0xA3 to 0xC6 is there any special consideration...
by rodmolina
Tue Apr 07, 2009 5:33 pm
Forum: V-USB
Topic: bootloadHID atmega128
Replies: 7
Views: 4516

Re: bootloadHID atmega128

mmm i cant get it recognized by windows.. i ve got an atmega328p so i tried what you posted by the winavr says warning and then error: [b]usbdrv/usbdrv.c: In function 'usbDeviceRead': usbdrv/usbdrv.c:504: warning: implicit declaration of function 'pgm_read_byte_far'[/b] main.c: In function 'main': m...
by rodmolina
Wed Apr 01, 2009 7:52 pm
Forum: V-USB
Topic: about avrusb library
Replies: 11
Views: 4107

Re: about avrusb library

Great! you are right i didnt realize that possibility! :D Now, a have been able to run the firmware, but i only get an "Could not recognize the device" from windows.. the firmware is running on boot loader section, i know because i have a LED attached at the USB.connectdevice pin an it wor...

Go to advanced search