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.
how to enable bluetooth
Re: how to enable bluetooth
my problem was with setting the target .Case closed.
-
- Posts: 2
- Joined: Mon Nov 29, 2021 4:39 am
Re: how to enable bluetooth
What do you mean by 'set target'?
-
- Posts: 1
- Joined: Tue Nov 29, 2022 3:47 am
Re: how to enable bluetooth
@Senal Chandrasekara I think @nouwon means to run this command:
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?
Code: Select all
idf.py set-target <devicename>
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?
-
- Posts: 9708
- Joined: Thu Nov 26, 2015 4:08 am
Re: how to enable bluetooth
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: fengcai and 79 guests