FC v5.4 Compile error

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Sefi
Posts: 56
Joined: Mon Sep 29, 2008 10:26 am
Has thanked: 9 times
Been thanked: 14 times

FC v5.4 Compile error

Post by Sefi »

Hi,

I have just updated to V5.4 of FC for Pics. A program that uses internal CAN functionality of a Pic 18F46K80 mcu no longer compiles with the following errors:


C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_CAN.c(251:2): error: unknown identifier 'CAN_MSG_DLC'
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_CAN.c(251:2): error: invalid operand 'CAN_MSG_DLC'
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_CAN.c(251:14): error: failed to generate expression
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_CAN.c(252:2): error: unknown identifier 'CAN_MSG_ID'
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_CAN.c(252:2): error: failed to generate expression
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_CAN.c(252:2): error: invalid operand 'CAN_MSG_ID[0] '
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_CAN.c(252:16): error: failed to generate expression
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_CAN.c(253:2): error: unknown identifier 'CAN_MSG_ID'
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_CAN.c(253:2): error: failed to generate expression
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_CAN.c(253:2): error: invalid operand 'CAN_MSG_ID[1] '
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_CAN.c(253:16): error: failed to generate expression
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_CAN.c(254:5): error: unknown identifier 'CAN_MSG_DLC'
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_CAN.c(254:5): error: invalid operand 'CAN_MSG_DLC'
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_CAN.c(254:17): error: failed to generate expression

Anyone any ideas?

The actual program ran using V5.2, its a very simple test program that sends out a message with an ID of 100 and checks for any responses.

many thanks
Sefi


As an interim measure, as I uninstalled (foolishly) the previous version 5.2 of FC to install V5.4, is there a way of rolling this back to v5.2 until the main issue gets resolved?

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: FC v5.4 Compile error

Post by Benj »

Hello Sefi,

I have found the cause of the problem and should be able to fix it fairly quickly.

For now you can revert back to the v5.2 component code by copying the attached file into your "Flowcode/v5/Components" directory before starting Flowcode.
FC5_PIC_CAN.c
(45 KiB) Downloaded 426 times
Let me know how you get on.

Sefi
Posts: 56
Joined: Mon Sep 29, 2008 10:26 am
Has thanked: 9 times
Been thanked: 14 times

Re: FC v5.4 Compile error

Post by Sefi »

Many thanks for your fast response Ben.

Yes it works perfectly.

many thanks
Sefi

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times

Re: FC v5.4 Compile error

Post by jgu1 »

Hi Ben! :)

I suppose this is a bug in ver. 5.2 Is this fixed in ver.5.4? And what about (please) the interruptproblem look: http://www.matrixmultimedia.com/mmforum ... 46&t=11115 :?:

Thank´s in advance

Best regard

Jorgen

Post Reply