Compilation of hex-file or programming fails
Posted: Thu Mar 26, 2020 1:21 pm
Hi there,
We've just build our first project with flowcode for a PIC16F527. It works fine in the simulator, but generating a hex-file or programming the chip does not work.
When I try to generate the hex-file I get this error message:
Target folder: C:\Users\Laser\Dropbox\BEN_MA~1\ELEKTR~1\FlowCode
Source name: C:\Users\Laser\Dropbox\Ben_Mark_Peter_Austauschordner\Elektronisches Relais\FlowCode\ElLastRelais.fcfx
Title: ELR-CoolRide
Description: Elektronisches LastRelais "SchaltBox".
Device: PIC.16F.16F527
Generated by: Flowcode v8.2.2.15
Date: Wednesday, March 25, 2020 16:27:30
Users: 1
Registered to: XXX
License key: XXX
https://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic\batch\pic_xc8_comp.bat 16F527 "C:\Users\Laser\Dropbox\BEN_MA~1\ELEKTR~1\FlowCode\" "ElLastRelais"
C:\Users\Laser\Dropbox\BEN_MA~1\ELEKTR~1\FlowCode>C:\PROGRA~2\Flowcode\Common\COMPIL~1\pic\batch\..\bin\xc8.exe --chip=16F527 "ElLastRelais.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
Microchip MPLAB XC8 C Compiler (Free Mode) V1.45
Build date: Nov 15 2017
Part Support Version: 1.45
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c:
79: #warning "String temporary variables not defined to save on limited RAM space on your current target device"
(162) #warning: "String temporary variables not defined to save on limited RAM space on your current target device" ^ (warning)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_IO.h:
99: #warning "Reduced functionality IO on your target device, components such as Software I2C and SPI may not compile correctly"
(162) #warning: "Reduced functionality IO on your target device, components such as Software I2C and SPI may not compile correctly" ^ (warning)
ElLastRelais.c: __EEPROM_DATA()
171: __EEPROM_DATA(0,1,0x2,0x03,'A','b','H','e');
^ (194) ")" expected
172: __EEPROM_DATA('l','l','o',0xFF,0xFF,0xFF,0xFF,0xFF);
^ (194) ")" expected
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_ADC.c: FC_CAL_ADC_Enable()
6453: tris_reg = &TRISC;
^ (1418) attempt to read "control" qualified object which is Write-Only
^ (1418) attempt to read "control" qualified object which is Write-Only
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_EEPROM.c: FC_CAL_EE_Read()
257: EECON1bits.EEPGD = 0;
^ (192) undefined identifier "EECON1bits"
^ (196) struct/union required
258: EECON1bits.CFGS = 0;
^ (196) struct/union required
260: EECON1bits.RD = 1;
^ (196) struct/union required
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_EEPROM.c: FC_CAL_EE_Write()
275: while ((EECON1bits.WR));
^ (192) undefined identifier "EECON1bits"
^ (196) struct/union required
285: EECON1bits.EEPGD = 0;
^ (196) struct/union required
286: EECON1bits.CFGS = 0;
^ (196) struct/union required
288: EECON1bits.WREN = 1;
^ (196) struct/union required
291: EECON2 = 0x55;
^ (192) undefined identifier "EECON2"
293: EECON1bits.WR = 1;
^ (196) struct/union required
294: while ((EECON1bits.WR));
^ (196) struct/union required
297: EECON1bits.WREN = 0;
^ (196) struct/union required
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
C:\Program Files (x86)\Flowcode\Common\Compilers\pic\batch\pic_xc8_comp.bat reported error code 1
Autoclose turned off
FINISHED
Any ideas what's the issue here?
I'd really appreciate your contributions, since all this FlowCode stuff is new and unknown to me.
Many thanks in advance
Gwain
We've just build our first project with flowcode for a PIC16F527. It works fine in the simulator, but generating a hex-file or programming the chip does not work.
When I try to generate the hex-file I get this error message:
Target folder: C:\Users\Laser\Dropbox\BEN_MA~1\ELEKTR~1\FlowCode
Source name: C:\Users\Laser\Dropbox\Ben_Mark_Peter_Austauschordner\Elektronisches Relais\FlowCode\ElLastRelais.fcfx
Title: ELR-CoolRide
Description: Elektronisches LastRelais "SchaltBox".
Device: PIC.16F.16F527
Generated by: Flowcode v8.2.2.15
Date: Wednesday, March 25, 2020 16:27:30
Users: 1
Registered to: XXX
License key: XXX
https://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic\batch\pic_xc8_comp.bat 16F527 "C:\Users\Laser\Dropbox\BEN_MA~1\ELEKTR~1\FlowCode\" "ElLastRelais"
C:\Users\Laser\Dropbox\BEN_MA~1\ELEKTR~1\FlowCode>C:\PROGRA~2\Flowcode\Common\COMPIL~1\pic\batch\..\bin\xc8.exe --chip=16F527 "ElLastRelais.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
Microchip MPLAB XC8 C Compiler (Free Mode) V1.45
Build date: Nov 15 2017
Part Support Version: 1.45
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\internals.c:
79: #warning "String temporary variables not defined to save on limited RAM space on your current target device"
(162) #warning: "String temporary variables not defined to save on limited RAM space on your current target device" ^ (warning)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_IO.h:
99: #warning "Reduced functionality IO on your target device, components such as Software I2C and SPI may not compile correctly"
(162) #warning: "Reduced functionality IO on your target device, components such as Software I2C and SPI may not compile correctly" ^ (warning)
ElLastRelais.c: __EEPROM_DATA()
171: __EEPROM_DATA(0,1,0x2,0x03,'A','b','H','e');
^ (194) ")" expected
172: __EEPROM_DATA('l','l','o',0xFF,0xFF,0xFF,0xFF,0xFF);
^ (194) ")" expected
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_ADC.c: FC_CAL_ADC_Enable()
6453: tris_reg = &TRISC;
^ (1418) attempt to read "control" qualified object which is Write-Only
^ (1418) attempt to read "control" qualified object which is Write-Only
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_EEPROM.c: FC_CAL_EE_Read()
257: EECON1bits.EEPGD = 0;
^ (192) undefined identifier "EECON1bits"
^ (196) struct/union required
258: EECON1bits.CFGS = 0;
^ (196) struct/union required
260: EECON1bits.RD = 1;
^ (196) struct/union required
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_EEPROM.c: FC_CAL_EE_Write()
275: while ((EECON1bits.WR));
^ (192) undefined identifier "EECON1bits"
^ (196) struct/union required
285: EECON1bits.EEPGD = 0;
^ (196) struct/union required
286: EECON1bits.CFGS = 0;
^ (196) struct/union required
288: EECON1bits.WREN = 1;
^ (196) struct/union required
291: EECON2 = 0x55;
^ (192) undefined identifier "EECON2"
293: EECON1bits.WR = 1;
^ (196) struct/union required
294: while ((EECON1bits.WR));
^ (196) struct/union required
297: EECON1bits.WREN = 0;
^ (196) struct/union required
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
C:\Program Files (x86)\Flowcode\Common\Compilers\pic\batch\pic_xc8_comp.bat reported error code 1
Autoclose turned off
FINISHED
Any ideas what's the issue here?
I'd really appreciate your contributions, since all this FlowCode stuff is new and unknown to me.
Many thanks in advance
Gwain