Page 1 of 1

ESP32, sd-card, file append is not correct

Posted: Fri Sep 15, 2023 2:48 pm
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 1053 times
bad test result on file
Snag_1732195.png
Snag_1732195.png (1.63 KiB) Viewed 1053 times
bad test result second time (with lower speed.)
Snag_17a709d.png
Snag_17a709d.png (1.2 KiB) Viewed 1053 times

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

Posted: Mon Sep 18, 2023 2:22 pm
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 1033 times
Testprogram
Test_sdcard_buffer1.fcfx
(34.35 KiB) Downloaded 58 times