Please tell me how to build the project AVR CDC-232 in Arduino IDE.
I can collect it in an environment AVR Studio 4 (for atmega328/16MHz), but in the Arduino IDE reporting errors, eg
: In function 'unsigned char usbFunctionSetup(unsigned char*)':
: error: invalid conversion from 'void*' to 'usbRequest_t*'
So, in this case, first I need to build my proyect with C compiler (I use Eclipse IDE). Then, when I have my .hex file I could upload this using USBasp programmer?
Thanks in advance!!
xorkrus:
Please tell me how to build the project AVR CDC-232 in Arduino IDE.
I can collect it in an environment AVR Studio 4 (for atmega328/16MHz), but in the Arduino IDE reporting errors, eg
: In function 'unsigned char usbFunctionSetup(unsigned char*)':
: error: invalid conversion from 'void*' to 'usbRequest_t*'
Arduino target board is Arduino Pro Mini 5V/16MHz
xorkrus,
it's nice that you put a link to the project, but many of us are not familiar with this project, and which of the options amounts to the Pro Mini 5V/16MHz. So, in the future, it would be good if you posted more of the error, or actual told us which file the error came from.
Now as to your error. The ERROR SAYS, in a function named usbFunctionSetup() says you are taking a value (likely returned) from some line in this function and are assigning & converting it into another type.
Usually this means that the function prototype in the header (.h) said, "I'm giving you a pointer which you should not care about" (the type of which is void*). THEN the code tried to assign that value to a type another type (known as usbRequest_t*).
You can force the assignment with a type cast, which could be dangerous, or it could be what is intended.
NOTE: This type of error is often a compiler dependency, and can be set to be ignored on the command line (or configuration file). But you better know what you are doing.
If this does not make sense, please post more of the code.
Hi, I am trying to do the same, building a cdc-232 interface with atmega 8. But I dont have atmega8L so Atmega8-pu, correct me if I´m doing wrong. I read that atmega8 can run out the specifications and work well in 4-3.6 volts at 12 mhz. In this try to work.
So when I write the fuses for 12 mhz from a usbasp http://www.fischl.de/usbasp/Readme.txt and when I think thats gonna work, just bricked my Atmega8.
Someone can tell me what are the fuses I got to put in place??? Dont want to brick another arduino just for fun. I need some piece of help. Thanks.
P.D. sorry for my bad english, also I write a little bit fast.