ESP32, sd-card, file append is not correct

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
stefan.erni
Valued Contributor
Posts: 758
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

ESP32, sd-card, file append is not correct

Post by stefan.erni »

Hi Ben

i did some tests.

Creating a file works well.

appendINTArray not ok. strange data saved

append string not ok. strange text saved

As an example I wrote the string "1234567890".

The result is 10 strange characters in the file.

regards

Stefan

Append string
Snag_172d663.png
Snag_172d663.png (35.18 KiB) Viewed 1031 times
bad test result on file
Snag_1732195.png
Snag_1732195.png (1.63 KiB) Viewed 1031 times
bad test result second time (with lower speed.)
Snag_17a709d.png
Snag_17a709d.png (1.2 KiB) Viewed 1031 times

stefan.erni
Valued Contributor
Posts: 758
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: ESP32, sd-card, file append is not correct

Post by stefan.erni »

Hi Ben

Today I have tested again.
I have written a new program, just to test the file function

append string works
append array is not working correct.
it looks like one byte of the two bytes from an integer is not written correctly to disc.

regards

Stefan

append string is ok
Snag_33e466e2.png
Snag_33e466e2.png (3.78 KiB) Viewed 1011 times
Testprogram
Test_sdcard_buffer1.fcfx
(34.35 KiB) Downloaded 56 times

Post Reply