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.c1: error: expected ';' before '}' token
}
^
Error(s) in build!
Any help please.
RPi File Component
-
- Posts: 5
- http://meble-kuchenne.info.pl
- Joined: Wed May 31, 2023 9:57 am
-
- Posts: 5
- Joined: Wed May 31, 2023 9:57 am
-
- Posts: 5
- Joined: Wed May 31, 2023 9:57 am
Re: RPi File Component
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.
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.
- Attachments
-
- RPi_NVS_Test_200923.fcfx
- (8.56 KiB) Downloaded 300 times
-
- Matrix Staff
- Posts: 1756
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 446 times
- Been thanked: 606 times
Re: RPi File Component
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.
Please let us know if this makes any improvement for you.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Posts: 5
- Joined: Wed May 31, 2023 9:57 am
Re: RPi File Component
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:
I am unable to download and update this component.
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:
I am unable to download and update this component.
-
- Matrix Staff
- Posts: 1756
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 446 times
- Been thanked: 606 times
Re: RPi File Component
Many apologies, should be resolved for you now.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel