error compile interrupt xc8.1.xx

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
xelites
Posts: 44
Joined: Thu Nov 06, 2014 9:47 am
Been thanked: 7 times
Contact:

error compile interrupt xc8.1.xx

Post by xelites »

Benj hello, look at the attached file was made with FC7 if I fill in FC7 me error if you compile with fc6 using boost.c is fine indeed runs twice as fast! the problem is the interrrupt .... if you disable the TMR12 in main program , then you must also complete version 7 ... know how to explain? who gives me the configuration for use boost.c in Flow code 7? I tried but I can not

thank you
Attachments
Motus.fcfx
(163.96 KiB) Downloaded 325 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 compile interrupt xc8.1.xx

Post by Benj »

Thanks for letting us know of the problem.

Here is an updated definition file for your device that should solve the compilation problem. Just add the file to your "Flowcode v7/FCD/PIC" folder and restart Flowcode.
18F67K22.fcdx
(53.57 KiB) Downloaded 325 times

xelites
Posts: 44
Joined: Thu Nov 06, 2014 9:47 am
Been thanked: 7 times
Contact:

Re: error compile interrupt xc8.1.xx

Post by xelites »

Ok problem solved thx Benj ;-). just filled with version 6, the program runs twice as fast! You know how to give configurations to installed compile on FC7 with boost.c?
thank you

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 compile interrupt xc8.1.xx

Post by Benj »

Hello,

I'm afraid that using Flowcode 7 with BoostC is going to be far from easy and to be honest XC8 should be able to perform just as well if not better.

Maybe it is something we have altered for Flowcode v7 e.g. a timeout in a component taking slightly longer?

I'll have another look through your program and see if I can work out why v7 is running so much slower for you.

You have a few warnings in the compiler output that could potentially be causing issues.
Motus-1.c: 1935: (1257) local variable "_FCR_RETVAL" is used but never given a value (warning)
Motus-1.c: 2712: (1257) local variable "_FCR_RETVAL" is used but never given a value (warning)
Motus-1.c: 2865: (1257) local variable "_FCR_RETVAL" is used but never given a value (warning)
C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_String.c: 581: (1257) local variable "_FCI_FLOAT_TO_STRING" is used but never given a value (warning)
sources\common\floor.c: 18: (1257) local variable "_floor" is used but never given a value (warning)

xelites
Posts: 44
Joined: Thu Nov 06, 2014 9:47 am
Been thanked: 7 times
Contact:

Re: error compile interrupt xc8.1.xx

Post by xelites »

But you are not given by my program ... how active the PWM modules out these errors .... I have no idea where they come from! the components are set correctly ... if you tell me what to try, I try now
thx

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 compile interrupt xc8.1.xx

Post by Benj »

It could be to do with the RS232 receive. I think the timeout in v7 was far too big for some reason.

Please can you try using the attached CAL file which has the timeout issue solved. The file lives in the "Flowcode 7/CAL/PIC" directory.
PIC_CAL_UART.c
(23.29 KiB) Downloaded 355 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 compile interrupt xc8.1.xx

Post by Benj »

Hello,
I have no idea where they come from
Your right these warnings are all coming from components and not your code. I will investigate.

After looking at each one I don't think they will cause you any problems but would be good to try and get rid of them from being generated.

xelites
Posts: 44
Joined: Thu Nov 06, 2014 9:47 am
Been thanked: 7 times
Contact:

Re: error compile interrupt xc8.1.xx

Post by xelites »

Benj, I copied the file but have not seen improvements, check out the 12-bit ADCs that macro lose much time I have to use it in raw mode because I can not in any other way! I am attaching the screen gegli errors in compilation ... try to remove the components from the 3D panel, and you'll see that disappear ...
Attachments
Cattura.JPG
Cattura.JPG (112.6 KiB) Viewed 6211 times

Post Reply