Convert USBASP WinAVR Project to CodevisionAVR project

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
sadeghjun
Posts: 1
Joined: Sun Jul 13, 2014 8:22 pm

Convert USBASP WinAVR Project to CodevisionAVR project

Post by sadeghjun » Sun Jul 13, 2014 8:34 pm

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

mohamad

Re: Convert USBASP WinAVR Project to CodevisionAVR project

Post by mohamad » Mon May 11, 2015 8:10 am

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.

mohamad

Re: Convert USBASP WinAVR Project to CodevisionAVR project

Post by mohamad » Mon May 11, 2015 9:07 am

look at this for more information about descriptor defining :
http://vusb.wikidot.com/examples

Post Reply