Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

General • Re: How to use pico-littlefs on a secondary data partition with an A/B firmware setup on RP2350?

$
0
0
Better to have a RAM based cache (as I've seen in some implementations), and do larger sequential reads/writes, where QSPI is more efficient than short random accesses.
I don't suppose you, or anyone else, has an example of how to read multiple bytes direct via QSPI/QMI ? I Googled but haven't found the secret sauce yet.

I presume it's going to be something like this, but more correct, and multi-core and thread safe though that's not so important to start with -

Code:

void __not_in_flash_func(read_flash_block)(uint8_t * adr) {    uint32_t ints = save_and_disable_interrupts();    txbuf[0] = FAST_READ_QUAD_IO;    flash_do_cmd(txbuf, rxbuf, BUF_SIZE);    restore_interrupts(ints);}

Statistics: Posted by hippy — Tue Sep 02, 2025 8:20 pm



Viewing all articles
Browse latest Browse all 8013

Trending Articles