Pico Mounting SD Card

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Pico Mounting SD Card

Post by Roberthh » Mon Sep 26, 2022 1:45 pm

No. One would use flush() in a sequence of writes to ensure, that all data from the cache has been written, but the file should be kept open for further writes.

User avatar
jcf
Posts: 60
Joined: Wed Mar 03, 2021 11:14 am

Re: Pico Mounting SD Card

Post by jcf » Mon Sep 26, 2022 1:55 pm

For my Analog logger project I always use this sequence:
- open file
- write data
- close file.

The idea was to avoid corrupt files.
Is there any inconvenient when doing it like this with an SD card?

Post Reply