Updating XC8 Compiler

Tips, Tricks and methods for programming, learn ways of making your programming life easier, and share your knowledge with others.
Post Reply
medelec35
Matrix Staff
Posts: 1660
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 581 times
Been thanked: 554 times

Flowcode v10 Updating XC8 Compiler

Post by medelec35 »

Replacing the original compiler with a new version

Select File > Global Settings… > Locations tab
Under Override toolchain locations, enter the path where the Bin folder is located, e.g.

Code: Select all

C:\Program Files\Microchip\xc8\v2.46
The end \ can be left off.
To change back to the original compiler, replace the above path with:

Code: Select all

C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\




Keeping the original compiler and adding a new compiler
Copy pic_xc8_comp.bat from C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\
Give it a new name so you have two batch files, place it anywhere you won’t accidently delete it.
Edit the file and change "%MX_COMPILER%bin\xc8-cc.exe" to the path for the new XC8 location of xc8-cc.exe.
For example:
"C:\Program Files\Microchip\xc8\v2.46\bin\xc8-cc.exe"
Save the new batch file
Within Flowcode Load a typical PIC xc8 target e.g. 16F18877 via New project or Build > Project options.
Select Build > Compiler Options and if using Eblocks, select E-Blocks from PIC selection.

For the location select Browse then change Executable Files (*.exe) to Batch Files (*.bat)
Select the new batch file, then Open

Click on the save icon then enter a new name, then OK.
Finally make sure the new version is selected and click the Default compiler for the platform C for PIC ,then Click OK
Martin

jgu1
Posts: 725
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 611 times
Been thanked: 164 times

Re: Updating XC8 Compiler

Post by jgu1 »

Hi Martin!

A bit confused :lol: Where can I download the new XC 2.46, does I install?

And the path you show doesn´t look mine.


What are the advantages of the updated XC8 and now they probably do not have implications for previous projects

Thinking a lot about not going to
Having big problems now that everything works ;)

Br Jorgen
Attachments
New.png
New.png (7.61 KiB) Viewed 4354 times
Skærmbillede 2024-03-27 191721.png
Skærmbillede 2024-03-27 191721.png (16.06 KiB) Viewed 4354 times

WingNut
Posts: 263
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 35 times
Been thanked: 27 times

Re: Updating XC8 Compiler

Post by WingNut »


medelec35
Matrix Staff
Posts: 1660
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 581 times
Been thanked: 554 times

Re: Updating XC8 Compiler

Post by medelec35 »

Hello.
We will be updating XC8 PIC compiler as soon as we are happy that there are no issues with it.
I just posted instruction for anyone that wants to give it a try before its updated.
We do plan on adding some new devices. :)
Martin

Post Reply