If using SD file system you need a esp-idf newer than 2.1

perryc
Posts: 25
Joined: Fri Feb 17, 2017 1:29 am

If using SD file system you need a esp-idf newer than 2.1

Postby perryc » Fri Sep 01, 2017 4:24 am

Been using esp-idf 2.1 for the last month and thought all was well until I started to come across files had missing or repeated bytes at locations that were a multiple of 512 when writing to a sd card. Found that fwrite() on a file that already had data that was not aligned to 4 bytes, a large fwrite would return the correct number of bytes written but would add or subtract a few bytes at locations that were a multiple of 512. Looks like a July 31/17 push fixes this. Looked at a lot of upstream code before I suspected fwrite was broken, hope this saves someone some time.

Perry

Who is online

Users browsing this forum: Google [Bot] and 160 guests