Erorr I2C

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

Moderator: Benj

PHolz
Posts: 1
Joined: Wed Dec 10, 2014 6:00 pm
Contact:

Erorr I2C

Postby PHolz » Wed Dec 10, 2014 6:49 pm

Hallo,

ich habe mit Flowcode 6 ein Problem mit der I2C Masterfunktion.

Sobald ich die Hardware Bussettings auf "Channel1" stelle, erhalte ich beim kompilieren viele Fehlermeldungen:


http://www.matrixtsl.com
Start des Compilers...
C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_16F.exe -v -t PIC16F877A "I2C EEPROM read and write.c"
Launching BoostC...
BoostC Optimizing C Compiler Version 7.20 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2013 Pavel Baranov
Copyright(C) 2004-2013 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


I2C EEPROM read and write.c
Starting preprocessor: "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\pp.exe" "I2C EEPROM read and write.c" -i "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\include" -d _PIC16F877A -la -c2 -o "I2C EEPROM read and write.pp" -v -d _BOOSTC -d _PIC16 -d _CHAR_INDEX

...................
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(466:2): error: unknown identifier 'sspcon1'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(466:2): error: invalid operand 'sspcon1'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(466:10): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(468:2): error: unknown identifier 'sspcon3'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(468:2): error: invalid operand 'sspcon3'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(468:10): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(469:2): error: unknown identifier 'sspmsk'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(469:2): error: invalid operand 'sspmsk'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(469:9): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(503:4): error: unknown identifier 'sspcon1'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(503:4): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(503:4): error: invalid operand 'sspcon1'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(503:13): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(517:4): error: unknown identifier 'sspcon1'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(517:4): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(517:4): error: invalid operand 'sspcon1'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(517:13): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(540:27): error: unknown identifier 'R_NOT_W'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(540:27): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(540:27): error: invalid operand 'R_NOT_W'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(540:22): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(540:20): error: invalid operand '1 << ( R_NOT_W)'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_I2C.c(540:17): error: failed to generate expression
I2C EEPROM read and write.c success

failure
..
Completed BoostC compilation, return = 1

C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_16F.exe Hat den Fehlercode 1 gemeldet


BEENDET

Bei der Einstellung Software funktioniert das Programm. Auch wenn ich das Programm unter FCV5 kompiliere funktioniert es. (auch für Channel1)
Das Programm "I2C EEPROM read and write.fcfx" habe ich aus den Beispielen geladen.

Wer kann mir sagen wo das Problem liegt?
Attachments
I2C_Bussettings.jpg
I2C_Bussettings.jpg (37.22 KiB) Viewed 4554 times

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1161
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 357 times
Been thanked: 573 times
Contact:

Re: Erorr I2C

Postby QMESAR » Wed Dec 10, 2014 9:43 pm

Hallo

Der I2C-Komponentendefinition in Flowcode ist nicht korrekt, ich habe den gleichen Fehler beim Kompilieren .

Gruss



I believe there is an error with the I2C master component on this device as I have the same problem when compiling for an 877A

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

Re: Erorr I2C

Postby Benj » Thu Dec 11, 2014 11:00 am

Hallo,

Vielen Dank, dass Sie uns wissen . Die angehängte Datei sollte das Problem lösen . Bitte kopieren Sie sie in Ihren "C:\Program Files (x86)\Flowcode 6\CAL\PIC" Ordner und neu kompilieren .

PIC_CAL_I2C.c
(21.25 KiB) Downloaded 404 times



Hello,

Thanks for letting us know. The attached file should solve the problem. Please copy it into your "C:\Program Files (x86)\Flowcode 6\CAL\PIC" folder and re-compile.

PIC_CAL_I2C.c
(21.25 KiB) Downloaded 404 times