Skip to content

esp_bt_controller_init error 259 on esp-idf project with arduino as component #3436

Closed
@manuprendlair

Description

@manuprendlair

I have an esp-idf project with arduino as components.
I try the ble uart example. Evrything compile now.
But on serial console I have this message when I run the example:

[E][BLEDevice.cpp:356] init(): esp_bt_controller_init: rc=259 Unknown ESP_ERR error.

I found this error come from

errRc = esp_bt_controller_init(&bt_cfg); (line 354)

and in esp_bt_controller_init method, the error come from esp-idf file : components\bt\bt.c, line 1040:

   //if all the bt available memory was already released, cannot initialize bluetooth controller
 if (btdm_dram_available_region[0].mode == ESP_BT_MODE_IDLE) {
        return ESP_ERR_INVALID_STATE;
    }

I use the sdkconfig from the espressif/esp 32 arduino core and (this time) the esp-idf component is the same who was use to compile the arduino core (comit id : d3e562907).

If I test the ble example in a pure arduino project, the example work and I am able to discover the uart service on my phone

Now I dont know where to search.

Emmanuel
From France.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions