error compiling(12f683)

Forum for problems or queries regarding the Flowcode application and compiler usage.

Moderators: Benj, Mods

Post Reply
cooperharris
Posts: 6
Joined: Thu Apr 03, 2008 3:56 am
Contact:

error compiling(12f683)

Post by cooperharris »

hello everyone, I was trying to create a simple program for a pic 12f683 and I think that there is a bug un the program for this pic, I did try my best to check it and It does not work, but I do change it for another pic and it works,I mean both work in simulation mode in flowcode, but when you try to get the .hex for the 12f683 it comes out:


Launching the compiler...

C:\Archivos de programa\Matrix Multimedia\Flowcode V3\BoostC\boostc.pic16.flowcode.exe -v -t PIC12F683 "Hutio_solved.c"

BoostC Optimizing C Compiler Version 6.70 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2007 Pavel Baranov
Copyright(C) 2004-2007 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

internal error: can't parse input file name 'Hutio_solved.c'

Hutio_solved.c
Starting preprocessor: "C:\Archivos de programa\Matrix Multimedia\Flowcode V3\BoostC\pp.exe" Hutio_solved.c -i "C:\Archivos de programa\Matrix Multimedia\Flowcode V3\BoostC\include" -d _PIC12F683 -la -c2 -o Hutio_solved.pp -v -d _BOOSTC -d _PIC16


................

Hutio_solved.c(81:2): error: unknown identifier 'trisa'
Hutio_solved.c(81:2): error: invalid operand 'trisa'
Hutio_solved.c(81:Cool: error: failed to generate expression
Hutio_solved.c(82:11): error: unknown identifier 'porta'
Hutio_solved.c(82:11): error: invalid operand 'porta'
Hutio_solved.c(82:17): error: failed to generate expression
Hutio_solved.c(82:17): error: invalid operand '& '
Hutio_solved.c(82:31): error: failed to generate expression
Hutio_solved.c(82:2): error: error in expression
Hutio_solved.c(82:2): error: failed to generate expression
Hutio_solved.c(95:2): error: unknown identifier 'trisa'
Hutio_solved.c(95:2): error: invalid operand 'trisa'
Hutio_solved.c(95:Cool: error: failed to generate expression
Hutio_solved.c(100:10): error: unknown identifier 'porta'
Hutio_solved.c(100:10): error: invalid operand 'porta'
Hutio_solved.c(100:16): error: failed to generate expression
Hutio_solved.c(100:16): error: invalid operand '& '
Hutio_solved.c(100:30): error: failed to generate expression
Hutio_solved.c(100:30): internal error: failed to generate 'while' expression
Hutio_solved.c(100:2): error: error in 'while' loop statement
Hutio_solved.c(114:2): error: unknown identifier 'trisa'
Hutio_solved.c(114:2): error: invalid operand 'trisa'
Hutio_solved.c(114:Cool: error: failed to generate expression
Hutio_solved.c(119:10): error: unknown identifier 'porta'
Hutio_solved.c(119:10): error: invalid operand 'porta'
Hutio_solved.c(119:16): error: failed to generate expression
Hutio_solved.c(119:16): error: invalid operand '& '
Hutio_solved.c(119:30): error: failed to generate expression
Hutio_solved.c(119:30): internal error: failed to generate 'while' expression
Hutio_solved.c(119:2): error: error in 'while' loop statement
Hutio_solved.c(138:2): error: unknown identifier 'trisa'
Hutio_solved.c(138:2): error: invalid operand 'trisa'
Hutio_solved.c(138:Cool: error: failed to generate expression
Hutio_solved.c(139:2): error: unknown identifier 'porta'
Hutio_solved.c(139:2): error: invalid operand 'porta'
Hutio_solved.c(139:Cool: error: failed to generate expression
Hutio_solved.c(152:2): error: unknown identifier 'trisa'
Hutio_solved.c(152:2): error: invalid operand 'trisa'
Hutio_solved.c(152:Cool: error: failed to generate expression
Hutio_solved.c(153:2): error: unknown identifier 'porta'
Hutio_solved.c(153:2): error: invalid operand 'porta'
Hutio_solved.c(153:Cool: error: failed to generate expression

.......

Hutio_solved.c success

failure

Return code = 1

Flowcode no pudo compilar el cΓ³digo C del diagrama de flujo por los siguientes errores:


Si su diagrama de flujo contiene cΓ³digo C, revΓ­selo cuidadosamente. Si su diagrama de flujo no contiene cΓ³digo C o si ya ha revisado el cΓ³digo C, contactese con Soporte TΓ©cnico.

FINISHED




-*-*-*-*-*-*-*


I hope you can help me

here it is the file o for flowcode

http://rapidshare.com/files/104809275/H ... d.fcf.html


it is a simple program ,the only one things it does is turn on a led when you
push a switch and turn off if you push it again

User avatar
Steve
Matrix Staff
Posts: 3424
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: error compiling(12f683)

Post by Steve »

I cannot access the file - can you please attach it to this forum and we'll have a look.

cooperharris
Posts: 6
Joined: Thu Apr 03, 2008 3:56 am
Contact:

Re: error compiling(12f683)

Post by cooperharris »

here it is, I am sorry, I did mistake posting
Attachments
Hutio_solved.fcf
(5.5 KiB) Downloaded 293 times
Hutio_solved.fcf
(5.5 KiB) Downloaded 298 times

User avatar
Steve
Matrix Staff
Posts: 3424
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: error compiling(12f683)

Post by Steve »

Yes - there is a bug when using the switch and led components. Please see this post for a workaround:
http://www.matrixmultimedia.com/mmforum ... gpio#p7417

Post Reply