spikeyamk

Results 10 comments of spikeyamk

> [The line in question](https://github.com/littlefs-project/littlefs/blob/f53a0cc961a8acac85f868b431d2f3e58e447ba3/lfs.c#L262), where `lfs_block_t` is `uint32_t`. > > I haven't seen this before. Theoretically, LittleFS should be able to handle files up to size ~2GB. Not to...

> IDK if this is possible in your setup, but can you try something similar with SPI flash? That then may point to if it's a generic problem, or an...

So, the funny thing is when I do something like this in a loop: ``` size_t integrity_test(const size_t max_bin_pow) { for(size_t i = 1; i < (2

> Hmmm, this looks like an SPI driver issue to me. See: [espressif/esp-idf#7804](https://github.com/espressif/esp-idf/issues/7804) > > Somehow you might just transmitted more than 32KB for a single transaction underneath and cause...

> Maybe try SDMMC interface and see if the issue still occurs? I will have a closer look later today. So it seems like only ESP32S3 and ESP32 supports this...

> Can confirm this is unlikely to be a littlefs issue. littlefs also doesn't support cross-block/cross-sector writes at the moment so [espressif/esp-idf#7804](https://github.com/espressif/esp-idf/issues/7804) seems a bit unlikely if I understand the...

> > So I guess the sector size is 512 and total sectors 3911680. > > This is similar to our 512 byte sector SD card (those XTX SD NAND...

No other version of ESP-IDF seems to fix this. Also I found another error: `E (27560) esp_littlefs: ./managed_components/joltwallet__littlefs/src/littlefs/lfs.c:1366:error: Corrupted dir pair at {0x22dc5, 0x22dc6}` When creating a file with `FILE*...

Also on this [line](https://github.com/joltwallet/esp_littlefs/blob/fd64733cdf248c7a7eb207db7d28124f8857fe0b/src/littlefs_sdmmc.c#L22) you do some weird thing instead of using the lsf_config_t* c function parameter passed to the function. How do you actually write data to the sectors?...

Ok, so I tried a bunch of different things: 1. I looked more closely at the code of esp_littlefs, but got confused by all this wrapping sdmmc API around littlefs...