Hi @EdwinHz,
Thanks for your response.
I’m using the SDK version [2.16.000] for the i.MX RT1170.
Yes, I tried debugging the example and added trace prints inside the LittleFS API calls to see where it fails.
Here’s the log output I’m getting:
Copyright 2024 NXP
LFS>>
LFS>>
LFS>>
LFS>> format yes
lfs.c:5906:trace: lfs_format(200145E8, 20014668 {.context=20014308, .read=2000195D, .prog=200019DD, .erase=20001AA1, .sync=2000E5A5, .read_size=16, .prog_size=256, .block_size=4096, .block_count=1024, .block_cycles=100, .cache_size=256, .lookahead_size=16, .read_buffer=200148E4, .prog_buffer=200149E4, .lookahead_buffer=20014AE4, .name_max=0, .file_max=0, .attr_max=0})
lfs.c:4331:trace: lfs_format_: Starting format operation
lfs.c:4333:trace: lfs_format_: Initializing LFS
lfs.c:4339:trace: lfs_format_: lfs_init successful
lfs.c:4344:trace: lfs_format_: Creating free lookahead
lfs.c:4351:trace: lfs_format_: Free lookahead created
lfs.c:4355:trace: lfs_format_: Allocating root directory
lfs.c:4361:trace: lfs_format_: Root directory allocated
lfs.c:4373:trace: lfs_format_: Preparing superblock (version=131073, block_size=4096, block_count=1024)
lfs.c:4376:trace: lfs_format_: Committing superblock to root dir
lfs.c:4383:trace: lfs_format_: lfs_dir_commit (superblock) failed with err=4294967268
lfs.c:4410:trace: lfs_format_: Entering cleanup (err=4294967268)
lfs.c:4412:trace: lfs_format_: Format operation complete with err=4294967268
lfs.c:5925:trace: lfs_format -> 4294967268
Error formatting LFS: 4294967268
The EVK jumpers are set to their default configuration.
Best regards,
Thusharahan