File system for External SPI Flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

File system for External SPI Flash

1,517 Views
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 

Tags (3)
0 Kudos
Reply
4 Replies

1,505 Views
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 Kudos
Reply

1,472 Views
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 Kudos
Reply

1,465 Views
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 Kudos
Reply

1,460 Views
ujwal_kumar_N_L
Contributor III
Thank you ,will check and let you know .
0 Kudos
Reply