You probably remember our discussions about SPIFFS …
It seems that original author, Peter Andersson, did something under STM32, but not with internal Flash, but with SPI external Flash, this still interesting.
On my custom STM32 boards, I have a SPI Flash, so I will take a look at that, but again “time is the missing ingredient” …
Ray
I’m trying to get fast images onto the ILI9341 but SD cards will only go up to 20-25Mhz SPI speed (v2.0. Will go up to 104Mhz? on v3.01 but don’t know if STM32 would support this version…) while i.e. sst26vf064b will go up to 104Mhz.
The ideal scenario would be to get DMA running directly from one SPI to the other ![]()
But this might come in handy.
Only downside is the flash programming. SD card is more practical for copying files from the PC.
<…>
Which “power implications” you’ve faced with SDCard ?
But this only helps for the larger F103 MCUs that have SDIO
Ummmm…
hacky + HAL = hHAL
A new acronym is born. ![]()
It has POSIX api- style functions but of course not every function is implemented. There’s no support for directories and every file is considered to live in “root” folder. It has read and write caches implemented with some sort of wear-leveling.
In summary all you need to implement for SPIFFS to work is functions for: erase, read and write.
It would be interesting to get this working under BP or Maple Mini using _internal flash_. It would be nice to have small filesystem. depending on your code size it should be possible to say allocate 96kB or even more for file system. I was thinking to start from library under STm32F1 / libraries / EEPROM library as it has ready functions to read/write/erase flash on STM32. I guess it should be possible to implement erase/write and read operations.
So, well equipped for SPIFFS
We may test then..
It would be interesting to get this working under BP or Maple Mini using _internal flash_.
The internal flash has usually much lower write endurance as the external ones.. Maybe 1:100..
PS:
The 103ZET internal flash is rated 10.000 over the entire temp range
The external SPI ie. W25X40 is rated 1.000.000
| defined(__STM32F1__)| defined(__STM32F1__)


