Error when compiling LIN-BUS with 2 or more Messages

Moderator: Benj

Post Reply
jeflores
Posts: 12
Joined: Fri Apr 06, 2012 7:37 am
Contact:

Error when compiling LIN-BUS with 2 or more Messages

Post by jeflores »

hello
when using the LIN-bus module with 2 or more Messages I receive the following error when compiling.
NOTE: The same program works well, Flowcode 4

xxxx.c(1402:28): error: unknown identifier 'LIN_S_17_LINS_MSG1_ID'
xxxx.c(1402:28): error: invalid operand 'LIN_S_17_LINS_MSG1_ID'
xxxx.c(1402:26): error: failed to generate expression

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: Error when compiling LIN-BUS with 2 or more Messages

Post by Benj »

Hello,

Is it possible to post up your program or send to me via a PM and I will look into this problem for you.

jeflores
Posts: 12
Joined: Fri Apr 06, 2012 7:37 am
Contact:

Re: Error when compiling LIN-BUS with 2 or more Messages

Post by jeflores »

fails to compile if you have more of a message defined in slave linbus.
with version 4 does not give me the error.

File name: C:\Users\Emilio\Documents\proyectos flowcode\verion_5\Pruebas\Flowcode1.c
Title:
Description:
Generated by: Flowcode v5.1.0.0
Date: Thursday, April 12, 2012 23:24:48
Licence: Professional
Registered to: jeflores63
Licence key: ATHWM7
http://www.matrixmultimedia.com
Iniciando el compilador…
C:\Program Files\Flowcode\v5\Tools\boostc\boostc_pic16_flowcode.exe -v -t PIC16F886 "Flowcode1.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


Flowcode1.c
Starting preprocessor: C:\PROGRA~1\Flowcode\v5\Tools\boostc\pp.exe Flowcode1.c -i C:\PROGRA~1\Flowcode\v5\Tools\boostc\include -d _PIC16F886 -la -c2 -o Flowcode1.pp -v -d _BOOSTC -d _PIC16 -d _CHAR_INDEX


......

Flowcode1.c(719:27): error: unknown identifier 'LIN_S_1_LINS_MSG1_ID'
Flowcode1.c(719:27): error: invalid operand 'LIN_S_1_LINS_MSG1_ID'
Flowcode1.c(719:25): error: failed to generate expression
Flowcode1.c(720:28): error: unknown identifier 'LIN_S_1_LINS_MSG1_CNT'
Flowcode1.c(720:28): error: invalid operand 'LIN_S_1_LINS_MSG1_CNT'
Flowcode1.c(720:26): error: failed to generate expression
Flowcode1.c success

failure

..Código de retorno = 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.


FINALIZADO
Attachments
Flowcode1.fcf
fails to compile if you have more of a message defined in slave linbus
(6 KiB) Downloaded 258 times

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: Error when compiling LIN-BUS with 2 or more Messages

Post by Benj »

Hello,

Ok I have found the problem and it has now been resolved.

Please copy the attached file into your "Flowcode/v5/Components" directory and the program should then compile correctly.
Attachments
FC5_PIC_LinSlave.c
(31.47 KiB) Downloaded 263 times

jeflores
Posts: 12
Joined: Fri Apr 06, 2012 7:37 am
Contact:

Re: Error when compiling LIN-BUS with 2 or more Messages

Post by jeflores »

hello
Thanks, problem solved

Post Reply