File system for External SPI Flash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

File system for External SPI Flash

3,064 次查看
ujwal_kumar_N_L
Contributor III

Hi community ,

I am currently working on I2S Audio project ,Im using SPI External Flash for data storage Im able to read data from Flash and send it to I2S Codec .Now I'm trying to implement File system .I found the Fliex_Levelx SDK program .
Specification :

Board :- LPC55S69
Flash:- Winbond W25Q32 -4MB -256 Bytes of page size -4KB sector size-64KB Block size.
SPI:-HSLSPI with DMA (FLEXCOMM
Running in FreeRTOS 

PROBLEM:

  1. Suggest me a simple file system for flash .
  2. Filex SDK I'm unable to format the current Flash 

    status = fx_media_format(&flash_disk, _fx_levelx_driver, (VOID *)NULL,
    (UCHAR *)media_memory, sizeof(media_memory), "FLASH_DISK",
    2, 32, 0, real_sector_count, DEMO_SECTOR_SIZE,
    DEMO_SECTORS_PER_CLUSTER, 1, 1).

    Error im getting is : ERR: levelx NOR flash system error (91)
  3. Im using FreeRTOS and the SDK uses Azure Levelx will there be any problem .
  4. I just need FILE SYSTEM for making the project to run smoothly ,any other driver you guys can suggest .

Thank you and Regards 
UJWAL KUMAR N L

@kbetts @xiangjun_rong @Juan-Rodarte @jesseg 

标记 (3)
0 项奖励
回复
4 回复数

3,052 次查看
ErichStyger
Specialist I

You might have a look at LittleFS (https://github.com/littlefs-project/littlefs ).

I'm using it both for the internal flash and external flash:

https://mcuoneclipse.com/2023/07/04/littlefs-file-system-with-mcu-internal-flash-memory/

I hope this helps,

Erich

0 项奖励
回复

3,019 次查看
ujwal_kumar_N_L
Contributor III

Hello,
I'm unable to find MCU lib in the project and I don't have SDK for the littleFS .Is there any other way I can proceed  with the project .


Thank you and Regards 
UJWAL KUMAR N L

0 项奖励
回复

3,012 次查看
ErichStyger
Specialist I

The McuLib is shared between many projects and is referenced by that project, three levels up here: https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/McuLib

LittleFS is part of that library and already adopted to the LPC55Sxx. You might check your SDK for your device as well, as NXP includes LittleFS in many of their SDK versions too.

0 项奖励
回复

3,007 次查看
ujwal_kumar_N_L
Contributor III
Thank you ,will check and let you know .
0 项奖励
回复