Difference between compilers in FC7 and FC8 ?

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

Moderator: Benj

Post Reply
Frank607
Posts: 192
Joined: Mon Mar 04, 2013 8:07 pm
Has thanked: 29 times
Been thanked: 15 times
Contact:

Difference between compilers in FC7 and FC8 ?

Post by Frank607 »

I’m trying to build a hex file from an earlier made .fcfx program. I have made a hex file from this program but in FC7. Now I have FC8 and I can’t get built a hex file from this .fcfx file. I have not changed anything in this file. It is still original.

I assume it has something to do with “space”.

Code: Select all

using updated 32-bit floating-point libraries; improved accuracy might increase code size
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_IO.c: 1189: (1358) no space for _main temps (3)
(908) exit status = 1
(908) exit status = 1

So, is there a different between the compiler used in FC7 and FC8 ?

Below is the full error log.

Code: Select all

Target folder: D:\FlowCode Projecten\TEST - V1-0 - Two Channel LED Flasher
Source name:   D:\FlowCode Projecten\TEST - V1-0 - Two Channel LED Flasher\TEST - V1-0 - Two channel LED Flasher with LEDs_v7.fcfx
Title:         
Description:   
Device:        PIC.12F.12F675
Generated by:  Flowcode v8.2.2.15
Date:          Monday, December 07, 2020 13:25:53
Users:         1
Registered to: XXXXXX
License key: XXXXX
   NOT FOR COMMERCIAL USE
https://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode\Compilers\pic\batch\pic_xc8_comp.bat  12F675 "D:\FlowCode Projecten\TEST - V1-0 - Two Channel LED Flasher\" "TEST - V1-0 - Two channel LED Flasher with LEDs_v7"

D:\FlowCode Projecten\TEST - V1-0 - Two Channel LED Flasher>C:\PROGRA~2\Flowcode\COMPIL~1\pic\batch\..\bin\xc8.exe --chip=12F675  "TEST - V1-0 - Two channel LED Flasher with LEDs_v7.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32 
Microchip MPLAB XC8 C Compiler (Free Mode) V1.45
Build date: Nov 15 2017
Part Support Version: 1.45
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration

.

using updated 32-bit floating-point libraries; improved accuracy might increase code size
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_IO.c: 1189: (1358) no space for _main temps (3)
(908) exit status = 1
(908) exit status = 1

Error returned from [xc8.exe]

C:\Program Files (x86)\Flowcode\Compilers\pic\batch\pic_xc8_comp.bat reported error code 1

Autoclose turned off

FINISHED 

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Difference between compilers in FC7 and FC8 ?

Post by QMESAR »

Hi.

There should be no difference between XC8 and XC8 in V7 and V8
My wild guess is you ran out of memory on the chip

Frank607
Posts: 192
Joined: Mon Mar 04, 2013 8:07 pm
Has thanked: 29 times
Been thanked: 15 times
Contact:

Re: Difference between compilers in FC7 and FC8 ?

Post by Frank607 »

QMESAR wrote:
Mon Dec 07, 2020 3:26 pm
Hi.

There should be no difference between XC8 and XC8 in V7 and V8
My wild guess is you ran out of memory on the chip
Hi,

I’m sorry but this is the same chip. There is really no hardware change or program change. Just FC7 to FC8.
The program was made on Nov 15 2017 and successfully compiled with FC7.

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Difference between compilers in FC7 and FC8 ?

Post by QMESAR »

Ok ,
not seeing the code we are only guessing :D

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: Difference between compilers in FC7 and FC8 ?

Post by kersing »

The compiler is the same for both version, however the components are not. FC8 components are slightly larger and as a result more memory is required.
Could could you look at the FC7 compiler output to check how much memory is being used and how much is available?
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Difference between compilers in FC7 and FC8 ?

Post by medelec35 »

Hi,
Personally, If you want an 8 pin chip then go for something like 12F1840.
Much faster as 32MHz, much more memory and peripherals.
I agree with QMESAR in that its a memory space issue and run out because of what kersing has stated.
Martin

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Difference between compilers in FC7 and FC8 ?

Post by QMESAR »

The compiler is the same for both version, however the components are not. FC8 components are slightly larger and as a result more memory is required.
Thanks Kersing my feeling is still memory problem looking at the compiler message :D

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: Difference between compilers in FC7 and FC8 ?

Post by kersing »

I might be daft, but how does
FC8 components are slightly larger and as a result more memory is required.
suggest it is not a memory issue?
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Frank607
Posts: 192
Joined: Mon Mar 04, 2013 8:07 pm
Has thanked: 29 times
Been thanked: 15 times
Contact:

Re: Difference between compilers in FC7 and FC8 ?

Post by Frank607 »

Thanks for the answers. I have time on Friday to check this is FC7 and see the memory details then. Chancing from chip is not a problem. ( I must make new PCB’s because the shape must be modified)

Can I run FC7 and FC8 together on one computer without conflicting each other ?

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: Difference between compilers in FC7 and FC8 ?

Post by kersing »

Running both FC7 and FC8 on the same PC should not be a problem.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Difference between compilers in FC7 and FC8 ?

Post by medelec35 »

Hi Frank,
Frank607 wrote:
Wed Dec 09, 2020 4:55 pm
Chancing from chip is not a problem. ( I must make new PCB’s because the shape must be modified)
Changing to PIC12F1840 (7KB) will not cause an issue as its pin for pin compatible with PIC12F675 (1.75KB).
Frank607 wrote:
Wed Dec 09, 2020 4:55 pm
Can I run FC7 and FC8 together on one computer without conflicting each other ?
I agree with kersing
Yes it can.
I have ran FC6, FC7, FC8 and FC9 on the same machine without any conflicts at all!
Martin

Frank607
Posts: 192
Joined: Mon Mar 04, 2013 8:07 pm
Has thanked: 29 times
Been thanked: 15 times
Contact:

Re: Difference between compilers in FC7 and FC8 ?

Post by Frank607 »

Thanks all for your help. I have decided to switch from PIC12F675 to a PIC12F1840 in this case for more memory.

If I compare the PIC12F1840 with the PIC16F18313 (Microchip recommends for the 12F675) Than the PIC12F1840 looks more better to use.

The PIC12F675 was running at 4MHz to safe battery power. I will do the same with the PIC12F1840.

Frank607
Posts: 192
Joined: Mon Mar 04, 2013 8:07 pm
Has thanked: 29 times
Been thanked: 15 times
Contact:

Re: Difference between compilers in FC7 and FC8 ?

Post by Frank607 »

I have replaced the 12F675 for the 12F1840. I was struggling with the speed of this chip. I have made the simply one second flash to test this. I change some settings and finally it works.

This chip will be used for a LED flashing program in the original chart.

I just wonder if these settings are correct. Attached is the one second chart.
LED SPEED TEST 1 SEC.fcfx
(7.41 KiB) Downloaded 135 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Difference between compilers in FC7 and FC8 ?

Post by medelec35 »

Hi Frank,
Setting look correct to me.
The 12F1840 can go up to 32MHz.
To take the guess work out make it much easier for you, just search component s for intosc
Then add the component to your dashboard.
Right click on the IntOsc component when on the dashboard and select properties.
Enter he required frequency and you will see the C code to copy and past.
In your case if enter 8MHz:
IntOsc.png
IntOsc.png (27.12 KiB) Viewed 4976 times
Martin

Post Reply