Ich versuche gerade diesen RGB-Fader zu kompilieren:
http://www.enide.net/webcms/index.php?page=pic-rgb
http://www.enide.net/webcms/uploads/files/projects/picrgb/picrgb3.c
Leider gibt es mit dem PICC PRO lite ein Problem:
1 | picc --chip=12f629 picrgb3.c
|
2 | HI-TECH C PRO for the PIC10/12/16 MCU family (Lite) V9.60PL5
|
3 | Copyright (C) 1984-2009 HI-TECH SOFTWARE
|
4 | (1273) Omniscient Code Generation not available in Lite mode (warning)
|
5 | double.c: 55: (1250) could not find space (1 byte) for variable _gRed
|
6 | double.c: 55: (1250) could not find space (1 byte) for variable _gRed
|
7 | double.c: 55: (1250) could not find space (1 byte) for variable _gBlue
|
8 | double.c: 55: (1250) could not find space (1 byte) for variable _gBlue
|
9 | double.c: 55: (1250) could not find space (1 byte) for variable _gGreen
|
10 | double.c: 55: (1250) could not find space (1 byte) for variable _gGreen
|
11 | double.c: 55: (1254) could not find space (2 bytes) for data block
|
12 | picrgb3.c: 273: (1250) could not find space (1 byte) for variable _gRed
|
13 | picrgb3.c: 273: (1250) could not find space (1 byte) for variable _gRed
|
14 | picrgb3.c: 273: (1250) could not find space (1 byte) for variable _gBlue
|
15 | picrgb3.c: 273: (1250) could not find space (1 byte) for variable _gBlue
|
16 | picrgb3.c: 273: too many errors (11)
|
17 | (908) exit status = 1
|
Mit dem STD funktioniert es dagegen:
1 | picc --chip=12f629 picrgb3.c
|
2 | HI-TECH PICC STD COMPILER (Microchip PICmicro) V9.60PL3
|
3 | Copyright (C) 1984-2009 HI-TECH SOFTWARE
|
4 | licensed for evaluation purposes only
|
5 | this licence will expire on Fri, 12 Jun 2009
|
6 | picrgb3.c: isr()
|
7 | 59: TMR1H = ((65535-(((4000000UL)/4/(80*256)))+1)>>8)&0xFF;
|
8 | ^ (355) implicit signed to unsigned conversion (warning)
|
9 | 60: TMR1L = ((65535-(((4000000UL)/4/(80*256)))+1)&0xFF);
|
10 | ^ (355) implicit signed to unsigned conversion (warning)
|
11 | picrgb3.c:
|
12 | 93: {
|
13 | ^ (349) non-prototyped function declaration for "initPic" (warning)
|
14 | picrgb3.c: initPic()
|
15 | 108: TMR1H = ((65535-(((4000000UL)/4/(80*256)))+1)>>8)&0xFF;
|
16 | ^ (355) implicit signed to unsigned conversion (warning)
|
17 | 109: TMR1L = ((65535-(((4000000UL)/4/(80*256)))+1)&0xFF);
|
18 | ^ (355) implicit signed to unsigned conversion (warning)
|
19 | picrgb3.c:
|
20 | 141: {
|
21 | ^ (349) non-prototyped function declaration for "delay50ms" (warning)
|
22 | 290: {
|
23 | ^ (349) non-prototyped function declaration for "testLed" (warning)
|
24 |
|
25 | Memory Summary:
|
26 | Program space used 345h ( 837) of 3FFh words ( 81.8%)
|
27 | Data space used 34h ( 52) of 40h bytes ( 81.2%)
|
28 | EEPROM space used 0h ( 0) of 80h bytes ( 0.0%)
|
29 | Configuration bits used 1h ( 1) of 1h word (100.0%)
|
30 | ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
|
Kann mir jemand sagen, wie es auch mit dem PRO lite funktioniert?