compile to chip

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
franky1978
Posts: 23
Joined: Thu Jun 13, 2019 2:29 pm

compile to chip

Post by franky1978 »

Hi everyone!
i installed now flowcode V8 but if i try to compile to chip i have an error "avr compiler toolchain is not installed" , i have download it and install it but
nothing change

i can i do?

thanks

franky1978
Posts: 23
Joined: Thu Jun 13, 2019 2:29 pm

Re: compile to chip

Post by franky1978 »

solved!

i reinstall all and now works

DeeJayOne
Posts: 17
Joined: Thu Apr 30, 2020 7:43 pm
Has thanked: 15 times
Been thanked: 3 times

Re: compile to chip

Post by DeeJayOne »

I meet the same problem.
After installing the 8-bit PIC C compiler and re-starting Flowcode v8, the error message is always present.

Then I have restarted my computer without any change.

I have verified the C-compiler path in the "build menu -> compiler options" and I can see that the default path is :
"$(compilerpic)batch\pic_xc8_comp.bat"
where $(compilerpic) = "C:\Program Files (x86)\Flowcode v8\"

But I can see that the C-Compiler is not installed in the same directory :
"C:\Program Files (x86)\Flowcode\Common\Compilers\pic\batch\pic_xc8_comp.bat"

I have added a new directory path for the C compiler, then restarted the application but with always the same error message.
Flowcode version.PNG
(109.75 KiB) Downloaded 469 times
Compiler settings - default.PNG
(26.69 KiB) Downloaded 469 times
Compiler settings - updated.PNG
(27.54 KiB) Downloaded 469 times
Windows 10.0.18362.778
Flowcode v8.2.2.15 (2020-02-28)

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: compile to chip

Post by medelec35 »

Hi DeeJayOne,
What are the root folders within

Code: Select all

C:\Program Files (x86)\Flowcode\Common\Compilers
?
Martin

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: compile to chip

Post by medelec35 »

You should have:
PIC Compiler.png
(5.51 KiB) Downloaded 463 times
& within pic:
PIC Compiler2.png
(18.68 KiB) Downloaded 463 times
Martin

DeeJayOne
Posts: 17
Joined: Thu Apr 30, 2020 7:43 pm
Has thanked: 15 times
Been thanked: 3 times

Re: compile to chip

Post by DeeJayOne »

medelec35 wrote:Hi DeeJayOne,
What are the root folders within

Code: Select all

C:\Program Files (x86)\Flowcode\Common\Compilers
?
After checking the install folder during the install process with an other compiler (PIC16 this time), I can see that the compiler want to install in the following default folder :

Code: Select all

C:\Program Files (x86)\Flowcode\Compilers
So, I don't know why the PIC compiler was installed in a "Common" subfolder.

I have uninstalled the PIC compiler, then installed it again and this time it works fine !
The compiler is installed in the right directory (without the Common subfolder)
I didn't understand what it was happended during the 1st compiler installation.
PIC8 Compiler setup folder.PNG
(17.91 KiB) Downloaded 461 times
PIC16 Compiler setup folder.PNG
(18.01 KiB) Downloaded 461 times
Windows 10.0.18362.778
Flowcode v8.2.2.15 (2020-02-28)

DeeJayOne
Posts: 17
Joined: Thu Apr 30, 2020 7:43 pm
Has thanked: 15 times
Been thanked: 3 times

Re: compile to chip

Post by DeeJayOne »

medelec35 wrote:You should have:PIC Compiler.png& within pic:PIC Compiler2.png
I can see that you have the "Common" subfolder as me after my first compiler installation.
Now, I haven't this subfolder and it solves the problem, very strange...
W10 - Install Folder Tree - v2.PNG
(72.24 KiB) Downloaded 459 times
Windows 10.0.18362.778
Flowcode v8.2.2.15 (2020-02-28)

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: compile to chip

Post by medelec35 »

I have been having a little play, this is what I have discovered on my PC.
If you install Flowcode but have not run it, then install your first tool chain, I believe the initial path will be built into the toolchain.
If you change or keep the path, the install path will then be stored in

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\MatrixTSL\Flowcode\Common

When you install the next toolchain, it will read the above key to set the default install path.
You can change the path and then that new path will be used for any future toolchains.

Whenever Flowcode is run I believe it looks in the above key for the path to be picked up by

Code: Select all

$(compiler version)
within compiler options.
So if you ever get toolchain not installed, and you are confident that the target selected is for the toolchain you installed (you cancheck with tool chains are installed by looking at the above key within registry editor - regedit) then:

1) Make sure Flowcode is not running
2) Run Regedit, Only delete

Code: Select all

HKEY_CURRENT_USER\Software\MatrixTSL\FlowcodeV8
Nothing else as deleting windows system files will stop pc from working.
3) Run Flowcode, the installed toolchains should now work.
Martin

Post Reply