ERROR servo component

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
Ulises72
Posts: 5
Joined: Tue Feb 04, 2014 8:15 pm
Location: Mexico
Contact:

ERROR servo component

Post by Ulises72 »

C:\Program Files\Flowcode 6\compilers\pic16\batchfiles\pic16_C30_comp.bat "servi" "C:\Users\Ulises\DOCUME~1\Flowcode\INVERN~1\" "33EP32MC202"
Launching compiler...

C:\Users\Ulises\DOCUME~1\Flowcode\INVERN~1>pic30-gcc -c -mcpu="33EP32MC202" -funsigned-char -fno-short-double -Os -I"C:\PROGRA~1\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~1\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\..\MX_support" -Wall -std=gnu99 "servi".c -o "servi".o
servi.c: In function 'FCD_0dd21_Servo_Controller1__EnableServo':
servi.c:553: warning: unused variable 'FCL_DUMMY'
servi.c: In function 'FCD_0dd21_Servo_Controller1__Initialise':
servi.c:736: error: 'MX_SERVO_REG_CCPR1H' undeclared (first use in this function)
servi.c:736: error: (Each undeclared identifier is reported only once
servi.c:736: error: for each function it appears in.)
servi.c:737: error: 'MX_SERVO_REG_CCPR1L' undeclared (first use in this function)
servi.c:738: error: 'MX_SERVO_REG_T1CON' undeclared (first use in this function)
servi.c:738: error: 'MX_SERVO_T1CON' undeclared (first use in this function)
servi.c:739: error: 'MX_SERVO_REG_CCP1CON' undeclared (first use in this function)
servi.c:739: error: 'MX_SERVO_CCP1CON' undeclared (first use in this function)
servi.c:740: error: 'MX_SERVO_REG_CCP1EN' undeclared (first use in this function)
servi.c:740: error: 'MX_SERVO_FLAG_CCP1EN' undeclared (first use in this function)
servi.c:741: error: 'MX_SERVO_REG_CCP2CON' undeclared (first use in this function)
servi.c:741: error: 'MX_SERVO_CCP2CON' undeclared (first use in this function)
servi.c:743: error: 'MX_SERVO_REG_CCP2EN' undeclared (first use in this function)
servi.c:743: error: 'MX_SERVO_FLAG_CCP2EN' undeclared (first use in this function)
servi.c:744: error: 'MX_SERVO_REG_INT' undeclared (first use in this function)
servi.c:744: error: 'MX_SERVO_FLAG_PERIPH' undeclared (first use in this function)
servi.c:745: error: 'MX_SERVO_FLAG_GLOB' undeclared (first use in this function)
servi.c: In function 'FCD_08f41_adc_base__GetString':
servi.c:854: warning: pointer targets in passing argument 3 of 'FCI_FLOAT_TO_STRING' differ in signedness
servi.c: In function 'FCD_04071_LCD__PrintString':
servi.c:1115: warning: pointer targets in passing argument 1 of 'FCI_GETLENGTH' differ in signedness
servi.c: In function 'FCD_04071_LCD__PrintAscii':
servi.c:1139: warning: unused variable 'FCL_X'
servi.c: In function 'FCD_04071_LCD__PrintNumber':
servi.c:1161: warning: pointer targets in passing argument 2 of 'FCI_TOSTRING' differ in signedness
servi.c: In function 'FCD_04071_LCD__ScrollDisplay':
servi.c:1374: warning: comparison is always true due to limited range of data type
servi.c:1374: warning: suggest parentheses around comparison in operand of &
servi.c: At top level:
servi.c:1623: error: syntax error before '{' token
servi.c:1769: warning: type defaults to 'int' in declaration of 'FCL_SERVOCAL'
servi.c:1769: error: initializer element is not constant
servi.c:1769: warning: data definition has no type or storage class
servi.c:1770: warning: type defaults to 'int' in declaration of 'FCL_SERVOCAL'
servi.c:1770: error: redefinition of 'FCL_SERVOCAL'
servi.c:1769: error: previous definition of 'FCL_SERVOCAL' was here
servi.c:1770: error: initializer element is not constant
servi.c:1770: warning: data definition has no type or storage class
servi.c:1771: warning: type defaults to 'int' in declaration of 'FCL_SERVOCAL'
servi.c:1771: error: redefinition of 'FCL_SERVOCAL'
servi.c:1769: error: previous definition of 'FCL_SERVOCAL' was here
servi.c:1771: error: initializer element is not constant
servi.c:1771: warning: data definition has no type or storage class
servi.c:1773: warning: type defaults to 'int' in declaration of 'FCL_SERVOCAL'
servi.c:1773: error: redefinition of 'FCL_SERVOCAL'
servi.c:1769: error: previous definition of 'FCL_SERVOCAL' was here
servi.c:1773: error: initializer element is not constant
servi.c:1773: warning: data definition has no type or storage class
servi.c:1774: warning: type defaults to 'int' in declaration of 'FCL_SERVOCAL'
servi.c:1774: error: redefinition of 'FCL_SERVOCAL'
servi.c:1769: error: previous definition of 'FCL_SERVOCAL' was here
servi.c:1774: error: initializer element is not constant
servi.c:1774: warning: data definition has no type or storage class
servi.c:1821: warning: type defaults to 'int' in declaration of 'MX_SERVO_REG_CCPR2H'
servi.c:1821: error: initializer element is not constant
servi.c:1821: warning: data definition has no type or storage class
servi.c:1822: warning: type defaults to 'int' in declaration of 'MX_SERVO_REG_CCPR2L'
servi.c:1822: error: initializer element is not constant
servi.c:1822: warning: data definition has no type or storage class
servi.c:1829: error: syntax error before '&=' token
servi.c:1836: error: syntax error before '{' token
servi.c:1980: warning: type defaults to 'int' in declaration of 'FCV_0dd21_Servo_Controller1__SERVO_IDX'
servi.c:1980: error: conflicting type qualifiers for 'FCV_0dd21_Servo_Controller1__SERVO_IDX'
servi.c:224: error: previous definition of 'FCV_0dd21_Servo_Controller1__SERVO_IDX' was here
servi.c:1980: error: initializer element is not constant
servi.c:1980: warning: data definition has no type or storage class
servi.c:1982: error: syntax error before 'if'

Error returned from [pic30-gcc.exe]
.
Completed compilation, return = 1

C:\Program Files\Flowcode 6\compilers\pic16\batchfiles\pic16_C30_comp.bat reported error code 1


FINISHED

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ERROR servo component

Post by Benj »

Hello,

Thanks for letting us know about the issue.

I have found the source of the problem and the fix will be included in with the next release.

Post Reply