FC9 vs. FC toolchain and Microchip Pro-Compiler

For general Flowcode discussion that does not belong in the other sections.
Post Reply
dvcam99
Posts: 96
http://meble-kuchenne.info.pl
Joined: Fri Dec 04, 2020 11:03 am
Has thanked: 6 times
Been thanked: 12 times

FC9 vs. FC toolchain and Microchip Pro-Compiler

Post by dvcam99 »

Hello Matrix Team,

I just purchased FC9 Prof. Version and I want to download the PIC8 Toolchain shortly.

Three questions came up!!

1. Will this new FC9 Pic toolchain may create a conflict with my existing FC8 Prof. Pic-8 toolchain??

2. I´m using the Mircrochip Pro-Compiler version 1.45 with my old FC8. Will this may create problems with the new FC9 compiler toolchain.

3. Will the Microchip Pro-Compiler work with FC9 too?


Tanks in advance
Dirk
Happy FC9, FC-8 and FC-6 professional user ;)

Steve-Matrix
Matrix Staff
Posts: 1465
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 204 times
Been thanked: 347 times

Re: FC9 vs. FC toolchain and Microchip Pro-Compiler

Post by Steve-Matrix »

dvcam99 wrote:
Mon Feb 01, 2021 11:08 am
1. Will this new FC9 Pic toolchain may create a conflict with my existing FC8 Prof. Pic-8 toolchain??
There should be no conflict. We have been using both toolchains side-by-side without problem.

dvcam99 wrote:
Mon Feb 01, 2021 11:08 am
2. I´m using the Mircrochip Pro-Compiler version 1.45 with my old FC8. Will this may create problems with the new FC9 compiler toolchain.
I’ve not specifically tested this, but I can’t see there being a problem.

dvcam99 wrote:
Mon Feb 01, 2021 11:08 am
3. Will the Microchip Pro-Compiler work with FC9 too?
Yes and no. FC9 uses v2 of the compiler and supports the newer chips. The code generated by Flowcode should work on both v1 and v2 compiler toolchains, but we test v9 mainly with the v2 compiler and you would also lose support for the newer chips. However, your pro compiler version will add code optimisations and have other benefits for you.

It should be relatively simple to switch which toolchain is being used by editing the location in the “locations” tab of Flowcode’s global options.

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Re: FC9 vs. FC toolchain and Microchip Pro-Compiler

Post by medelec35 »

Hi Steve,
Steve-Matrix wrote:
Mon Feb 01, 2021 12:39 pm
FC9 uses v2 of the compiler and supports the newer chips.
I did not think 2 was included in this release?
Martin

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: FC9 vs. FC toolchain and Microchip Pro-Compiler

Post by p.erasmus »

Steve-Matrix wrote:
Mon Feb 01, 2021 12:39 pm
we test v9 mainly with the v2 compiler and you would also lose support for the newer chips
I aslo did not know this I suppose we can down load the V2 from the FC web page
:D
Regards Peter - QME Electronics

BenR
Matrix Staff
Posts: 1924
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 501 times
Been thanked: 684 times

Re: FC9 vs. FC toolchain and Microchip Pro-Compiler

Post by BenR »

Hi

I believe v9 will work with v1 or v2 compiler. If you have v1 installed from v8 then it will work fine with this. If you download the compiler from the flowcode.co.uk site then that will be v2.

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Re: FC9 vs. FC toolchain and Microchip Pro-Compiler

Post by medelec35 »

Thanks Steve & Ben
BenR wrote:
Mon Feb 01, 2021 6:35 pm
If you have v1 installed from v8 then it will work fine with this. If you download the compiler from the flowcode.co.uk site then that will be v2.
That's why I stated about v1 as originally downloaded from matrixtsl site.
However, I don't believe the batch file is correct.
Loaded a flowchart and compiled with the default v2 batch file:

Code: Select all

@REM $(chip) "$(outdir)" "$(target)"
@PUSHD %~2
%~dp0..\pic\bin\xc8.exe --chip=%~1  "%~3.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
@POPD
@IF %ERRORLEVEL% NEQ 0 GOTO Error
@ECHO.
@ECHO Compilation successful!
@EXIT 0

:Error
@ECHO.
@ECHO Error returned from [xc8.exe]
@EXIT %ERRORLEVEL%
Results:

Code: Select all

Memory Summary:
    Program space        used  3612h ( 13842) of  4000h bytes   ( 84.5%)
    Data space           used    E5h (   229) of   300h bytes   ( 29.8%)
    Configuration bits   used     7h (     7) of     7h words   (100.0%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    ID Location space    used     0h (     0) of     8h bytes   (  0.0%)
    Data stack space     used     0h (     0) of   212h bytes   (  0.0%)
Tried again with batch file from here:

Code: Select all

@REM $(chip) "$(outdir)" "$(target)"
@PUSHD %~2
"C:\Program Files (x86)\Microchip\xc8\v2.00\bin\xc8-cc.exe" -mcpu=%~1 "%~3.c" -w=359,1273,1388 -fshort-float -fshort-double -std=c90 -Os
@POPD
@IF %ERRORLEVEL% NEQ 0 GOTO Error
@ECHO.
@ECHO Compilation successful!
@EXIT 0
:Error
@ECHO.
@ECHO Error returned from [xc8.exe]
@EXIT 1
Aa
Results are:

Code: Select all

Memory Summary:
    Program space        used  2C9Ch ( 11420) of  4000h bytes   ( 69.7%)
    Data space           used    C7h (   199) of   300h bytes   ( 25.9%)
    Configuration bits   used     7h (     7) of     7h words   (100.0%)
    EEPROM space         used     0h (     0) of   100h bytes   (  0.0%)
    ID Location space    used     0h (     0) of     8h bytes   (  0.0%)
    Data stack space     used     0h (     0) of   22Fh bytes   (  0.0%)
Martin

dvcam99
Posts: 96
Joined: Fri Dec 04, 2020 11:03 am
Has thanked: 6 times
Been thanked: 12 times

Re: FC9 vs. FC toolchain and Microchip Pro-Compiler

Post by dvcam99 »

First many thanks for your feedback friends!!

I will give it a try in the next 2 or 3 weeks.

I´ll give you d feedback then.

BR

Dirk
Happy FC9, FC-8 and FC-6 professional user ;)

dvcam99
Posts: 96
Joined: Fri Dec 04, 2020 11:03 am
Has thanked: 6 times
Been thanked: 12 times

Re: FC9 vs. FC toolchain and Microchip Pro-Compiler

Post by dvcam99 »

Hello together,

like I promised some weeks ago here is my feedback.

1. Microchip Pro-Compiler 1.45 with my old FC8 and new FC9 is working fine!!

2. No problems observed with the toolchain too.

Just finished my new project!!

Great job Matrix Team!!

THX
Dirk
Happy FC9, FC-8 and FC-6 professional user ;)

Post Reply