Page 1 of 1

compile to chip

Posted: Thu Apr 09, 2020 2:54 pm
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

Re: compile to chip

Posted: Thu Apr 09, 2020 5:37 pm
by franky1978
solved!

i reinstall all and now works

Re: compile to chip

Posted: Fri May 01, 2020 12:15 am
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

Re: compile to chip

Posted: Fri May 01, 2020 1:02 am
by medelec35
Hi DeeJayOne,
What are the root folders within

Code: Select all

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

Re: compile to chip

Posted: Fri May 01, 2020 1:20 am
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

Re: compile to chip

Posted: Fri May 01, 2020 1:42 am
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

Re: compile to chip

Posted: Fri May 01, 2020 1:56 am
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

Re: compile to chip

Posted: Fri May 01, 2020 2:33 pm
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.