Page 1 of 1

Solved ! Does the auto version id work in version 11

Posted: Wed Mar 18, 2026 9:21 pm
by Amtor
I was trying to use the Auto Version ID but it seems to cause an error in version 11. I expect its me doing something wrong.
You can add the component but as soon as you try to use one of items like get build number it causes a compile error.
Compile to C is ok but compile to Hex causes this error.
I'm using the free version maybe that the problem.
Thanks for any info Mark
C:\Flowcode Projects\FC11>"C:\Program Files (x86)\Flowcode\Compilers\picv2\bin\xc8.exe" --chip=16F18877 "TEST_OF_16F18877.c" --double=32 --float=32 --msgdisable=359,1273,1388
C:\Program Files (x86)\Flowcode\Compilers\picv2\pic\bin\picc --chip=16F18877 TEST_OF_16F18877.c --double=32 --float=32 --msgdisable=359,1273,1388
Microchip MPLAB XC8 C Compiler V2.10
Build date: Jul 30 2019
Part Support Version: 2.10
Copyright (C) 2019 Microchip Technology Inc.
TEST_OF_16F18877.c: FCD_09b81_AutoVersionID1__GetSourceFilename()
82: FCI_SCOPY(FCV_09b81_AutoVersionID1__MYFILENAME,FCVsz_09b81_AutoVersionID1__MYFILENAME, FCR_RETVAL,FCRsz_RETVAL);
^ (192) undefined identifier "FCVsz_09b81_AutoVersionID1__MYFILENAME"
(908) exit status = 1
(908) exit status = 1

Error returned from [xc8.exe]

C:\ProgramData\MatrixTSL\FlowcodeV11\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1

Autoclose turned off


FINISHED

Re: Does the auto version id work in version 11

Posted: Thu Mar 19, 2026 9:20 am
by Steve-Matrix
I've just checked this and it seems to be compiling ok for me. Make sure you up-to-date with Library Updates (in the Help menu) and try again.

If it's still a problem, please post the following files of a project that does not work and we will investigate further:
  • .fcfx - the project file
  • .c - generated C code
  • .msg.txt - errors generated during compile
  • .fcxlog.txt - additional debugging info

Re: Does the auto version id work in version 11

Posted: Thu Mar 19, 2026 12:29 pm
by Amtor
With FC9 this compiles to Hex fine but with FC10 or FC11 I get the error.
I'm sure I'm doing something stupid
Thanks
Mark

Re: Does the auto version id work in version 11

Posted: Thu Mar 19, 2026 12:30 pm
by Amtor
The other file

Re: Does the auto version id work in version 11

Posted: Thu Mar 19, 2026 3:35 pm
by Steve-Matrix
Thanks.

It looks like you are using a v10 component instead of the v11 component. This is in the C code:

Code: Select all

/*========================================================================*\
   Use :AutoVersionID1
       :GUID: 1911d96c-78dd-414a-b23c-6691fb19f63f
       :Location: C:\ProgramData\MatrixTSL\FlowcodeV10\Components\AutoVersionID.fcpx
       :Version: 7.0 (0x100228)*
       :Timestamp: 05\12\2025
       :Variable declarations
       :Macro implementations
\*========================================================================*/
I don't know why your copy of Flowcode v11 is pointing at the Flowcode v10 section in %PROGRAMDATA%. Perhaps you have set it to in the "Locations" tab of "Global Options". If so, remove that location from "Look for components in..." and and then restart Flowcode and try again.

Re: Does the auto version id work in version 11

Posted: Thu Mar 19, 2026 8:09 pm
by Amtor
Thanks very much.
Yes you are dead right. I don't know how that line got in there. I must have had a mental breakdown.
The only thing I remember having there on older versions was a line pointing to user components.


The men in white coats will be coming for me the way I'm going

Thanks for your help

Mark