I have a problem with the servo component. I run a windows7 professional based system (32 Bit).
Please help.
File name: C:\Users\Marius\Desktop\Servo Test\ServoMinimal.c
Generated by: Flowcode v4.5.18.74
Date: Monday, August 22, 2011 19:06:12
Licence: Professional
Registered to: ***************
http://www.matrixmultimedia.com
Launching the compiler...
c:\program files\matrix multimedia\flowcode v4\boostc\boostc_pic16_flowcode.exe -v -t PIC16F88 "ServoMinimal.c"
BoostC Optimizing C Compiler Version 7.04 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2011 Pavel Baranov
Copyright(C) 2004-2011 David Hobday
Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited
ServoMinimal.c
Starting preprocessor: c:\PROGRA~1\MATRIX~1\FLOWCO~1\boostc\pp.exe ServoMinimal.c -i c:\PROGRA~1\MATRIX~1\FLOWCO~1\boostc\include -d _PIC16F88 -la -c2 -o ServoMinimal.pp -v -d _BOOSTC -d _PIC16 -d _CHAR_INDEX
.
ServoMinimal.c(543:2): error: unknown identifier 'ccp2con'
ServoMinimal.c(543:2): error: invalid operand 'ccp2con'
ServoMinimal.c(543:10): error: failed to generate expression
ServoMinimal.c(544:21): error: unknown identifier 'CCP2IE'
ServoMinimal.c(544:21): error: invalid operand 'CCP2IE'
ServoMinimal.c(544:16): error: failed to generate expression
ServoMinimal.c(544:16): error: invalid operand '<<'
ServoMinimal.c(544:10): error: failed to generate expression
ServoMinimal.c(586:2): error: unknown identifier 'ccpr2h'
ServoMinimal.c(586:2): error: invalid operand 'ccpr2h'
ServoMinimal.c(586:9): error: failed to generate expression
ServoMinimal.c(587:2): error: unknown identifier 'ccpr2l'
ServoMinimal.c(587:2): error: invalid operand 'ccpr2l'
ServoMinimal.c(587:9): error: failed to generate expression
ServoMinimal.c(593:24): error: unknown identifier 'CCP2IF'
ServoMinimal.c(593:24): error: invalid operand 'CCP2IF'
ServoMinimal.c(593:19): error: failed to generate expression
ServoMinimal.c(593:19): error: invalid operand '<<'
ServoMinimal.c(593:14): error: failed to generate expression
ServoMinimal.c(593:55): error: unknown identifier 'CCP2IE'
ServoMinimal.c(593:55): error: invalid operand 'CCP2IE'
ServoMinimal.c(593:50): error: failed to generate expression
ServoMinimal.c(593:50): error: invalid operand '<<'
ServoMinimal.c(593:45): error: failed to generate expression
ServoMinimal.c(593:14): error: invalid operand '& '
ServoMinimal.c(593:45): error: invalid operand '& '
ServoMinimal.c(593:34): error: failed to generate expression
ServoMinimal.c success
failure
Return code = 1
Flowcode was unable to compile the flowchart's C code due to the following errors:
If your flowchart contains C code, please review this carefully. If your flowchart contains no C-code or you have thoroughly reviewed the code, contact Technical Support.
FINISHED
Servo component problems
Moderator: Benj
Servo component problems
- Attachments
-
- ServoMinimal.msg.txt
- (2.66 KiB) Downloaded 218 times
-
- ServoMinimal.c
- (13.4 KiB) Downloaded 217 times
-
- ServoMinimal.fcf
- (5 KiB) Downloaded 230 times
-
medelec35
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Servo component problems
Hi mariusvd.
The servo component requires 2 PWM components. 16F88 only has one, so that's why you get the errors.
You will need to select a chip that has 2 pwm see:
http://www.matrixmultimedia.com/mmforum ... 201#p22195
Or I have posted created a servo controller article using no PWM modules, so will work with 16F88.
See: http://www.matrixmultimedia.com/article.php?a=435
Martin
The servo component requires 2 PWM components. 16F88 only has one, so that's why you get the errors.
You will need to select a chip that has 2 pwm see:
http://www.matrixmultimedia.com/mmforum ... 201#p22195
Or I have posted created a servo controller article using no PWM modules, so will work with 16F88.
See: http://www.matrixmultimedia.com/article.php?a=435
Martin
Martin