Skip to content

Writing to on-board flash on a NRF device while using bluetooth crashes the controller #26

@dnlwgnd

Description

@dnlwgnd

Hi,
today I tried to integrate TinyFS into my application that runs on a NRF52840 and primarily uses BLE to advertise some sensorvalues.
Occasionally I want to store a value in flash, that I can read back at next boot. TinyFS seemed to allow me to do that while also not worrying about rotating flash pages.
Alas, I found that TinyFS works in general, but not if I have the bluetooth adapter enabled. I followed the example in Tinyfs, ie. I formated the filesystem, then mouted, then opened a file and eventually write to it. If the bluetooth adapter is enabled the controller crashes without even returning an error when formatting or writing to a file.
I am no expert in NRF internals, but aparently one is supposed to call special functions to access the flash while the softdevice is being used (https://devzone.nordicsemi.com/f/nordic-q-a/20489/ble-and-flash-write-problem).
Can anything be done about this problem? Any hints appreciated.
kind regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions