cannot complie to HEX after installing V10 Paid licence

For general Flowcode discussion that does not belong in the other sections.
rsbake24ja
Posts: 7
http://meble-kuchenne.info.pl
Joined: Fri Dec 18, 2020 4:14 am

cannot complie to HEX after installing V10 Paid licence

Post by rsbake24ja »

I purchased version 10 today upgrading my version 8. I purchased pic8 and pic16
My machine has two drives c: and d:. I have installed v10 on drive D.
when loading tool chain for pic16 there is no option for selecting a Drive. I suspect the tool chain repair over wrote the PIC16 on drive C.
to over come the report unable to comply to C. I filled out and copied the pic16 from c: to d.
attached file locations
locations .png
locations .png (248.72 KiB) Viewed 4187 times
when I try to compile to hex i get an error message " you do not have a valid license"
locations .png
locations .png (248.72 KiB) Viewed 4187 times
I have activated my license.
It shows the three items I purchased pic8, pic16 and ARD

Luckily my v8 appears to still be working.
Can you help
Roy
Attachments
complie error HEX .png
complie error HEX .png (203.16 KiB) Viewed 4187 times

medelec35
Matrix Staff
Posts: 1560
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 555 times
Been thanked: 514 times

Re: cannot complie to HEX after installing V10 Paid licence

Post by medelec35 »

Hello.
Sorry you are facing licensing issues.
We are investigating and will hopefully find out what the issue is ASAP.
Have you Refreshed your licence since activating your account with the key?

Code: Select all

Help > Licensing > Manage > My Flowcode Licence
Then restarted Flowcode?
I'm assuming you have.
Martin

medelec35
Matrix Staff
Posts: 1560
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 555 times
Been thanked: 514 times

Re: cannot complie to HEX after installing V10 Paid licence

Post by medelec35 »

Hi Roy.
There was an issue with our sever, which has now been fixed.
Many thanks for reporting this.
Can you now please reactivate your licence within Flowcode

Code: Select all

Help > Licensing > Manage > My Flowcode Licence
Martin

rsbake24ja
Posts: 7
Joined: Fri Dec 18, 2020 4:14 am

Re: cannot complie to HEX after installing V10 Paid licence

Post by rsbake24ja »

Hi All I can now compile but cannot make hex file .
The error seems to be
coff-gcc-exe:Files No such file or directory


NOT FOR COMMERCIAL USE
https://www.flowcode.co.uk
Using <PICkit4 IPE External Power> inbuilt settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC16\batchfiles\pic16_C30_comp.bat "D:\Program Files (x86)\Flowcode\Common\Compilers\pic16\\" "DSPIC33EV256GM002" "D:\Users\roy\Documents\Flowcode8\2024\" "33EV256GM002"

D:\Users\roy\Documents\Flowcode8\2024>REM CRC: 54CD51B8F484283E91B3AD9DE6F4F50C418D34178E0D3D0BD2659E1DA9D69F58D3529BB9468CFC85641793EB31F94A5F16CBA8333F125C7188ED8742865A1BBCF23BFF3064C25A11BAFA61B701B8D046E2B847C06A341BA1A924146F47BB51131AFA1B63045FF8EFD8DA408700E5719BD2897C22C80F0B985EDF8CE67A1404D62B8878703E3665631EAF018A0B6018ACC8FF364DB19D83FB389861B26F27604A1F36255EB2E4245255911F067119BEF7D5F89C133B93261A29D848A5DAD12E38FF9E5CFBC45304482C3050DA273BE4EEDBE038345E976FF7F0C03E6C1723E33C3CC5736D0D2DAB0D0DA6C43ED30373AA133F965729382C18

D:\Users\roy\Documents\Flowcode8\2024>REM REVISION: 2.0

D:\Users\roy\Documents\Flowcode8\2024>REM GUID: 7821ABE5-9E21-4744-81B7-3FF600B75DB7

D:\Users\roy\Documents\Flowcode8\2024>REM DATE: 25\03\2024

D:\Users\roy\Documents\Flowcode8\2024>REM DIR: FCD\PIC16\batchfiles\pic16_C30_comp.bat

D:\Users\roy\Documents\Flowcode8\2024>xc16-gcc -c -mcpu="33EV256GM002" -omf=coff -funsigned-char -fno-short-double -Os -I"D:\Program Files (x86)\Flowcode\Common\Compilers\pic16\\support\h" -I"D:\Program Files (x86)\Flowcode\Common\Compilers\pic16\\" -I"D:\Program Files (x86)\Flowcode\Common\Compilers\pic16\\batchfiles\" -std=gnu99 "DSPIC33EV256GM002".c -o "DSPIC33EV256GM002".o

coff-gcc.exe: Files: No such file or directory
coff-gcc.exe: (x86)\Flowcode\Common\Compilers\pic16\\batchfiles -std=gnu99 DSPIC33EV256GM002.c -o DSPIC33EV256GM002.o: No such file or directory
coff-gcc.exe: no input files
Error returned from [xc16-gcc.exe]
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC16\batchfiles\pic16_C30_comp.bat reported error code 0x1
Autoclose turned off

rsbake24ja
Posts: 7
Joined: Fri Dec 18, 2020 4:14 am

Re: cannot complie to HEX after installing V10 Paid licence

Post by rsbake24ja »

I have changed location of compiler from
D:\Program Files (x86)\Flowcode\Common\Compilers\pic16\
to
D:\Program Files (x86)\Flowcode\Common\Compilers\pic16
and get a new error

basically Options have been disabled due to restricted license

Target folder: D:\Users\roy\Documents\Flowcode 10
Source name: D:\Users\roy\Documents\Flowcode 10\DSPIC33EV256GM002.fcfx
Title:
Description:
Device: PIC16.33E.33EV256GM002
Generated by: Flowcode v10.1.1.39
Date: Friday, July 26, 2024 15:39:57
Users: 1
Registered to: XXXXXXXXXXXXXXX
Licence key: XXXXXXXXX
NOT FOR COMMERCIAL USE
https://www.flowcode.co.uk
Using <PICkit4 IPE External Power> inbuilt settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC16\batchfiles\pic16_C30_comp.bat "D:\Program Files (x86)\Flowcode\Common\Compilers\pic16\" "DSPIC33EV256GM002" "D:\Users\roy\Documents\Flowcode 10\" "33EV256GM002"

D:\Users\roy\Documents\Flowcode 10>REM CRC: 54CD51B8F484283E91B3AD9DE6F4F50C418D34178E0D3D0BD2659E1DA9D69F58D3529BB9468CFC85641793EB31F94A5F16CBA8333F125C7188ED8742865A1BBCF23BFF3064C25A11BAFA61B701B8D046E2B847C06A341BA1A924146F47BB51131AFA1B63045FF8EFD8DA408700E5719BD2897C22C80F0B985EDF8CE67A1404D62B8878703E3665631EAF018A0B6018ACC8FF364DB19D83FB389861B26F27604A1F36255EB2E4245255911F067119BEF7D5F89C133B93261A29D848A5DAD12E38FF9E5CFBC45304482C3050DA273BE4EEDBE038345E976FF7F0C03E6C1723E33C3CC5736D0D2DAB0D0DA6C43ED30373AA133F965729382C18

D:\Users\roy\Documents\Flowcode 10>REM REVISION: 2.0

D:\Users\roy\Documents\Flowcode 10>REM GUID: 7821ABE5-9E21-4744-81B7-3FF600B75DB7

D:\Users\roy\Documents\Flowcode 10>REM DATE: 25\03\2024

D:\Users\roy\Documents\Flowcode 10>REM DIR: FCD\PIC16\batchfiles\pic16_C30_comp.bat

D:\Users\roy\Documents\Flowcode 10>xc16-gcc -c -mcpu="33EV256GM002" -omf=coff -funsigned-char -fno-short-double -Os -I"D:\Program Files (x86)\Flowcode\Common\Compilers\pic16\support\h" -I"D:\Program Files (x86)\Flowcode\Common\Compilers\pic16\" -I"D:\Program Files (x86)\Flowcode\Common\Compilers\pic16\batchfiles\" -std=gnu99 "DSPIC33EV256GM002".c -o "DSPIC33EV256GM002".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
DSPIC33EV256GM002.c: In function 'main':
DSPIC33EV256GM002.c:1250:3: error: 'CLKVIDbits' undeclared (first use in this function)
DSPIC33EV256GM002.c:1250:3: note: each undeclared identifier is reported only once for each function it appears in
DSPIC33EV256GM002.c:1251:10: error: 'oscconbits' undeclared (first use in this function)
DSPIC33EV256GM002.c:1251:25: error: expected ')' before '!' token
DSPIC33EV256GM002.c:1266:2: warning: 'return' with a value, in function returning void

Error returned from [xc16-gcc.exe]

medelec35
Matrix Staff
Posts: 1560
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 555 times
Been thanked: 514 times

Re: cannot complie to HEX after installing V10 Paid licence

Post by medelec35 »

Hi Roy.
It seems like your Flowcode is correctly set up now as the

Code: Select all

basically Options have been disabled due to restricted license
That warning can be ignored as it just means if you paid for the professional version of the compiler, it will be a bit more efficient.
For the other errors have you done a full database update?
Help > Library updates... Change Files in-use to Full database then close and reopen Flowcode.
If you have updated and reloaded Flowcode after, can you upload your .fcfx project file?
Martin

rsbake24ja
Posts: 7
Joined: Fri Dec 18, 2020 4:14 am

Re: cannot complie to HEX after installing V10 Paid licence

Post by rsbake24ja »

Hi Martin
The compiler works OK in v10 but has stopped working in V8 for 16 PIC . Can they both sit side by side on the same machine or is this a license issue.
I wanted to keep both working.
Thanks

Steve-Matrix
Matrix Staff
Posts: 1355
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 182 times
Been thanked: 317 times

Re: cannot complie to HEX after installing V10 Paid licence

Post by Steve-Matrix »

rsbake24ja wrote:
Fri Jul 26, 2024 8:57 pm
The compiler works OK in v10 but has stopped working in V8 for 16 PIC . Can they both sit side by side on the same machine or is this a license issue.
I wanted to keep both working.
The toolchain should work on both Flowcode v8 and v10. What is the error you are experiencing with v8?

rsbake24ja
Posts: 7
Joined: Fri Dec 18, 2020 4:14 am

Re: cannot complie to HEX after installing V10 Paid licence

Post by rsbake24ja »

Hi Steve
I get the message "pic16 compiler toolchain is not installed Please visit......

I have tried reloading pic16 toolchain but I suspect it just overwrites the V10 location.
I tried directing the program directly to the Compiler in the option boxes of v8
$(compilerpic16)batchfiles\pic16_C30_comp.bat changed to V10 location.
D:\Program Files (x86)\Flowcode\Common\Compilers\pic16.
There is also the original version in the C: @ C: \program files (86)\flowcode\common\compilers\pic16\

I saw one message on the form suggest removing a registry entry. Still looking to find it again. It covered not using a compiler after installation and then uploading another.
Thanks

Steve-Matrix
Matrix Staff
Posts: 1355
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 182 times
Been thanked: 317 times

Re: cannot complie to HEX after installing V10 Paid licence

Post by Steve-Matrix »

Hi Roy,

To fix this, you will need to add an entry in the registry to point Flowcode v8 to the pic16 compiler toolchain. These instructions assume Flowcode v10 is correctly set to compile a pic16 project.
  1. Open Flowcode v10 and open File...Global Options
  2. Copy the entry for the PIC16 toolchain location in the "Locations" tab
  3. Open Regedit and create a new string value here:
    --> HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\MatrixTSL\Flowcode\Common
  4. The string value should be named "Compiler_pic16" and its value should be the same as the location copied from the v10 location in step 2 above
  5. Close Regedit and close Flowcode v10
  6. Open Flowcode v8 and create a new PIC16-based project and try to compile it
Hopefully this will solve your issue.
Add_pic16_to_v8.png
Add_pic16_to_v8.png (26.25 KiB) Viewed 3114 times

Post Reply