Page 1 of 1

RPi File Component

Posted: Tue Sep 19, 2023 2:51 pm
by rotaxmax55
I cannot get the RPi File Component to build.

I have updated component to latest versions.

Created the simplest of projects to test after I experienced difficulties but even this will not build, I get the following errors:

Building RPi_NVS_Test_190923
RPi_NVS_Test_190923.c:223:29: error: missing terminating " character
FCI_SHEAD("$(srcdir)",10, "\",1, FCL_FILEPATH,200);
^~~~~~~~~~~~~~~~~~~~~~~~~
RPi_NVS_Test_190923.c:225:3: error: expected expression before 'switch'
switch (FCV_04651_File_RPI1__FILE_IDX)
^~~~~~
FCI_SHEAD("$(srcdir)",10, "\",1, FCL_FILEPATH,200);
^~~~~~~~~
from RPi_NVS_Test_190923.c:36:
^~~~~~~~~
RPi_NVS_Test_190923.c:331:1: error: expected ';' before '}' token
}
^
RPi_NVS_Test_190923.c:974:29: error: missing terminating " character
FCI_SHEAD("$(srcdir)",10, "\",1, FCL_FILEPATH,200);
^~~~~~~~~~~~~~~~~~~~~~~~~
RPi_NVS_Test_190923.c:976:3: error: expected expression before 'switch'
switch (FCV_04651_File_RPI1__FILE_IDX)
^~~~~~
FCI_SHEAD("$(srcdir)",10, "\",1, FCL_FILEPATH,200);
^~~~~~~~~
from RPi_NVS_Test_190923.c:36:
^~~~~~~~~
RPi_NVS_Test_190923.c:1084:1: error: expected ';' before '}' token
}
^
Error(s) in build!


Any help please.

Re: RPi File Component

Posted: Tue Sep 19, 2023 3:47 pm
by medelec35
Hello.
Until the cause is investigated, can you try rolling back to revision 1?
To rollback you can follow the instructions here.
Roolback Component.png
Roolback Component.png (27.54 KiB) Viewed 7555 times

Re: RPi File Component

Posted: Wed Sep 20, 2023 12:41 pm
by rotaxmax55
OK, thanks, rolling back to revision 1 allows compile to succeed.

Re: RPi File Component

Posted: Wed Sep 20, 2023 3:07 pm
by rotaxmax55
Moving forwards with the project now that I can compile I have created a simple test of the file function:

1. Create a file
2. Open the file
3. Append bytes to the file
4. Close the file

This compiles and transfers to the RPi and appears to run, Putty session opens then closes.
I can see the project on RPi but I can't find the file that it should have created having searched the whole RPi filesystem.

Of course now I don't know if the RPi file component is too out of date to work.

Re: RPi File Component

Posted: Tue Sep 26, 2023 12:15 pm
by BenR
Hopefully solved for you now, I've fixed the component and also pushed a fix to the RPI File CAL code.

Please let us know if this makes any improvement for you.

Re: RPi File Component

Posted: Wed Sep 27, 2023 11:39 am
by rotaxmax55
Hi Ben

Something's gone wrong. I can't build but with a different error:

C:\Users\david\OneDrive\CE Jobs\Agri\Autotrap 2023>REM DIR: FCD\RPI\batch\rbuild.bat
Building RPi_NVS_Test_200923
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\includes.c:407:0,
from RPi_NVS_Test_200923.c:102:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\RPI\RPI_CAL_File.c:45:25: fatal error: esp_vfs_fat.h: No such file or directory
#include "esp_vfs_fat.h"
^
compilation terminated.
Error(s) in build!

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\RPI\batch\rbuild.bat reported error code 0x1


And when I try to update the components I get a 'not genuine' version shown for, I think, the same component:
2023-09-27.png
2023-09-27.png (15.76 KiB) Viewed 7482 times
I am unable to download and update this component.

Re: RPi File Component

Posted: Wed Sep 27, 2023 10:36 pm
by BenR
Many apologies, should be resolved for you now.