cancel
Showing results for 
Search instead for 
Did you mean: 

does anyone know on 'LITTLE File System' ?

Fish
Associate II

hi,

i'm porting of little file system in to the m7 b/d

after the porting task is done, it can not be operated properly.

it prints to the console 'corrupted dir pair at 0x0 0x1'

i don't know why this print message..

here is my lfs settings

#define LFS_READ_SIZE               32

#define LFS_PROG_SIZE               32

#define LFS_STM32F7_GRAN            2048

#define LFS_BLOCK_CNT               4

#define LFS_CACHE_SIZE              512

#define LFS_LOOKAHEAD_SIZE          512

#define LFS_BLOCK_CYCLES            500

// configuration of the filesystem is provided by this struct

const struct lfs_config cfg = {

    .context = "stm32f746",

   

    // block device operations

    .read  = hal_block_device_read,

    .prog  = hal_block_device_prog,

    .erase = hal_block_device_erase,

    .sync  = hal_block_device_sync,

    // block device configuration

    .read_size      = LFS_READ_SIZE,

    .prog_size      = LFS_PROG_SIZE,

    .block_size     = LFS_STM32F7_GRAN,

    .block_count    = LFS_BLOCK_CNT,

    .cache_size     = LFS_CACHE_SIZE,    

    .lookahead_size = LFS_CACHE_SIZE,    

    .block_cycles   = LFS_BLOCK_CYCLES,

};

any feedback plz..

thanks

1 REPLY 1
Pavel A.
Evangelist III

Here you can find a helping hand for your project.