Build error when switching target from esp32c3 to esp32s3

elfrances
Posts: 7
Joined: Sun Oct 01, 2023 3:48 pm

Build error when switching target from esp32c3 to esp32s3

Postby elfrances » Tue Oct 10, 2023 4:23 pm

Hi there!

I have a project that uses nimBLE building and running OK on the esp32c3 target. As I need extra flash memory, I decided to switch to the esp32s3. But when I try to build the project for the new esp32s3 target, I get this compilation error related to a missing "nimble/ble.h" header file. I'm using ESP-IDF v5.1.1. Any idea what may be causing it? Is nimBLE not supported in the esp32s3 target..?

Thanks in advance!

ccache /home/mmourier/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.1.1\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DUNITY_INCLUDE_CONFIG_H -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/home/mmourier/SwDev/esp32DirCon/build/config -I/home/mmourier/SwDev/esp32DirCon/main -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/newlib/platform_include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/freertos/FreeRTOS-Kernel/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/freertos/esp_additions/include/freertos -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/freertos/esp_additions/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/freertos/esp_additions/arch/xtensa/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_hw_support/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_hw_support/include/soc -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_hw_support/include/soc/esp32s3 -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_hw_support/port/esp32s3/. -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_hw_support/port/esp32s3/private_include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/heap/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/log/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/soc/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/soc/esp32s3 -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/soc/esp32s3/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/hal/esp32s3/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/hal/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/hal/platform_port/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_rom/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_rom/include/esp32s3 -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_rom/esp32s3 -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_common/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_system/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_system/port/soc -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_system/port/include/private -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/xtensa/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/xtensa/esp32s3/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/lwip/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/lwip/include/apps -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/lwip/include/apps/sntp -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/lwip/lwip/src/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/lwip/port/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/lwip/port/freertos/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/lwip/port/esp32xx/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/lwip/port/esp32xx/include/arch -I/home/mmourier/SwDev/esp32DirCon/managed_components/espressif__led_strip/include -I/home/mmourier/SwDev/esp32DirCon/managed_components/espressif__led_strip/interface -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/deprecated -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/analog_comparator/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/dac/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/gpio/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/gptimer/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/i2c/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/i2s/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/ledc/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/mcpwm/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/parlio/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/pcnt/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/rmt/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/sdio_slave/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/sdmmc/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/sigma_delta/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/spi/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/temperature_sensor/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/touch_sensor/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/twai/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/uart/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/usb_serial_jtag/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/driver/touch_sensor/esp32s3/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_pm/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_ringbuf/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/efuse/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/efuse/esp32s3/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/mbedtls/port/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/mbedtls/mbedtls/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/mbedtls/mbedtls/library -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/mbedtls/esp_crt_bundle/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_app_format/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/bootloader_support/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/bootloader_support/bootloader_flash/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_partition/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/app_update/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_mm/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/spi_flash/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/pthread/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_timer/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/app_trace/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_event/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/nvs_flash/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_phy/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_phy/esp32s3/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/vfs/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_netif/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/wpa_supplicant/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/wpa_supplicant/port/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/wpa_supplicant/esp_supplicant/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_coex/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_wifi/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_wifi/wifi_apps/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/unity/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/unity/unity/src -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/cmock/CMock/src -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/console -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/http_parser -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp-tls -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp-tls/esp-tls-crypto -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_adc/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_adc/interface -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_adc/esp32s3/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_adc/deprecated/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_eth/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_gdbstub/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_hid/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/tcp_transport/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_http_client/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_http_server/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_https_ota/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_psram/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_lcd/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_lcd/interface -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/protobuf-c/protobuf-c -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/protocomm/include/common -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/protocomm/include/security -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/protocomm/include/transports -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/esp_local_ctrl/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/espcoredump/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/espcoredump/include/port/xtensa -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/wear_levelling/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/sdmmc/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/fatfs/diskio -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/fatfs/vfs -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/fatfs/src -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/idf_test/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/idf_test/include/esp32s3 -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/ieee802154/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/json/cJSON -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/mqtt/esp-mqtt/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/perfmon/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/spiffs/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/touch_element/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/ulp/ulp_common/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/ulp/ulp_common/include/esp32s3 -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/usb/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/components/wifi_provisioning/include -I/home/mmourier/ESP32/esp-idf-v5.1.1/examples/common_components/protocol_examples_common/include -mlongcalls -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=/home/mmourier/SwDev/esp32DirCon=. -fmacro-prefix-map=/home/mmourier/ESP32/esp-idf-v5.1.1=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/dircon.c.obj -MF esp-idf/main/CMakeFiles/__idf_main.dir/dircon.c.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/dircon.c.obj -c /home/mmourier/SwDev/esp32DirCon/main/dircon.c
In file included from /home/mmourier/SwDev/esp32DirCon/main/defs.h:30,
from /home/mmourier/SwDev/esp32DirCon/main/ble.h:28,
from /home/mmourier/SwDev/esp32DirCon/main/dircon.c:28:
/home/mmourier/SwDev/esp32DirCon/main/esp32.h:40:10: fatal error: nimble/ble.h: No such file or directory
40 | #include "nimble/ble.h"
| ^~~~~~~~~~~~~~
compilation terminated.

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

Re: Build error when switching target from esp32c3 to esp32s3

Postby ESP_Sprite » Wed Oct 11, 2023 3:46 am

Did you actually (re-)enable NimBLE in menuconfig after changing the target?

elfrances
Posts: 7
Joined: Sun Oct 01, 2023 3:48 pm

Re: Build error when switching target from esp32c3 to esp32s3

Postby elfrances » Wed Oct 11, 2023 1:46 pm

Thanks for your prompt reply. Yes, that was it. I'm still new to the ESP32 and its development framework, and didn't know I had to re-run menuconfig after switching targets. Now I do! :D

Who is online

Users browsing this forum: Corand and 90 guests