Page 1 of 1

PIC compiler toolchain is not installed

Posted: Thu Oct 12, 2023 12:55 pm
by Allistair
I have installed Flowcode 10 to evaluate it for programming a PIC18F46K22 device.
I want to compile a project to a hex file so I can program the PIC device using a separate programmer.

I have installed the PIC compiler toolchain and I have activated the Standard version of the licence.
All this is confirmed when I view the licence page (see attached screenshot).

I have a project loaded but when I select the option to Build >> Compile to HEX, I get the message "PIC compiler toolchain is not installed ..." (see attached screenshot).
Yet the toolchain is installed!

There is no problem with compiling this project to a HEX file, on a friends installation of Flowcode 9 although I believe he might have a professional version installed.

I would appreciate any help on this issue.

Re: PIC compiler toolchain is not installed

Posted: Thu Oct 12, 2023 1:03 pm
by stefan.erni
Hi Allistair

Can you check by the global settings if the location is correct for your computer?

And which PIC do you want to use? Sometimes the PIC16 designation is confusing.

regards

Stefan

Re: PIC compiler toolchain is not installed

Posted: Thu Oct 12, 2023 1:11 pm
by Steve-Matrix
The toolchains are separate installations and can be found on the downloads page:
https://www.flowcode.co.uk/download/

You will need the 8-bit PIC installation for the PIC18F46K22 device.

Re: PIC compiler toolchain is not installed

Posted: Thu Oct 12, 2023 2:54 pm
by Allistair
Hi Stefan.
Thank you for your response.

The locations in the global settings were all empty.
Using File Explorer, I could see that the only available folder for the PIC was :
C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\pic
(see PIC_CompilerFolder.jpg)

I set the above path for PIC and PIC16 locations as shown in PIC_ToolchainLocationSettings.jpg

When i now select "Compile to HEX" i get the following message:

----------------------------------------------------------
[Target folder: I:\Projects\MR-Innovations\EmbeddedSoftware\FlowCode\Demos
Source name: I:\Projects\MR-Innovations\EmbeddedSoftware\FlowCode\Demos\Flowcode1.fcfx
Title: PicTest
Description: Test project for PIC18F46K22 device
Device: PIC.18F.18F46K22
Generated by: Flowcode v10.0.4.33
Date: Thursday, October 12, 2023 14:20:08
Users: 1
Registered to: Allistair (FREE_VERSION)
Licence key: ??????
NOT FOR COMMERCIAL USE
https://www.flowcode.co.uk
Using <PICkit2 PK2CMD External Power> inbuilt settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat "C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\pic\" 18F46K22 "I:\Projects\MR-Innovations\EmbeddedSoftware\FlowCode\Demos\" "Flowcode1"
You do not have a valid licence to perform this action[
------------------------------------------------------------------

I have replaced the License Key number with ?????? in the above listing.

I note that the above message is informing me that i do not have a valid license for this action to "Compile to HEX".
If this is the case then do i need to purchase a professional licence?

Kind regards,
Allistair

Re: PIC compiler toolchain is not installed

Posted: Thu Oct 12, 2023 3:25 pm
by medelec35
Hello
If you look at this webpage , you will see that only the following microchip devices are free:
  • PIC16F15323
  • PIC16F18877
  • PIC18F25K50
  • PIC24FJ128GA702
  • dsPIC33EP256MU806
  • GameCode
Any other pic8 devices will require a PIC8 licence.
Also, these are the correct toolchain paths.
I'm surprised they were not added when the toolchains were first installed.

Re: PIC compiler toolchain is not installed

Posted: Thu Oct 12, 2023 4:06 pm
by Allistair
Hi Martin

Thank you for clarifying this for me.
It's my first time with Flowcode and have found much of the documentation , to be a bit splintered for a Flowcode novice, such as myself.

I was very careful with installing Flowcode and the 8bit PIC compiler toolchain so i don't understand why the Location tab of the global settings, was initially empty.

I will purchase the required license but i will also perform an uninstall and reinstall of the Flowcode and tool chains to see if the global settings get correctly populated.

Thanks again for your help.