Use this section to discuss your embedded Flowcode projects.
rotaxmax55
Posts: 5 http://meble-kuchenne.info.pl
Joined: Wed May 31, 2023 9:57 am
Post
by rotaxmax55 » Tue Sep 19, 2023 2:51 pm
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 1: error: expected ';' before '}' token
}
^
Error(s) in build!
Any help please.
Attachments
RPi_NVS_Test_190923.fcfx
(7.46 KiB) Downloaded 801 times
medelec35
Matrix Staff
Posts: 1994 Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 630 times
Been thanked: 666 times
Post
by medelec35 » Tue Sep 19, 2023 3:47 pm
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 (27.54 KiB) Viewed 10852 times
Martin
rotaxmax55
Posts: 5 Joined: Wed May 31, 2023 9:57 am
Post
by rotaxmax55 » Wed Sep 20, 2023 12:41 pm
OK, thanks, rolling back to revision 1 allows compile to succeed.
rotaxmax55
Posts: 5 Joined: Wed May 31, 2023 9:57 am
Post
by rotaxmax55 » Wed Sep 20, 2023 3:07 pm
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.
Attachments
RPi_NVS_Test_200923.fcfx
(8.56 KiB) Downloaded 857 times
BenR
Matrix Staff
Posts: 1940 Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 506 times
Been thanked: 689 times
Post
by BenR » Tue Sep 26, 2023 12:15 pm
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.
rotaxmax55
Posts: 5 Joined: Wed May 31, 2023 9:57 am
Post
by rotaxmax55 » Wed Sep 27, 2023 11:39 am
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 (15.76 KiB) Viewed 10779 times
I am unable to download and update this component.
BenR
Matrix Staff
Posts: 1940 Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 506 times
Been thanked: 689 times
Post
by BenR » Wed Sep 27, 2023 10:36 pm
Many apologies, should be resolved for you now.