Page 1 of 1

FC v5.4 Compile error

Posted: Fri Aug 17, 2012 4:53 pm
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?

Re: FC v5.4 Compile error

Posted: Fri Aug 17, 2012 5:09 pm
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.

Re: FC v5.4 Compile error

Posted: Fri Aug 17, 2012 5:18 pm
by Sefi
Many thanks for your fast response Ben.

Yes it works perfectly.

many thanks
Sefi

Re: FC v5.4 Compile error

Posted: Sat Aug 18, 2012 8:38 am
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