zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.12k stars 6.21k forks source link

samples: littlefs adafruit_feather_m0_basic_proto #39971

Closed osorioerc closed 2 years ago

osorioerc commented 2 years ago

Hello. I built sample litttlefs . I have this problem. I have used Adafruit Feather M0 RFM95 LoRa Radio (900MHz) board :

Booting Zephyr OS build zephyr-v2.6.0-1485-g881b877eca94 Area 2 at 0x3c000 on FLASH_CTRL for 16384 bytes /lfs mount: 0 /lfs: bsize = 16 ; frsize = 256 ; blocks = 64 ; bfree = 62 /lfs/bootcount stat: -2 FAIL: open /lfs/bootcount: -5 /lfs unmount: 0 [00:00:00.010,000] <0x1b>[0m littlefs: LittleFS version 2.2, disk version 2.0<0x1b>[0m [00:00:00.011,000] <0x1b>[0m littlefs: FS at FLASH_CTRL:0x3c000 is 64 0x100-byte blocks with 512 cycle<0x1b>[0m [00:00:00.011,000] <0x1b>[0m littlefs: sizes: rd 16 ; pr 16 ; ca 64 ; la 32<0x1b>[0m [00:00:00.011,000] <0x1b>[0m littlefs: /lfs mounted<0x1b>[0m [00:00:00.021,000] <0x1b>[1;33m flash_sam0: 32: not a integer number of write blocks<0x1b>[0m [00:00:00.021,000] <0x1b>[1;31m fs: file open error (-5)<0x1b>[0m [00:00:00.024,000] <0x1b>[0m littlefs: /lfs unmounted<0x1b>[0m

prj.conf is :

Copyright (c) 2019 Peter Bigot Consulting, LLC

#

SPDX-License-Identifier: Apache-2.0

#

Optionally force the file system to be recreated

CONFIG_APP_WIPE_STORAGE=y

CONFIG_SOC_FLASH_SAM0=y CONFIG_MPU_ALLOW_FLASH_WRITE=y

fs_dirent structures are big.

CONFIG_MAIN_STACK_SIZE=2048

Let __ASSERT do its job

CONFIG_DEBUG=y

CONFIG_LOG=y

CONFIG_FLASH=y CONFIG_FLASH_MAP=y CONFIG_FLASH_PAGE_LAYOUT=y

CONFIG_FILE_SYSTEM=y CONFIG_FILE_SYSTEM_LITTLEFS=y CONFIG_FUSE_FS_ACCESS=y


github-actions[bot] commented 2 years ago

This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.