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.
Need help about host compiling
Re: partly solved : Need help about compiling
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 ???
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
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.
There could be a ton of other reasons - just walk through your HW & FW carefully.
Re: Need help about host compiling
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 ?
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 ?