Skip to content

Freeze when writing files from Bluetooth HCI event handler #62

@Slion

Description

@Slion

After integrating raspberrypi/pico-sdk#1715 I'm getting a crash when writing files from Bluetooth HCI event handler.
File system is configured with LittleFS from flash on a Pico W.
I'm attempting to replace my own custom flash storage which worked fine from the Bluetooth HCI event handler.
Tried to use save_and_disable_interrupts but that did not help.
Not sure what's going on exactly is it a deadlock somehow or is it a crash.

Writing to files from main or the Bluetooth timer callback works fine it seems.

Switching the btstack configuration from background to poll changes the context in which the Bluetooth HCI handler is run from IRQ to thread. When running from the thread writing to files works fine.

It also shows that not all IRQs are equals. The btstack timer IRQ could write to files but the HCI IRQ could not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions