Hi,
I imported my working FC9 project into FC10.
Now when compiling it to HEX i get an Error..
D:\SC-Server\Projecten\xx\xx\Flowcode\V1.3_230207\FC10>"C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\bin\xc8.exe" --chip=16F18857 "V1.3_230207.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\pic\bin\picc --chip=16F18857 V1.3_230207.c --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
Microchip MPLAB XC8 C Compiler V2.10
Build date: Jul 30 2019
Part Support Version: 2.10
Copyright (C) 2019 Microchip Technology Inc.
D:\SC-Server\Projecten\xx\xx\Flowcode\V1.3_230207\FC10\V1.3_230207.h:
549: #warning WS2811 Timings are less than 10 instructions, timing may be incorrect at the current clock speed
^ (162) #warning: WS2811 Timings are less than 10 instructions, timing may be incorrect at the current clock speed (warning)
D:\SC-Server\Projecten\xx\xx\Flowcode\V1.3_230207\FC10\V1.3_230207.h:
724: 0x0101
^ (195) expression syntax
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_RMT.c:
67: void FC_CAL_RMT_TX_1 (void);
(984) type redeclared ^
^ (1098) conflicting declarations for variable "FC_CAL_RMT_TX_1" (C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_RMT.c:67)
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1
Autoclose turned off
FINISHED
It seems to be halted at the RMT CAL function.
It's not clear to me what kind of cal function this is!
PIC16F project not compiling to HEX
-
- Posts: 11
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 31, 2020 2:14 pm
- Been thanked: 3 times
PIC16F project not compiling to HEX
Last edited by pschoon on Mon Feb 27, 2023 8:02 pm, edited 1 time in total.
Re: PIC16F project not compiling to HEX
If its any help I get a the following output - which is slightly different than your but still indicates a timing issue
C:\Users\Norma\Downloads>"C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\bin\xc8.exe" --chip=16F18857 "V1.3_230207.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\pic\bin\picc --chip=16F18857 V1.3_230207.c --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
Microchip MPLAB XC8 C Compiler V2.10
Build date: Jul 30 2019
Part Support Version: 2.10
Copyright (C) 2019 Microchip Technology Inc.
C:\Users\Norma\Downloads\V1.3_230207.h:
549: #warning WS2811 Timings are less than 10 instructions, timing may be incorrect at the current clock speed
^ (162) #warning: WS2811 Timings are less than 10 instructions, timing may be incorrect at the current clock speed (warning)
C:\Users\Norma\Downloads\V1.3_230207.h:
724: 0x0101
^ (195) expression syntax
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1
Autoclose turned off
C:\Users\Norma\Downloads>"C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\bin\xc8.exe" --chip=16F18857 "V1.3_230207.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\pic\bin\picc --chip=16F18857 V1.3_230207.c --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
Microchip MPLAB XC8 C Compiler V2.10
Build date: Jul 30 2019
Part Support Version: 2.10
Copyright (C) 2019 Microchip Technology Inc.
C:\Users\Norma\Downloads\V1.3_230207.h:
549: #warning WS2811 Timings are less than 10 instructions, timing may be incorrect at the current clock speed
^ (162) #warning: WS2811 Timings are less than 10 instructions, timing may be incorrect at the current clock speed (warning)
C:\Users\Norma\Downloads\V1.3_230207.h:
724: 0x0101
^ (195) expression syntax
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1
Autoclose turned off
-
- Matrix Staff
- Posts: 1253
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 167 times
- Been thanked: 277 times
Re: PIC16F project not compiling to HEX
It looks like a bug in one of the components. There should be a library update for this soon.
-
- Matrix Staff
- Posts: 1253
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 167 times
- Been thanked: 277 times
Re: PIC16F project not compiling to HEX
Sorry - my mistake. It's not a bug in the component. It's because comments have been added to the LUT data which stop the compiler seeing the commas.
To fix this, put the commas straight after the values and before your comments like this:
Code: Select all
0x0011 //Make EEProm Valid,
0x0101 //RampStart,
0x0296 //RampTime,
0x0302 //Standby,
0x0401 //AutoNull,
Code: Select all
0x0011, //Make EEProm Valid
0x0101, //RampStart
0x0296, //RampTime
0x0302, //Standby
0x0401, //AutoNull
Re: PIC16F project not compiling to HEX
Hi Steve,
Thanks for looking in.
It's not working for me. Took out all comments but still the same error..
Registered to: pschoon (51737870)
Licence key: PxxxxA
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\" 16F18857 "D:\SC-Server\Projecten\xx\xx\Flowcode\V1.3_230207\FC10\Test\" "V1.3_230301"
D:\SC-Server\Projecten\xx\xx\Flowcode\V1.3_230207\FC10\Test>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF67459835899A0D46BD3B6AACB92DE4D84759EBB5079CA9DA2D2BBCDAE2A4D1C56CD1580BF57461C3AC48896F1350CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE49AB5BB4E7889ABE01CC1B191673976A728A9FC6E025EAD10C9FBA1F01A7E45B08B65E7F68830DD9
D:\SC-Server\Projecten\Airtender\VacuumMeter\Flowcode\V1.3_230207\FC10\Test>REM REVISION: 1.0
D:\SC-Server\Projecten\Airtender\VacuumMeter\Flowcode\V1.3_230207\FC10\Test>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC
D:\SC-Server\Projecten\Airtender\VacuumMeter\Flowcode\V1.3_230207\FC10\Test>REM DATE: 08\08\2022
D:\SC-Server\Projecten\Airtender\VacuumMeter\Flowcode\V1.3_230207\FC10\Test>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat
D:\SC-Server\Projecten\Airtender\VacuumMeter\Flowcode\V1.3_230207\FC10\Test>"C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\bin\xc8.exe" --chip=16F18857 "V1.3_230301.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\pic\bin\picc --chip=16F18857 V1.3_230301.c --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
Microchip MPLAB XC8 C Compiler V2.10
Build date: Jul 30 2019
Part Support Version: 2.10
Copyright (C) 2019 Microchip Technology Inc.
D:\SC-Server\Projecten\Airtender\VacuumMeter\Flowcode\V1.3_230207\FC10\Test\V1.3_230301.h:
558: #warning WS2811 Timings are less than 10 instructions, timing may be incorrect at the current clock speed
^ (162) #warning: WS2811 Timings are less than 10 instructions, timing may be incorrect at the current clock speed (warning)
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_RMT.c:
67: void FC_CAL_RMT_TX_1 (void);
(984) type redeclared ^
^ (1098) conflicting declarations for variable "FC_CAL_RMT_TX_1" (C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_RMT.c:67)
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1
Autoclose turned off
FINISHED
Thanks for looking in.
It's not working for me. Took out all comments but still the same error..
Registered to: pschoon (51737870)
Licence key: PxxxxA
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\" 16F18857 "D:\SC-Server\Projecten\xx\xx\Flowcode\V1.3_230207\FC10\Test\" "V1.3_230301"
D:\SC-Server\Projecten\xx\xx\Flowcode\V1.3_230207\FC10\Test>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF67459835899A0D46BD3B6AACB92DE4D84759EBB5079CA9DA2D2BBCDAE2A4D1C56CD1580BF57461C3AC48896F1350CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE49AB5BB4E7889ABE01CC1B191673976A728A9FC6E025EAD10C9FBA1F01A7E45B08B65E7F68830DD9
D:\SC-Server\Projecten\Airtender\VacuumMeter\Flowcode\V1.3_230207\FC10\Test>REM REVISION: 1.0
D:\SC-Server\Projecten\Airtender\VacuumMeter\Flowcode\V1.3_230207\FC10\Test>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC
D:\SC-Server\Projecten\Airtender\VacuumMeter\Flowcode\V1.3_230207\FC10\Test>REM DATE: 08\08\2022
D:\SC-Server\Projecten\Airtender\VacuumMeter\Flowcode\V1.3_230207\FC10\Test>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat
D:\SC-Server\Projecten\Airtender\VacuumMeter\Flowcode\V1.3_230207\FC10\Test>"C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\bin\xc8.exe" --chip=16F18857 "V1.3_230301.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\pic\bin\picc --chip=16F18857 V1.3_230301.c --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
Microchip MPLAB XC8 C Compiler V2.10
Build date: Jul 30 2019
Part Support Version: 2.10
Copyright (C) 2019 Microchip Technology Inc.
D:\SC-Server\Projecten\Airtender\VacuumMeter\Flowcode\V1.3_230207\FC10\Test\V1.3_230301.h:
558: #warning WS2811 Timings are less than 10 instructions, timing may be incorrect at the current clock speed
^ (162) #warning: WS2811 Timings are less than 10 instructions, timing may be incorrect at the current clock speed (warning)
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_RMT.c:
67: void FC_CAL_RMT_TX_1 (void);
(984) type redeclared ^
^ (1098) conflicting declarations for variable "FC_CAL_RMT_TX_1" (C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_RMT.c:67)
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1
Autoclose turned off
FINISHED
-
- Matrix Staff
- Posts: 1451
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 512 times
- Been thanked: 472 times
Re: PIC16F project not compiling to HEX
Hello.
When I compile your project file I get:
This means your target device has not got enough memory free.
After modifying the default xc8 batch file I got:
That is a large project taking lots of memory.
To Replace the batch file:
Browse to this location using file explorer, it's hidden by default so just paste the link into your address bar.
Rename the pic_xc8_comp.bat to something like pic_xc8_comp ORG.bat, so it can be kept.
Extract the contents of the attached zip file into the above directory, then recompile.
I suspect you are getting a different result to other people as your components might not be upto date?
Make sure the Flowcode component library is fully up to date by Help>Library Updates... Change the Files in-use to full database. After updating reload your project
When I compile your project file I get:
Code: Select all
0: (1347) can't find 0x2 words (0x2 withtotal) for psect "stringtext108" in class "STRCODE" (largest unused contiguous range 0x1)
updated 32-bit floating-point routines might trigger "can't find space" messages appearing after updating to this release; consider using the smaller 24-bit floating-point types
0: (1347) can't find 0x2 words (0x2 withtotal) for psect "stringtext109" in class "STRCODE" (largest unused contiguous range 0x1)
0: (1347) can't find 0x2 words (0x2 withtotal) for psect "stringtext110" in class "STRCODE" (largest unused contiguous range 0x1)
(908) exit status = 1
After modifying the default xc8 batch file I got:
Code: Select all
Program space used 752Ah ( 29994) of 8000h words ( 91.5%)
Data space used C61h ( 3169) of 1000h bytes ( 77.4%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Data stack space used 0h ( 0) of 382h bytes ( 0.0%)
Configuration bits used 5h ( 5) of 5h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
To Replace the batch file:
Browse to this location using file explorer, it's hidden by default so just paste the link into your address bar.
Code: Select all
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch
Extract the contents of the attached zip file into the above directory, then recompile.
I suspect you are getting a different result to other people as your components might not be upto date?
Make sure the Flowcode component library is fully up to date by Help>Library Updates... Change the Files in-use to full database. After updating reload your project
- Attachments
-
- pic_xc8_comp.zip
- (842 Bytes) Downloaded 43 times
Martin
-
- Matrix Staff
- Posts: 1451
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 512 times
- Been thanked: 472 times
Re: PIC16F project not compiling to HEX
The batch file has now been pushed onto the update system.
So there is no need to download the zip file.
Just do a full database update as described in my previous post, then the project should compile for you.
As this has not been a bug, I have moved this topic from the bugs section.
So there is no need to download the zip file.
Just do a full database update as described in my previous post, then the project should compile for you.
As this has not been a bug, I have moved this topic from the bugs section.
Martin
Re: PIC16F project not compiling to HEX
Hi,
I did a full database update and YES it works.
Many thanks..
I did a full database update and YES it works.
Many thanks..