Hi Vaclav, > at 1: warning 117: unknown compiler option '--fstack' ignored
Just remove --fstack from the compiler flags OPTS in Makefile. You will also want to remove -t 128 from the gplink command line, as SDCC provides the symbol _stack in the libraries; gplink's stack would collide with it... > usb.c(352) : error 47: indirections to different types assignment > from type 'unsigned-char const-[32] code-code* ' > to type 'unsigned-char generic* ' and following (467!, 477!, 486! (these are not warned about!), 500, 502, 504): You need to explicitly cast the right hand side to (code byte *) for now. The problem here is that casts from pointer to array type to pointer to simple type are not implicitly allowed. > usb.c(693) : error 47: indirections to different types assignment > from type 'volatile-unsigned-char [32] near* ' > to type 'unsigned-char generic* ' Watch out: This one wants to be cast to (data byte *) instead! > Can somebody help me what do these messages mean ? How to correct them ? The above measures will allow you to build the project, but manual inspection of the code generated for usb.c, l.309 revealed that there is severe bug in the code generator: instead of just reading SetupPacket.wValue1 (offset 3), the generated code overwrites SetupPacket.bmRequestType (offset 0). There seems to be lack of scratch register allocation. I'll have to investigate this further... Just thought you might want to now. Regards, Raphael ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Sdcc-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sdcc-user
