RPi File Component

Use this section to discuss your embedded Flowcode projects.
Post Reply
rotaxmax55
Posts: 5
http://meble-kuchenne.info.pl
Joined: Wed May 31, 2023 9:57 am

Flowcode v10 RPi File Component

Post 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.
Attachments
RPi_NVS_Test_190923.fcfx
(7.46 KiB) Downloaded 261 times

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: RPi File Component

Post 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 7358 times
Martin

rotaxmax55
Posts: 5
Joined: Wed May 31, 2023 9:57 am

Re: RPi File Component

Post by rotaxmax55 »

OK, thanks, rolling back to revision 1 allows compile to succeed.

rotaxmax55
Posts: 5
Joined: Wed May 31, 2023 9:57 am

Re: RPi File Component

Post 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.
Attachments
RPi_NVS_Test_200923.fcfx
(8.56 KiB) Downloaded 265 times

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: RPi File Component

Post 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.

rotaxmax55
Posts: 5
Joined: Wed May 31, 2023 9:57 am

Re: RPi File Component

Post 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 7285 times
I am unable to download and update this component.

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: RPi File Component

Post by BenR »

Many apologies, should be resolved for you now.

Post Reply