spi flash (W25Q64) Portable File System LittleFS (Author: wenyun Date: 20180907)

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! ! ! ! ! ! ! !

Intelligent Recommendation

SPI Flash-W25Q64 driver debugging under Linux

   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...

SPI topic (two)-STM32 drive FLASH (W25Q64)

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 ...

Littlefs file system

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...

Beginner LittleFS File System

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...

Instructions for transplanting littlefs file system based on RTT system (STM32 on-chip FLASH)

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://...

More Recommendation

STM32CubeMX | 30-Use hardware SPI to read and write FLASH (W25Q64)

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)

F411-weact (1) SPI drives external Flash (W25Q64) Hardware resource introduction F411-weact development board W25Q64 STM32 initialization Initialization clock Peripheral initialization Generate files ...

STM32 uses SPI to read and write Flash (W25Q64 model)

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...

STM32F405+Cubemx Hal Library Read W25Q64 SPI Flash routine

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....

Littlefs Series: Format of the File System

Format a file system in Flash    ...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top