Bill Greiman
Bill Greiman
Passing a file object by value is always a problem because the entire state of the file directory is cached in the file object. So if you read or write...
I have been playing with constructors and destructors. The move assignment operator looks great for return values. > Then maybe sync() on the source, to flush the cache earlier, in...
One of the main reasons I found the move constructor and assignment operator interesting was to make the copy constructor optional. I thought I could use std::move() to replace a...
Look at the SdFormatter example [here](https://github.com/greiman/SdFat/blob/57900b21d21655c513ef7e344f55e8190e612dcb/examples/SdFormatter/SdFormatter.ino#L95C1-L95C6). This does a very fast erase of all data on the card. I plan to make an SD erase function callable from an app....
You could create a series of per-allocated files. Creating a file and allocating space on an SD can take an arbitrary amount of time since there is no free list...
Sorry about the typo it is pre-allocate. First open an empty file like [this](https://github.com/greiman/SdFat/blob/67e26476f15a3bae5f390d91b6cc01830920c55d/examples/bench/bench.ino#L194). Then allocate a block of contiguous space like [this](https://github.com/greiman/SdFat/blob/67e26476f15a3bae5f390d91b6cc01830920c55d/examples/bench/bench.ino#L219). For best performance a contiguous file write...
> but using number of ring buffers is taking huge space is there any other way to use single ring buffer for all file object. You only need one ring...
> You could maybe have two tasks, with one task setting a flag then opening a file, then clearing the flag. Meanwhile the other task would either write results to...
>1. Could you please tell me if it’s possible to use two SD cards on a single RP2040 (for data copying and other tasks)? You can use many SPI cards...
> Does this apply only to the RP2040? Or does the RP2350 have the same issue with a lack of PIO memory? PIO blocks in the RP2350 have the same...