Page 1 of 1

FC9 vs. FC toolchain and Microchip Pro-Compiler

Posted: Mon Feb 01, 2021 11:08 am
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

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

Posted: Mon Feb 01, 2021 12:39 pm
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.

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

Posted: Mon Feb 01, 2021 6:01 pm
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?

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

Posted: Mon Feb 01, 2021 6:28 pm
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

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

Posted: Mon Feb 01, 2021 6:35 pm
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.

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

Posted: Mon Feb 01, 2021 8:17 pm
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%)

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

Posted: Wed Feb 03, 2021 8:37 pm
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

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

Posted: Mon Mar 01, 2021 8:05 pm
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