Fehler bei Single servo motor control Beispiel

Support-Forum für Deutschsprachige, die in ihrer Muttersprache schreiben möchten.

Moderator: Benj

Post Reply
Philip
Posts: 1
Joined: Wed Jun 20, 2012 2:20 pm
Contact:

Fehler bei Single servo motor control Beispiel

Post by Philip »

Wenn ich das Beispiel von Flowcode " Single servo motor control" nach HEX kompiliere kommt folgender Fehler:

1. Single servo motor control.c(624:2): error: unknown identifier 'ccp2con'
1. Single servo motor control.c(624:2): error: invalid operand 'ccp2con'
1. Single servo motor control.c(624:10): error: failed to generate expression
1. Single servo motor control.c(626:21): error: unknown identifier 'CCP2IE'
1. Single servo motor control.c(626:21): error: invalid operand 'CCP2IE'
1. Single servo motor control.c(626:16): error: failed to generate expression
1. Single servo motor control.c(626:16): error: invalid operand '<<'
1. Single servo motor control.c(626:10): error: failed to generate expression
1. Single servo motor control.c(725:2): error: unknown identifier 'ccpr2h'
1. Single servo motor control.c(725:2): error: invalid operand 'ccpr2h'
1. Single servo motor control.c(725:9): error: failed to generate expression
1. Single servo motor control.c(726:2): error: unknown identifier 'ccpr2l'
1. Single servo motor control.c(726:2): error: invalid operand 'ccpr2l'
1. Single servo motor control.c(726:9): error: failed to generate expression
1. Single servo motor control.c(733:24): error: unknown identifier 'CCP2IF'
1. Single servo motor control.c(733:24): error: invalid operand 'CCP2IF'
1. Single servo motor control.c(733:19): error: failed to generate expression
1. Single servo motor control.c(733:19): error: invalid operand '<<'
1. Single servo motor control.c(733:14): error: failed to generate expression
1. Single servo motor control.c(733:55): error: unknown identifier 'CCP2IE'
1. Single servo motor control.c(733:55): error: invalid operand 'CCP2IE'
1. Single servo motor control.c(733:50): error: failed to generate expression
1. Single servo motor control.c(733:50): error: invalid operand '<<'
1. Single servo motor control.c(733:45): error: failed to generate expression
1. Single servo motor control.c(733:14): error: invalid operand '& '
1. Single servo motor control.c(733:45): error: invalid operand '& '
1. Single servo motor control.c(733:34): error: failed to generate expression
1. Single servo motor control.c success

failure
Rückgabewert = 1

Ich hoffe ihr könnt mir helfen

MfG
Philip

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: Fehler bei Single servo motor control Beispiel

Post by Benj »

Hallo Philipp,

Welches Gerät wollen Sie die Servo-Komponente zu kompilieren? Es sieht aus wie das Gerät hat nur 1 aus der Capture-Compare-2 erforderlich Peripheriegeräte durch die Servo-Komponente erforderlich. Sie können durch die Überprüfung, wie viele PWM-Kanäle zur Verfügung stehen zu erzählen. Die Servo-Komponente sollte funktionieren mit jedem Gerät mit 2 oder mehr PWM-Kanäle groß.



Hello Philip,

Which device are you trying to compile the servo component to? It looks like the device only has 1 out of the 2 required capture compare peripherals required by the servo component. You can tell by checking how many PWM channels are available. The servo component should work great with any device with 2 or more PWM channels.

Post Reply