Forum: Mikrocontroller und Digitale Elektronik CC5X Fehlermedlung - OPTION ERROR


von PIC N. (eigo) Benutzerseite


Lesenswert?

Hallo
ich arbeite zum ersten mal mit CC5X zusammen mit MPLAB und erhalte beim 
Build folgende Fehlermeldung:
1
CC5X Version 3.4B, Copyright (c) B Knudsen Data, Norway 1992-2009
2
 --> FREE edition, 8-16 bit int, 24 bit float, 32k code, reduced optim.
3
GLCD_2.c:
4
5
#if !defined ICD_DEBUG  &&  !defined ICD2_DEBUG
6
 #pragma chip PIC16F877, core 14, code 8192, ram 32 : 0x1FF
7
                                                           ^------
8
Error[1] C:\Program Files\bknd\CC5X\16F877.H 3 : Duplicate chip definition
9
 (Multiple chip definitions detected (option -p<chip> and #include <header.h>).The #include statement should be removed)
10
11
Error options: -ew: no warning details  -ed: no error details  -eL: list details

Im FAQ von BKN habe ich schon nachgelesen;

7.I got error message: "OPTION ERROR: Duplicate file name or option 
error 'Files\bknd\CC5X' ".
MPLAB supplies the include files path as a command line option to CC5X. 
However, you need to add doublequotes if the path name contains spaces. 
The string should look like "C:\Program Files\bknd\CC5X".

Darauf hin habe ich das Verzeichnis, wo die Header Files liegen in
"" gesetzt, wie es beschrieben war, die brachte allerdings keinen 
Erfolg!

Danach erhielt ich diesen Error;
1
CC5X Version 3.4B, Copyright (c) B Knudsen Data, Norway 1992-2009
2
 --> FREE edition, 8-16 bit int, 24 bit float, 32k code, reduced optim.
3
OPTION ERROR: Duplicate file name or option error 'Files\bknd\CC5X'
4
(Check for spaces and misaligned "". Options should not contain
5
 spaces, except when using "" to surround file or path names
6
 that contain spaces, example -I"c:\Program Files\..")

Kann mir jemand weiter helfen?

LG Nico

von holger (Gast)


Lesenswert?

>Error[1] C:\Program Files\bknd\CC5X\16F877.H 3 : Duplicate chip definition
> (Multiple chip definitions detected (option -p<chip> and #include 
><header.h>).The #include statement should be removed)

Dort steht doch was du machen sollst. Entferne dein #include <16f877.h>.

von PIC N. (eigo) Benutzerseite


Lesenswert?

Hi holger, das habe ich auch schon getan die Fehlermeldung;

CC5X Version 3.4B, Copyright (c) B Knudsen Data, Norway 1992-2009
 --> FREE edition, 8-16 bit int, 24 bit float, 32k code, reduced optim.
OPTION ERROR: Duplicate file name or option error 'Files\bknd\CC5X'
(Check for spaces and misaligned "". Options should not contain
 spaces, except when using "" to surround file or path names
 that contain spaces, example -I"c:\Program Files\..")

bleibt aber dennoch!

von PIC N. (eigo) Benutzerseite


Lesenswert?

Problem hat sich geklärt in einem englischen Forum war der Tipp den bkn 
Ordner zu verschieben, so dass im Pfad kein Leerzeichen mehr drin ist,
jetzt klappt es. Also der Tipp bkn selbst mit den "" hat bei mir nicht 
geklappt!
LG

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.