Skip to content

Wi-SUN causing file corruption and assert erros on LittleFS #11218

@felipeLeast

Description

@felipeLeast

Description

  • What target does this relate to?
    This issue is related to Wi-SUN and LittleFS

  • What toolchain are you using?
    I'm using GCC_ARM as toolchain

  • What tools are you using?
    Mbed-os 5.12.4, mbed compiler and visual studio code as IDE.

  • What is the SHA of Mbed OS?
    73f0963

  • Steps to reproduce

Activate Wi-SUN and littleFS, create some files on littleFS and after a while littleFS files will dissapear or get corrupted.

I'm trying to use littleFS on Wi-SUN project but every time I try to use both together LittleFS get's eventually lost. When I comment the Wi-SUN part of the project it goes smooth. I want to know if the Wi-SUN messes with filesystem at some point, or if the queue event from mbed os could cause problems to the littleFS filesystem.

I've tried to protect my files with a mutex and tried to disable irq on the thread that I write on files (which is not possible to do when writing files).

Besides files corruption sometimes littleFS throws an exception regarding block count, lfs type or pcache block.

Issue request type

[  ] Question
[  ] Enhancement
[x] Bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions