Page 1 of 1

FC10 COMPILE ERROR

Posted: Wed Feb 15, 2023 9:01 pm
by SILVESTROS
Hello,
when I try to compile a code (Test3) in FC10 using component Storage > File > CSV Read/Write, I get an ERROR...

Microchip MPLAB XC8 C Compiler V2.10
Build date: Jul 30 2019
Part Support Version: 2.10
Copyright (C) 2019 Microchip Technology Inc.
Employing 18F458 errata work-arounds:
* Address 4000h boundary
* Faulty table reads at -40 degrees C
* GOTO instruction at reset vector must be preceded by NOP
* Peripherals can misbehave if BSR = 15
* DAW instruction may improperly clear CARRY bit
* Writes to flash must target opposite side of 4000h boundary
C:\Users\30690\Documents\FLOWCODE9-HELP\TEST3.h:
36: __config("__PROG_CONFIG", "pic18", 0x3, 0xFFFF);
^ (0) Can't find config word 3 used in in __PROG_CONFIG() (warning)
TEST3.c: 547: (1250) could not find space (1000 bytes) for variable _FCL_APPENDEDDATA
(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

pic programmer ..PICKIT3.
chip..PIC18F458...
I get this error only with CSV Read/Wright component...any help?

Re: FC10 COMPILE ERROR

Posted: Thu Feb 16, 2023 9:47 am
by BenR
Hello,

There was a local variable inside the CSV component causing problems and trying to claim too much memory. I have now found a way to remove this variable altogether and pushed the change to the library update system.

Also here is a slightly modified version of your program, you were missing the component to provide the file and so I have added the FAT component for you.
TEST3.fcfx
(13.67 KiB) Downloaded 128 times
The warning about the config setting is interesting, let us know if you have any problems running on hardware and I'll look into it for you.