how to enable bluetooth

nouwon
Posts: 7
Joined: Sat Mar 27, 2021 9:23 am

how to enable bluetooth

Postby nouwon » Sat Mar 27, 2021 9:35 am

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.

nouwon
Posts: 7
Joined: Sat Mar 27, 2021 9:23 am

Re: how to enable bluetooth

Postby nouwon » Sat Mar 27, 2021 6:24 pm

my problem was with setting the target .Case closed.

Senal Chandrasekara
Posts: 2
Joined: Mon Nov 29, 2021 4:39 am

Re: how to enable bluetooth

Postby Senal Chandrasekara » Sun Apr 03, 2022 10:02 am

What do you mean by 'set target'?

jkotheimer9
Posts: 1
Joined: Tue Nov 29, 2022 3:47 am

Re: how to enable bluetooth

Postby jkotheimer9 » Tue Nov 29, 2022 4:06 am

@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?

ESP_Sprite
Posts: 9773
Joined: Thu Nov 26, 2015 4:08 am

Re: how to enable bluetooth

Postby ESP_Sprite » Tue Nov 29, 2022 5:41 am

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.

Who is online

Users browsing this forum: Google [Bot] and 70 guests