tags: File system SPI FLASH File system porting
First, the transplant step
Note: The development platform used: STM32F103ZET6
1. Download the LittleFS source package:https://github.com/ARMmbed/littlefs
2. Copy lfs.h, lfs.c, lfs_util.h, lfs_util.c from the source package to the project.
3. Add the following code


4, the following is the W25Q64 part of the code

5, LittleFS test program
Erase the entire flash before mounting the file system, otherwise the mount will not be successful.

Finally, I hope everyone can share the dry goods and improve together! ! ! ! ! ! ! !
1 Introduction W25Q64 is a large-capacity SPI FLASH product launched by Winbond, with a capacity of 8M. The 25Q series devices far exceed ordinary serial flash mem...
1. Hardware connection W25Q64 will8M The capacity is divided into128 blocks (Block), Each block size is64K bytes, Each block is divided into16 sectors (Sector), Each sector4K bytes. W25Q64The minimum ...
0 Introduction The key characteristics of the beginning of Littlefs design are: (1) low resource consumption; (2) Power-down protection; (3) Write a balance, The two characteristics of (2) and (3) are...
Overview A small fault security file system designed for microcontroller. Power recovery capacity: Design to deal with random power failures. All file operations have a strong copy of the time when wr...
reference document Refer to RTT official littlefs migration document; Before use, transplant fal first, see "stm32f103rc on-chip Flash using FAL library configuration instructions". https://...
This article records in detail how to use STM32CubeMX to configure STM32G070RBT6 hardware SPI peripherals to communicate with SPI Flash (W25Q64). 1. Preparation Hardware preparation Development board ...
F411-weact (1) SPI drives external Flash (W25Q64) Hardware resource introduction F411-weact development board W25Q64 STM32 initialization Initialization clock Peripheral initialization Generate files ...
Article catalog Instruction in the manual Read Flash ID function Read Device ID Sector erase Write Flash Write Whole page Not fixed data Read data Instruction in the manual The first column represents...
Code drawing on the "14-SPI-read and write serial Flash (W25Q128)" in the routine of the STM32F407. There is the following differences: 1. The chip is changed from STM32F407 to STM32F405; 2....
Format a file system in Flash ...