Page 1 of 1

Need help about host compiling

Posted: Sat Nov 13, 2010 11:24 pm
by nwew1
Hi !

My english not good. and I'm not a advanced C programmer. I made a simple AVR USB project with Atmega8. It includes a LCD
ADC, led, etc. My firmware program is running. First I tried simple EasyHID vb6 host program. It runs but
only views plug- onplug messages. there isn't any data transfer.

Firmware usbFunctionSetup has only data[0],1,2,.. controlling and writing to lcd. but only first time views. after not anything.

I tried Visual C++ 6.0 and Dev-C++ compiler. these are gives some compile errors.

in usb.c

> LIST_DEL(usb_busses,bus); // '=' : left operand must be l-value
> LIST_ADD(usb_busses, bus); // '=' : left operand must be l-value



These errors for example in Dev-C++ are about Compiler Settings. After deleting this lines or change compiler and project settings
I take some linker errors

for example in usbi.h

> undefined reference to 'usb_os_find_busses' like.. etc.

or windows.h, win**.h errors..

my Vusb capacitor was 4.7u and 220 nF. I change these as 10u and 100n.

thanks for your help.

Re: partly solved : Need help about compiling

Posted: Tue Nov 30, 2010 2:33 am
by nwew1
I found a solution. there is a "Compiling a V-USB (AVR-USB) example program with Visual C++" named web page.
I use vusb custom example host "set-led.c" and I use Visual C++ 2010. For linker error messages
I used libusb.lib for Visual C++ 2010 (at lib-usb msvc folder)
Here, my problem solved.

But, now I've got a new problem.

set-led.c gives this message : USB device "Led kontrol " not found with Vid 0x16c0 and pid 0x05df

this mean device is connected but no any data transfer.

thanks for help ???

Re: Need help about host compiling

Posted: Mon Dec 06, 2010 11:49 pm
by Anonymous2
Do check that the settings in usbconfig.h match your board layout, and that you don't use the mega's internal oscillator by mistake.
There could be a ton of other reasons - just walk through your HW & FW carefully.

Re: Need help about host compiling

Posted: Fri Dec 10, 2010 7:20 pm
by nwew1
I am using atmega8-16PU chip. at wikidot's 'device not recognized errors' page writes that 'p' series chips non-compatible with vusb . is this true ?

my program don't have osccal*, osctune* files.
in the beginning I set clock frequency at AvrStudio's Project options. now I set Cksel fuse bits too. but problem continue.

any suggestion ?