Page 1 of 1

Convert USBASP WinAVR Project to CodevisionAVR project

Posted: Sun Jul 13, 2014 8:34 pm
by sadeghjun
Hi,Everybody
I want to convert usbasp programmer source project from WinAVR source to CodevisonAVR source.
Firmware is available from:
http://www.fischl.de/usbasp/
or directly:
http://www.fischl.de/usbasp/usbasp.2011-05-28.tar.gz

I change some code to Compatible code (WinAVR Code) to CodeVision but I have some problem.
There are some error while compiling the project:
"Linker error: ...Desktop\usbasp\usbdrv\usbdrv.h(213): function 'usbFunctionDescriptor' declared, but never defined"

function "usbFunctionDescriptor" is declare in usbdrv.h but not defined in usbdrv.c
this is the codevisonAVR source:
http://s5.picofile.com/file/8129945900/usbasp.rar.html
Can any body help me?
thanks alot

Re: Convert USBASP WinAVR Project to CodevisionAVR project

Posted: Mon May 11, 2015 8:10 am
by mohamad
You need to implement this function ONLY if you provide USB descriptors at
* runtime (which is an expert feature). It is very similar to
* usbFunctionSetup() , but it is called only to request USB descriptor
* data. See the documentation of usbFunctionSetup() for more info.

Re: Convert USBASP WinAVR Project to CodevisionAVR project

Posted: Mon May 11, 2015 9:07 am
by mohamad
look at this for more information about descriptor defining :
http://vusb.wikidot.com/examples