SEARCH
TOOLBOX
LANGUAGES
Register    Login    Forum    Search    FAQ

Board index » Electronics Projects » PIC microcontroller projects




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: USB RGB LED VU Meter (PIC18F2550)
 Post Posted: Thu Feb 02, 2012 12:09 am 
Offline

Joined: Wed Feb 01, 2012 11:22 pm
Posts: 5
Hello,

As I explained in my mail, I have compiler errors with the firmware. Maybe forgot I something ?

"pas d'identificateur dans la déclaration" = No identifier in declaration
"erreur de syntaxe dans l'expresion" = Syntax error in expression
"une struct/union requis" = Requires struct/union


Code:
Build C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\RGB Bargraph for device 18F2550
Using driver C:\Program Files (x86)\HI-TECH Software\PICC-18\STD\9.52\bin\picc18.exe

Make: The target "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\main.obj" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-18\STD\9.52\bin\picc18.exe" -C "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\main.c" -q --chip=18F2550 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 327.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 335.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 348.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 359.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 361.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 371.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 382.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 393.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 404.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 415.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 428.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 321.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 346.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 351.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 363.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 369.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 417.2 pas d'identificateur dans la déclaration
Error   [255] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\main.c; 64.65 n'est pas un membre de la struct/union "__BDT"
Error   [255] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\main.c; 64.70 n'est pas un membre de la struct/union "_BD_STAT"
Error   [195] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\main.c; 80.6 erreur de syntaxe dans l'expresion
Make: The target "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.obj" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-18\STD\9.52\bin\picc18.exe" -C "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c" -q --chip=18F2550 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Error   [195] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 56.6 erreur de syntaxe dans l'expresion
Make: The target "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\rgbled.obj" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-18\STD\9.52\bin\picc18.exe" -C "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\rgbled.c" -q --chip=18F2550 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Error   [195] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\rgbled.c; 40.6 erreur de syntaxe dans l'expresion
Make: The target "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_descriptors.obj" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-18\STD\9.52\bin\picc18.exe" -C "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_descriptors.c" -q --chip=18F2550 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 327.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 335.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 348.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 359.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 361.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 371.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 382.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 393.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 404.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 415.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 428.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 321.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 346.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 351.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 363.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 369.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 417.2 pas d'identificateur dans la déclaration
Warning [362] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_descriptors.c; 277.1 "&" redondant appliqué à un tableau
Make: The target "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_device.obj" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-18\STD\9.52\bin\picc18.exe" -C "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_device.c" -q --chip=18F2550 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 327.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 335.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 348.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 359.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 361.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 371.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 382.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 393.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 404.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 415.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 428.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 321.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 346.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 351.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 363.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 369.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 417.2 pas d'identificateur dans la déclaration
Error   [192] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_device.c; 690.1 identificateur "UCONbits" indefini
Error   [196] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_device.c; 690.17 une struct/union requis
Error   [182] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_device.c; 690.20 conversion interdite entre des types
Error   [196] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_device.c; 699.17 une struct/union requis
Advisory[1] too many errors (21)
Make: The target "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_function_hid.obj" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-18\STD\9.52\bin\picc18.exe" -C "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_function_hid.c" -q --chip=18F2550 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 327.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 335.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 348.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 359.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 361.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 371.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 382.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 393.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 404.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 415.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 428.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 321.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 346.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 351.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 363.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 369.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 417.2 pas d'identificateur dans la déclaration
Error   [255] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_function_hid.c; 166.23 n'est pas un membre de la struct/union ""
Error   [255] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_function_hid.c; 167.21 n'est pas un membre de la struct/union ""
Error   [255] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_function_hid.c; 174.22 n'est pas un membre de la struct/union ""
Error   [255] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_function_hid.c; 176.32 n'est pas un membre de la struct/union ""
Advisory[1] too many errors (21)
Make: The target "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usbcallback.obj" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-18\STD\9.52\bin\picc18.exe" -C "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usbcallback.c" -q --chip=18F2550 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 327.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 335.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 348.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 359.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 361.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 371.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 382.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 393.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 404.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 415.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_ch9.h; 428.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 321.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 346.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 351.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 363.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 369.2 pas d'identificateur dans la déclaration
Error   [285] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_hal_pic18.h; 417.2 pas d'identificateur dans la déclaration
Warning [362] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usbcallback.c; 293.67 "&" redondant appliqué à un tableau

********** Build failed! **********


Thanks for helping.

Valentin


Top 
 Profile  
 
 Post subject: Re: USB RGB LED VU Meter (PIC18F2550)
 Post Posted: Thu Feb 02, 2012 6:51 am 
Offline

Joined: Thu Apr 01, 2010 6:23 am
Posts: 889
Hi

The first thing to try is upgrading your version of the compiler as 9.52 is pretty old. I just compiled the code using 9.80 and (apart from warnings due to HiTech depreciating the old-style header files) it compiled without issue.

/Simon


Top 
 Profile  
 
 Post subject: Re: USB RGB LED VU Meter (PIC18F2550)
 Post Posted: Thu Feb 02, 2012 1:29 pm 
Offline

Joined: Wed Feb 01, 2012 11:22 pm
Posts: 5
Oh ! You were right !
Now MPLAB compile without error ; but I see a lot of warnings... Is that a problem ?

Code:
Build C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\RGB Bargraph for device 18F2550
Using driver C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\bin\picc18.exe

Make: The target "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\main.p1" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\bin\picc18.exe" --pass1 "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\main.c" -q --chip=18F2550 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Warning [111] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\Compiler.h; 140.45 redefining preprocessor macro "Nop" (C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18.h: 41)
Warning [111] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\Compiler.h; 141.36 redefining preprocessor macro "ClrWdt" (C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18.h: 39)
Warning [111] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\Compiler.h; 142.38 redefining preprocessor macro "Reset" (C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18.h: 43)
Make: The target "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.p1" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\bin\picc18.exe" --pass1 "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c" -q --chip=18F2550 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 51.8 variable "RA1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4673)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 63.64 variable "RC7" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4731)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 66.8 variable "RB1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4689)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 67.8 variable "RB1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4689)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 75.8 variable "RA0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4671)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 76.8 variable "RA0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4671)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 86.8 variable "RA1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4673)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 95.8 variable "RA2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4675)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 102.8 variable "RC2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4721)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 103.8 variable "RC2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4721)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 108.8 variable "RC7" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4731)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 111.8 variable "RB1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4689)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 112.8 variable "RB1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4689)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 118.8 variable "RC2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4721)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 119.8 variable "RC2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4721)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 124.8 variable "RA0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4671)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 125.8 variable "RA0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4671)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 128.8 variable "RA2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4675)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 134.8 variable "RB1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4689)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 135.8 variable "RB1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4689)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 142.8 variable "RA2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4675)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 148.8 variable "RA0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4671)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 149.8 variable "RA0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4671)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 156.8 variable "RA2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4675)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 200.8 variable "RC2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4721)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 201.8 variable "RB1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4689)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 202.8 variable "RA1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4673)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 203.8 variable "RA0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4671)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 204.8 variable "RA2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4675)
Make: The target "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\rgbled.p1" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\bin\picc18.exe" --pass1 "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\rgbled.c" -q --chip=18F2550 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Make: The target "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_descriptors.p1" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\bin\picc18.exe" --pass1 "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_descriptors.c" -q --chip=18F2550 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Warning [111] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\Compiler.h; 140.45 redefining preprocessor macro "Nop" (C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18.h: 41)
Warning [111] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\Compiler.h; 141.36 redefining preprocessor macro "ClrWdt" (C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18.h: 39)
Warning [111] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\Compiler.h; 142.38 redefining preprocessor macro "Reset" (C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18.h: 43)
Make: The target "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_device.p1" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\bin\picc18.exe" --pass1 "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_device.c" -q --chip=18F2550 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Warning [111] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\Compiler.h; 140.45 redefining preprocessor macro "Nop" (C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18.h: 41)
Warning [111] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\Compiler.h; 141.36 redefining preprocessor macro "ClrWdt" (C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18.h: 39)
Warning [111] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\Compiler.h; 142.38 redefining preprocessor macro "Reset" (C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18.h: 43)
Make: The target "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_function_hid.p1" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\bin\picc18.exe" --pass1 "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_function_hid.c" -q --chip=18F2550 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Warning [111] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\Compiler.h; 140.45 redefining preprocessor macro "Nop" (C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18.h: 41)
Warning [111] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\Compiler.h; 141.36 redefining preprocessor macro "ClrWdt" (C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18.h: 39)
Warning [111] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\Compiler.h; 142.38 redefining preprocessor macro "Reset" (C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18.h: 43)
Make: The target "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usbcallback.p1" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\bin\picc18.exe" --pass1 "C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usbcallback.c" -q --chip=18F2550 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Warning [111] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\Compiler.h; 140.45 redefining preprocessor macro "Nop" (C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18.h: 41)
Warning [111] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\Compiler.h; 141.36 redefining preprocessor macro "ClrWdt" (C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18.h: 39)
Warning [111] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\Compiler.h; 142.38 redefining preprocessor macro "Reset" (C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18.h: 43)
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\bin\picc18.exe" "-oRGB Bargraph.cof" "-mRGB Bargraph.map" --summary=default --output=default main.p1 tlc5940.p1 rgbled.p1 usb_descriptors.p1 usb_device.p1 usb_function_hid.p1 usbcallback.p1 --chip=18F2550 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Licensed for evaluation purposes only.
This licence will expire on Wed, 21 Mar 2012.
HI-TECH C Compiler for PIC18 MCUs (PRO Mode)  V9.80
Copyright (C) 2011 Microchip Technology Inc.
Advisory[1233] Employing 18F2550 errata work-arounds:
Advisory[1234]  * Corrupted fast interrupt shadow registers
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 51. variable "_RA1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4673)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 63. variable "_RC7" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4731)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 66. variable "_RB1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4689)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 67. variable "_RB1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4689)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 75. variable "_RA0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4671)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 76. variable "_RA0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4671)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 86. variable "_RA1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4673)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 95. variable "_RA2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4675)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 102. variable "_RC2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4721)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 103. variable "_RC2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4721)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 108. variable "_RC7" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4731)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 111. variable "_RB1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4689)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 112. variable "_RB1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4689)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 118. variable "_RC2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4721)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 119. variable "_RC2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4721)

Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 124. variable "_RA0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4671)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 125. variable "_RA0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4671)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 128. variable "_RA2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4675)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 134. variable "_RB1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4689)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 135. variable "_RB1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4689)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 142. variable "_RA2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4675)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 148. variable "_RA0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4671)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 149. variable "_RA0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4671)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 156. variable "_RA2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4675)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 200. variable "_RC2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4721)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 201. variable "_RB1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4689)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 202. variable "_RA1" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4673)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 203. variable "_RA0" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4671)
Warning [1385] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 204. variable "_RA2" is deprecated (declared at C:\Program Files (x86)\HI-TECH Software\PICC-18\9.80\include\pic18f2550.h:4675)
Warning [1413] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_device.c; 1526. "RAM" is positioned at address 0x0 and has had its address taken; pointer comparisons may be invalid
Warning [1090] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\genericHID.h; 11. variable "_blinkStatusValid" is not used
Warning [1090] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_device.c; 447. variable "_USBInData" is not used
Warning [1090] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\genericHID.h; 10. variable "_USBInHandle" is not used
Warning [1090] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_device.c; 446. variable "_USBInMaxPacketSize" is not used
Warning [765] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\tlc5940.c; 60. degenerate unsigned comparison
Warning [1088] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_device.c; 2206. function pointer "_outPipes.pFunc" is never assigned a valid pointer
Warning [1088] C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\usb_device.c; 1537. function pointer "_outPipes.pFunc" is never assigned a valid pointer

Memory Summary:
    Program space        used  1FB4h (  8116) of  8000h bytes   ( 24.8%)
    Data space           used   39Bh (   923) of   800h bytes   ( 45.1%)
    Configuration bits   used     3h (     3) of     7h words   ( 42.9%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    ID Location space    used     0h (     0) of     8h nibbles (  0.0%)

Loaded C:\Users\PROPRIETAIRE\Desktop\Projot à led\firmware\RGB Bargraph\RGB Bargraph.cof.

********** Build successful! **********


Top 
 Profile  
 
 Post subject: Re: USB RGB LED VU Meter (PIC18F2550)
 Post Posted: Thu Feb 02, 2012 5:00 pm 
Offline

Joined: Thu Apr 01, 2010 6:23 am
Posts: 889
The warnings are just warnings, nothing to worry about. It's because HiTech changed the header format recently which causes code written with previous versions of the compiler to complain.


Top 
 Profile  
 
 Post subject: Re: USB RGB LED VU Meter (PIC18F2550)
 Post Posted: Thu Feb 02, 2012 6:34 pm 
Offline

Joined: Wed Feb 01, 2012 11:22 pm
Posts: 5
Ok

Except that, I wanted to ask you something...
In your project, you used 3 pins of the TLC5940 for one led RGB. I would rather put not one but three or more in order to intensify the brightness.

I saw an application in this document : http://www.ti.com/lit/an/slva280/slva280.pdf

But I want to keep the 5v alimentation... so I have to put my leds in parallel.
Do you think I can replace each led by three in parallel and adjust the current with IREF resistance or must I use a transistor as in the document and just replace series leds by parallel leds ?

I assume that current problems will appear without transistors but I'm not sure.


Top 
 Profile  
 
 Post subject: Re: USB RGB LED VU Meter (PIC18F2550)
 Post Posted: Thu Feb 02, 2012 8:00 pm 
Offline

Joined: Thu Apr 01, 2010 6:23 am
Posts: 889
You can still run the TLC at 5Vs and source a higher voltage to the LEDs when they are connected in parallel. Since the TLC is a sink-driver it is always connected to the negative side of the LEDs.

The datasheet will show you the calculations you need to ensure you don't over-drive the TLC.

Basically, with a constant-current driver like the TLC the theory is that if one led is run at 20mA with 2.5Vs (for example) then each additional led will require an increase of 2.5Vs, so for 4 leds in parallel you would need to supply 10Vs meaning the TLC is sinking 10Vs * 20mA = 200mW per channel.

Again the datasheet and TI's application notes are the place to look.


Top 
 Profile  
 
 Post subject: Re: USB RGB LED VU Meter (PIC18F2550)
 Post Posted: Fri Feb 03, 2012 12:35 am 
Offline

Joined: Wed Feb 01, 2012 11:22 pm
Posts: 5
Simon Inns wrote:
Basically, with a constant-current driver like the TLC the theory is that if one led is run at 20mA with 2.5Vs (for example) then each additional led will require an increase of 2.5Vs, so for 4 leds in parallel you would need to supply 10Vs meaning the TLC is sinking 10Vs * 20mA = 200mW per channel.


Yes but this is not for leds in series ?

Anyway, I think I'll try this rather than parallel leds...
I've ridden few minutes ago that the TLC maximum output voltage amount to 18V. If I can use an other source, your solution should work successfully.

Thank you Simon :)


Top 
 Profile  
 
 Post subject: Re: USB RGB LED VU Meter (PIC18F2550)
 Post Posted: Fri Feb 03, 2012 6:08 am 
Offline

Joined: Thu Apr 01, 2010 6:23 am
Posts: 889
Sorry - a moment of madness... I was discussing LEDs in series :)


Top 
 Profile  
 
 Post subject: Re: USB RGB LED VU Meter (PIC18F2550)
 Post Posted: Fri Apr 06, 2012 10:28 pm 
Offline

Joined: Fri Apr 06, 2012 10:22 pm
Posts: 2
Simon Inns wrote:
Sorry - a moment of madness... I was discussing LEDs in series :)

Hi and welcome. I'm new here and I'd like to build it. I have a PIC-USB-4550 development board. Obviously 4550 is bigger and not necessary for this project. Will I be able to programm the PIC2550 with my PIC-USB-4550 board?

Also, do I need to reprogram TLC5940 as well? If so, how? Can I use my USB board?

Also, can I find already compiled firmware?

Thanks!


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 9 posts ] 

Board index » Electronics Projects » PIC microcontroller projects


Who is online

Users browsing this forum: No registered users and 0 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Translated by Maël Soucaze © 2009 phpBB.fr