mcu-tools / mcuboot

Secure boot for 32-bit Microcontrollers!
Apache License 2.0
1.31k stars 666 forks source link

nrf52840 can't mount formatting #711

Closed Narendhar95559 closed 4 years ago

Narendhar95559 commented 4 years ago

[00:00:00.003,601] littlefs: LittleFS version 2.1, disk version 2.0 [00:00:00.003,814] littlefs: FS at NRF_FLASH_DRV_NAME:0xf8000 is 8 0x1000-byte blocks with 512 cycle [00:00:00.003,845] littlefs: sizes: rd 16 ; pr 16 ; ca 64 ; la 32 [00:00:00.003,967] littlefs: Corrupted dir pair at 0 1 [00:00:00.003,967] littlefs: can't mount (LFS -84); formatting [00:00:00.176,269] littlefs: /lfs mounted [00:00:00.178,070] bt_hci_core: HW Platform: Nordic Semiconductor (0x0002) [00:00:00.178,070] bt_hci_core: HW Variant: nRF52x (0x0002) [00:00:00.178,100] bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Versionwrhello log print hello,56,30.760000

iam getting above error and warning can some help me

d3zd3z commented 4 years ago

I'm not aware of any configurations of MCUboot that use littlefs. What RTOS are you using? Does this message occur each time, or only on the first boot? Given how Littlefs works, I would expect this message on the first boot after flash is cleared.

If it is being corrupted each time, one possibility is that the partition layout of the flash has overlaps, and the littlefs is getting overwritten by something else.