Skip to content

Reduce Bluetooth heap size by building custom version #108

Open
@garageeks

Description

@garageeks

Hi to all,
I need to use BT A2DP while sending some data on Wi-Fi. When used alone, A2DP works fine.
But with Wi-Fi enabled I was getting some crashes.
I was on 2.0.4, I upgraded to 2.0.6 but still getting crashes.
Upon a bit of investigation, my code with Wi-Fi only have 230KB free heap, but when BT is enabled drops to 40KB and when playing music it drops further to 21KB, which is not stable anymore.
I read somewhere it is possible to recompile BT library binary blob to discard unnecessary functions for a specific project.
For instance, I don't need BLE.
Can you give me a hint on how to do it?

Many thanks,
Nick

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