Page 1 of 1

adc2_vref_to_gpio with BLE on

Posted: Thu Oct 26, 2017 11:52 am
by badaboum
Hello,

I'm trying to measure the reference voltage for ADC calibration using adc2_vref_to_gpio(27).

However, this only seems to work until I call esp_bt_controller_enable(ESP_BT_MODE_BTDM). Afterwards, the pin just seems to be floating.

adc2_vref_to_gpio(27) still returns ESP_OK in any case, no matter if it is called before or after esp_bt_controller_enable(ESP_BT_MODE_BTDM).

Is this expected behaviour? Is there a workaround? I'd like for the user to enter the measured reference voltage directly via a BLE app after measuring, so I was hoping to just keep the Vref routing permanently.

Thank you and kind regards.