> 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
Hello,
can we return to this problem ? I tried to get newest SDCC-20080905 and compile
the project again.
Downloaded the PICHID package - http://www.nutsvolts.com/media-files/113/USB.zip
Made necessary changes in usb.c and Makefile - see diffs. In compile log there
are missing some lines about --optimmize-goto and modified dog caaled EVELYN.
But device is not detected at all.
Did you find something for these problems you mentioned ?
Best Regards,
Vaclav
11c11
< LIBS= libio18f$(CHIP).lib libc18f.lib libsdcc.lib crt0.o
---
> LIBS= pic18f$(CHIP).lib libio18f$(CHIP).lib libc18f.lib libsdcc.lib crt0.o
17c17
< OFILES=main.o usb.o pic18f2455.o
---
> OFILES=main.o usb.o
27c27
< OPTS= --vc --denable-peeps --optimize-goto --optimize-cmp --optimize-df
--obanksel=9 --opt-code-size --fommit-frame-pointer
---
> OPTS= --vc --fstack --denable-peeps --optimize-goto --optimize-cmp
> --optimize-df --obanksel=9 --opt-code-size --fommit-frame-pointer
37c37
< GPLINK_FLAGS= -I. -I$(SDCC_HOME)\lib\pic16 -m $(LIBS) $(OFILES) $(LOBJS) -s
$(LINKER_SCRIPT)
---
> GPLINK_FLAGS= -I. -I$(SDCC_HOME)\lib -m -t 128 $(LIBS) $(OFILES) $(LOBJS) -s
> $(LINKER_SCRIPT)
41c41
<
---
>
47c47
<
---
>
60a61
>
352c352
< outPtr = (code byte*)&(configDescriptor.HIDDescriptor);
---
> outPtr = &configDescriptor.HIDDescriptor;
467c467
< outPtr = (code byte *)&deviceDescriptor;
---
> outPtr = (byte *)&deviceDescriptor;
477c477
< outPtr = (code byte *)&configDescriptor;
---
> outPtr = (byte *)&configDescriptor;
486c486
< outPtr = (code byte *)&configDescriptor;
---
> outPtr = (byte *)&configDescriptor;
500c500
< outPtr = (code byte*)&stringDescriptor0;
---
> outPtr = &stringDescriptor0;
502c502
< outPtr = (code byte*)&stringDescriptor1;
---
> outPtr = &stringDescriptor1;
504c504
< outPtr = (code byte*)&stringDescriptor2;
---
> outPtr = &stringDescriptor2;
693c693
< outPtr = (data byte *) &controlTransferBuffer;
---
> outPtr = &controlTransferBuffer;
sdcc -I. -Id:\v\sw\sdcc\include --vc --denable-peeps --optimize-goto
--optimize-cmp --optimize-df --obanksel=9 --opt-code-size
--fommit-frame-pointer -mpic16 -pp18f2550 -c main.c
sdcc -I. -Id:\v\sw\sdcc\include --vc --denable-peeps --optimize-goto
--optimize-cmp --optimize-df --obanksel=9 --opt-code-size
--fommit-frame-pointer -mpic16 -pp18f2550 -c usb.c
usb.asm:399:Warning [220] Address exceeds maximum range for this processor.
usb.asm:399:Warning [220] Address exceeds maximum range for this processor.
usb.asm:399:Warning [220] Address exceeds maximum range for this processor.
usb.asm:399:Warning [220] Address exceeds maximum range for this processor.
usb.asm:399:Warning [220] Address exceeds maximum range for this processor.
usb.asm:399:Warning [220] Address exceeds maximum range for this processor.
usb.asm:400:Warning [220] Address exceeds maximum range for this processor.
usb.asm:400:Warning [220] Address exceeds maximum range for this processor.
usb.asm:400:Warning [220] Address exceeds maximum range for this processor.
usb.asm:400:Warning [220] Address exceeds maximum range for this processor.
usb.asm:400:Warning [220] Address exceeds maximum range for this processor.
usb.asm:400:Warning [220] Address exceeds maximum range for this processor.
usb.asm:401:Warning [220] Address exceeds maximum range for this processor.
usb.asm:401:Warning [220] Address exceeds maximum range for this processor.
usb.asm:401:Warning [220] Address exceeds maximum range for this processor.
usb.asm:401:Warning [220] Address exceeds maximum range for this processor.
usb.asm:401:Warning [220] Address exceeds maximum range for this processor.
usb.asm:401:Warning [220] Address exceeds maximum range for this processor.
usb.asm:402:Warning [220] Address exceeds maximum range for this processor.
usb.asm:402:Warning [220] Address exceeds maximum range for this processor.
usb.asm:402:Warning [220] Address exceeds maximum range for this processor.
usb.asm:402:Warning [220] Address exceeds maximum range for this processor.
usb.asm:402:Warning [220] Address exceeds maximum range for this processor.
usb.asm:402:Warning [220] Address exceeds maximum range for this processor.
sdcc -I. -Id:\v\sw\sdcc\include --vc --denable-peeps --optimize-goto
--optimize-cmp --optimize-df --obanksel=9 --opt-code-size
--fommit-frame-pointer -mpic16 -pp18f2550 -c pic18f2455.c
pic18f2455.asm:247:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:250:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:253:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:256:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:259:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:262:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:265:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:268:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:271:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:274:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:277:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:280:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:283:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:286:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:289:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:292:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:295:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:298:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:301:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:304:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:307:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:310:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:313:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:316:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:319:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:322:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:325:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:328:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:331:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:334:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:337:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:340:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:343:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:346:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:349:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:355:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:358:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:361:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:364:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:367:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:373:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:376:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:379:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:382:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:385:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:391:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:397:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:400:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:403:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:406:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:409:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:412:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:418:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:427:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:430:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:437:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:442:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:445:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:448:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:451:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:454:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:460:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:465:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:470:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:473:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:476:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:481:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:484:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:487:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:492:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:497:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:502:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:505:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:508:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:511:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:517:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:522:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:526:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:534:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:538:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:548:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:556:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:559:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:562:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:570:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:574:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:577:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:580:Warning [231] No memory has been reserved by this
instruction.
pic18f2455.asm:585:Warning [231] No memory has been reserved by this
instruction.
gplink.exe -I. -Id:\v\sw\sdcc\lib\pic16 -m libio18f2550.lib libc18f.lib
libsdcc.lib crt0.o main.o usb.o pic18f2455.o -s 18f2550.lkr -o USBHID.hex
warning: processor mismatch in "main.o"
warning: processor mismatch in "usb.o"
warning: processor mismatch in "pic18f2455.o"
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user