Page 1 of 1

Difference between compilers in FC7 and FC8 ?

Posted: Mon Dec 07, 2020 3:12 pm
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 

Re: Difference between compilers in FC7 and FC8 ?

Posted: Mon Dec 07, 2020 3:26 pm
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

Re: Difference between compilers in FC7 and FC8 ?

Posted: Mon Dec 07, 2020 4:38 pm
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.

Re: Difference between compilers in FC7 and FC8 ?

Posted: Mon Dec 07, 2020 4:49 pm
by QMESAR
Ok ,
not seeing the code we are only guessing :D

Re: Difference between compilers in FC7 and FC8 ?

Posted: Mon Dec 07, 2020 5:48 pm
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?

Re: Difference between compilers in FC7 and FC8 ?

Posted: Mon Dec 07, 2020 5:52 pm
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.

Re: Difference between compilers in FC7 and FC8 ?

Posted: Mon Dec 07, 2020 5:58 pm
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

Re: Difference between compilers in FC7 and FC8 ?

Posted: Mon Dec 07, 2020 6:29 pm
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?

Re: Difference between compilers in FC7 and FC8 ?

Posted: Wed Dec 09, 2020 4:55 pm
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 ?

Re: Difference between compilers in FC7 and FC8 ?

Posted: Wed Dec 09, 2020 5:45 pm
by kersing
Running both FC7 and FC8 on the same PC should not be a problem.

Re: Difference between compilers in FC7 and FC8 ?

Posted: Wed Dec 09, 2020 5:48 pm
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!

Re: Difference between compilers in FC7 and FC8 ?

Posted: Sat Dec 12, 2020 6:26 pm
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.

Re: Difference between compilers in FC7 and FC8 ?

Posted: Tue Dec 15, 2020 5:45 pm
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 145 times

Re: Difference between compilers in FC7 and FC8 ?

Posted: Tue Dec 15, 2020 6:06 pm
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 6253 times