Page 1 of 1

how to enable bluetooth

Posted: Sat Mar 27, 2021 9:35 am
by nouwon
static assertion failed with "please enable bluetooth in menuconfig to use bt.h".

I get this error when I try to build bluetooth spp server demo.
my sdkconfig.defaults is as follows;
# Override some defaults so BT stack is enabled
# in this example

#
# BT config
#
CONFIG_BT_ENABLED=y
CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y
CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=n
CONFIG_BTDM_CTRL_MODE_BTDM=n
#
# ESP32-specific config
#
CONFIG_ESP32_ENABLE_STACK_BT=y
# CONFIG_ESP32_ENABLE_STACK_NONE is not set
CONFIG_MEMMAP_BT=y

Any help will be highly appreciated.

Re: how to enable bluetooth

Posted: Sat Mar 27, 2021 6:24 pm
by nouwon
my problem was with setting the target .Case closed.

Re: how to enable bluetooth

Posted: Sun Apr 03, 2022 10:02 am
by Senal Chandrasekara
What do you mean by 'set target'?

Re: how to enable bluetooth

Posted: Tue Nov 29, 2022 4:06 am
by jkotheimer9
@Senal Chandrasekara I think @nouwon means to run this command:

Code: Select all

idf.py set-target <devicename>
I'm having a similar issue with the esp32s2 development board. I was able to set the target successfully with "idf.py set-target esp32s2"

I then tried to enable bluetooth in my sdkconfig using the config menu (idf.py menuconfig). But none of the bluetooth options were enabled. I had to use the "[A] Toggle show-all mode" to even see the bluetooth options. Any idea why these may be disabled? Is the esp32s2 dev board not compatible with this sdk?

Re: how to enable bluetooth

Posted: Tue Nov 29, 2022 5:41 am
by ESP_Sprite
jkotheimer9 wrote:
Tue Nov 29, 2022 4:06 am
Is the esp32s2 dev board not compatible with this sdk?
Your issue probably is that the ESP32S2 hardware does not support Bluetooth at all; it's a WiFi-only chip.