esp32 wroom 32 bluetooth not working

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
simisv
Posts: 9
http://meble-kuchenne.info.pl
Joined: Wed Oct 19, 2022 7:54 am
Has thanked: 2 times
Been thanked: 1 time

Flowcode v10 esp32 wroom 32 bluetooth not working

Post by simisv »

hi
I'm trying to use Bluetooth with esp32_wroom_32 module and refuses to compile .
Any help is much appreciated .
Thank you

Code: Select all

Device:        ESP.ESP32.ESP32_WROOM_32
Generated by:  Flowcode v10.1.2.40
Date:          Tuesday, September 09, 2025 14:34:01

Using FCD settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ESP\Batch\esp32_build.bat  "C:\FC_ESP\" "esp32_wroom_32_BT_1" "C:\Users\simie\OneDrive\Documents\Flowcode v10 projects\" esp32s_sdkconfig esp32 

C:\Users\simie\OneDrive\Documents\Flowcode v10 projects>REM CRC: 0796FC1E6A776AF9156B257209C35258CE7C28B3EC20AEA2C632DB392A0E4BFD5B3F53B21811978F7B21FE4085045A7E774D1D3D69D8A99EE7320EAE740A5DB60228F42835EF5B88138FDEE58A4EE9C3A4BAF1B34E38B68E0C3CAEE8E7DA6987B808018476405B65B199900461C78937B42DEF8219F63A24580137A2F6C8FDB7553324EFF791947E8AB6FFD612B81BAA97C798A8F1CFC189DE5D38517747C774AF2DD6F839BAECF83F7F994C7164CE77868F480396BDEF2F2C3050DA273BE4EE69F15C302679453617F9EA00A6A8712D05E485F25DB02304E4565E63FDA312627DD474674123A97D 

C:\Users\simie\OneDrive\Documents\Flowcode v10 projects>REM REVISION: 15.0 

C:\Users\simie\OneDrive\Documents\Flowcode v10 projects>REM GUID: 955EA920-4961-4C53-BA6B-EF4AF66BB4C2 

C:\Users\simie\OneDrive\Documents\Flowcode v10 projects>REM DATE: 07\04\2025 

C:\Users\simie\OneDrive\Documents\Flowcode v10 projects>REM DIR: FCD\ESP\Batch\esp32_build.bat 
Creating python config file 
Creating menuconfig link file 
.
============================== Toolchain Check ==============================
Python 3.11.2
git version 2.44.0.windows.1
ESP toolchain found at "C:\FC_ESP\frameworks\esp-idf-v5.3.1\"
=============================================================================
.
Building: esp32_wroom_32_BT_1 ...
fatal: not a git repository (or any of the parent directories): .git
IDF Version:  ...
Checking Python compatibility
Setting IDF_PATH: C:\FC_ESP\frameworks\esp-idf-v5.3.1

Adding ESP-IDF tools to PATH...
WARNING: The following issue occurred while accessing the ESP-IDF version file in the Python environment: [Errno 2] No such file or directory: 'C:\\FC_ESP\\esp-tools\\python_env\\idf5.3_py3.11_env\\idf_version.txt'. (Diagnostic information. It can be ignored.)
    C:\FC_ESP\esp-tools\tools\xtensa-esp-elf-gdb\14.2_20240403\xtensa-esp-elf-gdb\bin
    C:\FC_ESP\esp-tools\tools\riscv32-esp-elf-gdb\14.2_20240403\riscv32-esp-elf-gdb\bin
    C:\FC_ESP\esp-tools\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin
    C:\FC_ESP\esp-tools\tools\riscv32-esp-elf\esp-13.2.0_20240530\riscv32-esp-elf\bin
    C:\FC_ESP\esp-tools\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\bin
    C:\FC_ESP\esp-tools\tools\cmake\3.24.0\bin
    C:\FC_ESP\esp-tools\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\bin
    C:\FC_ESP\esp-tools\tools\ninja\1.11.1\
    C:\FC_ESP\esp-tools\tools\idf-exe\1.0.3\
    C:\FC_ESP\esp-tools\tools\ccache\4.8\ccache-4.8-windows-x86_64
    C:\FC_ESP\esp-tools\tools\dfu-util\0.11\dfu-util-0.11-win64
    C:\FC_ESP\frameworks\esp-idf-v5.3.1\tools
    
Checking if Python packages are up to date...
Python requirements are satisfied.
Constraint file: C:\FC_ESP\esp-tools\espidf.constraints.v5.3.txt
Requirement files:
 - C:\FC_ESP\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt
Python being checked: C:\FC_ESP\esp-tools\python_env\idf5.3_py3.11_env\Scripts\python.exe

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build

Target: esp32 ...
. . . . . .

[1/9] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D C:\FC_ESP\mtxesp32s_sdkconfig\build\bootloader\esp-idf\esptool_py && C:\FC_ESP\esp-tools\python_env\idf5.3_py3.11_env\Scripts\python.exe C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 C:/FC_ESP/mtxesp32s_sdkconfig/build/bootloader/bootloader.bin"
Bootloader binary size 0x6880 bytes. 0x780 bytes (7%) free.
[2/7] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/esp-project.c.obj
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/esp-project.c.obj 
ccache C:\FC_ESP\esp-tools\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin\xtensa-esp32-elf-gcc.exe -DESP_PLATFORM -DIDF_VER=\"HEAD-HASH-NOTFOUND\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DUNITY_INCLUDE_CONFIG_H -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -IC:/FC_ESP/mtxesp32s_sdkconfig/build/config -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/newlib/platform_include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/freertos/config/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/freertos/config/include/freertos -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/freertos/config/xtensa/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/freertos/FreeRTOS-Kernel/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/freertos/esp_additions/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_hw_support/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_hw_support/include/soc -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_hw_support/include/soc/esp32 -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_hw_support/dma/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_hw_support/ldo/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_hw_support/port/esp32/. -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_hw_support/port/esp32/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/heap/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/soc/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/soc/esp32 -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/soc/esp32/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/hal/platform_port/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/hal/esp32/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/hal/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_rom/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_rom/include/esp32 -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_rom/esp32 -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_common/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_system/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_system/port/soc -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_system/port/include/private -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/xtensa/esp32/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/xtensa/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/xtensa/deprecated_include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/lwip/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/lwip/include/apps -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/lwip/include/apps/sntp -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/lwip/lwip/src/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/lwip/port/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/lwip/port/freertos/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/lwip/port/esp32xx/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/lwip/port/esp32xx/include/arch -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/lwip/port/esp32xx/include/sys -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_gpio/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_pm/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/mbedtls/port/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/mbedtls/mbedtls/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/mbedtls/mbedtls/library -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/mbedtls/esp_crt_bundle/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/mbedtls/mbedtls/3rdparty/everest/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/mbedtls/mbedtls/3rdparty/p256-m -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/mbedtls/mbedtls/3rdparty/p256-m/p256-m -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_app_format/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_bootloader_format/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/app_update/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/bootloader_support/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/bootloader_support/bootloader_flash/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_partition/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/efuse/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/efuse/esp32/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_mm/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/spi_flash/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/pthread/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_timer/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_gptimer/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_ringbuf/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_uart/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/vfs/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/app_trace/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_event/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/nvs_flash/
include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_pcnt/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_spi/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_mcpwm/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_ana_cmpr/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_i2s/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/sdmmc/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_sdmmc/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_sdspi/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_sdio/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_dac/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_rmt/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_tsens/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_sdm/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_i2c/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_ledc/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_parlio/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_usb_serial_jtag/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/driver/deprecated -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/driver/i2c/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/driver/touch_sensor/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/driver/twai/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/driver/touch_sensor/esp32/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_phy/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_phy/esp32/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_vfs_console/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_netif/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/wpa_supplicant/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/wpa_supplicant/port/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/wpa_supplicant/esp_supplicant/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_coex/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_wifi/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_wifi/wifi_apps/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_wifi/wifi_apps/nan_app/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_wifi/include/local -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/bt/include/esp32/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/bt/common/osi/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/bt/common/api/include/api -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/bt/common/btc/profile/esp/blufi/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/bt/common/btc/profile/esp/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/bt/common/hci_log/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/bt/host/bluedroid/api/include/api -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/bt/porting/ext/tinycrypt/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/unity/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/unity/unity/src -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/cmock/CMock/src -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/console -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/http_parser -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp-tls -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp-tls/esp-tls-crypto -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_adc/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_adc/interface -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_adc/esp32/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_adc/deprecated/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_isp/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_cam/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_cam/interface -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_jpeg/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_driver_ppa/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_eth/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_gdbstub/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_hid/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/tcp_transport/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_http_client/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_http_server/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_https_ota/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_https_server/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_psram/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_lcd/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_lcd/interface -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/protobuf-c/protobuf-c -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/protocomm/include/common -IC:/F
C_ESP/frameworks/esp-idf-v5.3.1/components/protocomm/include/security -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/protocomm/include/transports -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/protocomm/include/crypto/srp6a -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/protocomm/proto-c -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/esp_local_ctrl/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/espcoredump/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/espcoredump/include/port/xtensa -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/wear_levelling/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/fatfs/diskio -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/fatfs/src -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/fatfs/vfs -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/idf_test/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/idf_test/include/esp32 -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/ieee802154/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/json/cJSON -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/mqtt/esp-mqtt/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/nvs_sec_provider/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/perfmon/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/spiffs/include -IC:/FC_ESP/frameworks/esp-idf-v5.3.1/components/wifi_provisioning/include -mlongcalls -Wno-frame-address  -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -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 -fno-shrink-wrap -fmacro-prefix-map=C:/FC_ESP/mtxesp32s_sdkconfig=. -fmacro-prefix-map=C:/FC_ESP/frameworks/esp-idf-v5.3.1=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -Wno-cpp -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wno-incompatible-pointer-types -Wno-discarded-qualifiers -Wno-int-conversion -Wno-pointer-sign -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/esp-project.c.obj -MF esp-idf\main\CMakeFiles\__idf_main.dir\esp-project.c.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/esp-project.c.obj -c C:/FC_ESP/mtxesp32s_sdkconfig/main/esp-project.c
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\includes.c:57,
                 from C:\Users\simie\OneDrive\Documents\Flowcode v10 projects\esp32_wroom_32_BT_1.h:155,
                 from C:/FC_ESP/mtxesp32s_sdkconfig/main/esp-project.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c: In function 'esp_spp_cb':
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c:158:9: warning: 'esp_bt_dev_set_device_name' is deprecated: Please use esp_bt_gap_set_device_name or esp_ble_gap_set_device_name [-Wdeprecated-declarations]
  158 |         esp_bt_dev_set_device_name( BT_DEV_NAME );
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c:45:
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/bt/host/bluedroid/api/include/api/esp_bt_device.h:99:11: note: declared here
   99 | esp_err_t esp_bt_dev_set_device_name(const char *name) __attribute__((deprecated("Please use esp_bt_gap_set_device_name or esp_ble_gap_set_device_name")));
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\simie\OneDrive\Documents\Flowcode v10 projects\esp32_wroom_32_BT_1.h:38:
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:290:27: error: format '%d' expects argument of type 'int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  290 | #define LOG_COLOR(COLOR)  "\033[0;" COLOR "m"
      |                           ^~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:293:27: note: in expansion of macro 'LOG_COLOR'
  293 | #define LOG_COLOR_E       LOG_COLOR(LOG_COLOR_RED)
      |                           ^~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:307:37: note: in expansion of macro 'LOG_COLOR_E'
  307 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                     ^~~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:435:86: note: in expansion of macro 'LOG_FORMAT'
  435 |         if (level==ESP_LOG_ERROR )          { esp_log_write(ESP_LOG_ERROR,      tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
      |                                                                                      ^~~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:463:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  463 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:367:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  367 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c:61:20: note: in expansion of macro 'ESP_LOGI'
   61 |   #define BT_LOGI4 ESP_LOGI
      |                    ^~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c:190:9: note: in expansion of macro 'BT_LOGI4'
  190 |         BT_LOGI4(SPP_TAG, "ESP_SPP_DATA_IND_EVT len=%d handle=%d", param->data_ind.len, param->data_ind.handle);
      |         ^~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:290:27: error: format '%d' expects argument of type 'int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  290 | #define LOG_COLOR(COLOR)  "\033[0;" COLOR "m"
      |                           ^~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:294:27: note: in expansion of macro 'LOG_COLOR'
  294 | #define LOG_COLOR_W       LOG_COLOR(LOG_COLOR_BROWN)
      |                           ^~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:307:37: note: in expansion of macro 'LOG_COLOR_W'
  307 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                     ^~~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:436:86: note: in expansion of macro 'LOG_FORMAT'
  436 |         else if (level==ESP_LOG_WARN )      { esp_log_write(ESP_LOG_WARN,       tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
      |                                                                                      ^~~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:463:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  463 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:367:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  367 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c:61:20: note: in expansion of macro 'ESP_LOGI'
   61 |   #define BT_LOGI4 ESP_LOGI
      |                    ^~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c:190:9: note: in expansion of macro 'BT_LOGI4'
  190 |         BT_LOGI4(SPP_TAG, "ESP_SPP_DATA_IND_EVT len=%d handle=%d", param->data_ind.len, param->data_ind.handle);
      |         ^~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c:190:1: error: format '%d' expects argument of type 'int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  190 |         BT_LOGI4(SPP_TAG, "ESP_SPP_DATA_IND_EVT len=%d handle=%d", param->data_ind.len, param->data_ind.handle);
      | ^       ~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:307:59: note: in definition of macro 'LOG_FORMAT'
  307 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:463:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  463 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:367:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  367 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c:61:20: note: in expansion of macro 'ESP_LOGI'
   61 |   #define BT_LOGI4 ESP_LOGI
      |                    ^~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c:190:9: note: in expansion of macro 'BT_LOGI4'
  190 |         BT_LOGI4(SPP_TAG, "ESP_SPP_DATA_IND_EVT len=%d handle=%d", param->data_ind.len, param->data_ind.handle);
      |         ^~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c:190:1: error: format '%d' expects argument of type 'int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  190 |         BT_LOGI4(SPP_TAG, "ESP_SPP_DATA_IND_EVT len=%d handle=%d", param->data_ind.len, param->data_ind.handle);
      | ^       ~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:307:59: note: in definition of macro 'LOG_FORMAT'
  307 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:463:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  463 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:367:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  367 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c:61:20: note: in expansion of macro 'ESP_LOGI'
   61 |   #define BT_LOGI4 ESP_LOGI
      |                    ^~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c:190:9: note: in expansion of macro 'BT_LOGI4'
  190 |         BT_LOGI4(SPP_TAG, "ESP_SPP_DATA_IND_EVT len=%d handle=%d", param->data_ind.len, param->data_ind.handle);
      |         ^~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:290:27: error: format '%d' expects argument of type 'int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  290 | #define LOG_COLOR(COLOR)  "\033[0;" COLOR "m"
      |                           ^~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:295:27: note: in expansion of macro 'LOG_COLOR'
  295 | #define LOG_COLOR_I       LOG_COLOR(LOG_COLOR_GREEN)
      |                           ^~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:307:37: note: in expansion of macro 'LOG_COLOR_I'
  307 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                     ^~~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:439:86: note: in expansion of macro 'LOG_FORMAT'
  439 |         else                                { esp_log_write(ESP_LOG_INFO,       tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
      |                                                                                      ^~~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:463:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  463 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/log/include/esp_log.h:367:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  367 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c:61:20: note: in expansion of macro 'ESP_LOGI'
   61 |   #define BT_LOGI4 ESP_LOGI
      |                    ^~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c:190:9: note: in expansion of macro 'BT_LOGI4'
  190 |         BT_LOGI4(SPP_TAG, "ESP_SPP_DATA_IND_EVT len=%d handle=%d", param->data_ind.len, param->data_ind.handle);
      |         ^~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c: In function 'BT_SPP_init':
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c:309:5: warning: 'esp_spp_init' is deprecated: Please use esp_spp_enhanced_init [-Wdeprecated-declarations]
  309 |     if ((ret = esp_spp_init(esp_spp_mode)) != ESP_OK) {
      |     ^~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c:46:
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/bt/host/bluedroid/api/include/api/esp_spp_api.h:269:11: note: declared here
  269 | esp_err_t esp_spp_init(esp_spp_mode_t mode) __attribute__((deprecated("Please use esp_spp_enhanced_init")));
      |           ^~~~~~~~~~~~
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c: In function 'ESP32_BT_SPP_SetName':
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\ESP\ESP_CAL_BT_SPP.c:339:9: warning: 'esp_bt_dev_set_device_name' is deprecated: Please use esp_bt_gap_set_device_name or esp_ble_gap_set_device_name [-Wdeprecated-declarations]
  339 |         esp_bt_dev_set_device_name(name);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:/FC_ESP/frameworks/esp-idf-v5.3.1/components/bt/host/bl
uedroid/api/include/api/esp_bt_device.h:99:11: note: declared here
   99 | esp_err_t esp_bt_dev_set_device_name(const char *name) __attribute__((deprecated("Please use esp_bt_gap_set_device_name or esp_ble_gap_set_device_name")));
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1.exe: some warnings being treated as errors
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
Executing action: all (aliases: build)
Running ninja in directory C:\FC_ESP\mtxesp32s_sdkconfig\build
Executing "ninja all"...

Build Failed.

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ESP\Batch\esp32_build.bat reported error code 0x1

Autoclose turned off


FINISHED
Attachments
esp32_wroom_32_BT_1.fcfx
(10.61 KiB) Downloaded 7 times

medelec35
Matrix Staff
Posts: 2091
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 647 times
Been thanked: 705 times

Re: esp32 wroom 32 bluetooth not working

Post by medelec35 »

Hello.
There is an issue with Bluetooth Verbose Debug > Information.
For now either select Errors Only or Off
The issue will be investigated and hopefully fixed.
Martin

simisv
Posts: 9
Joined: Wed Oct 19, 2022 7:54 am
Has thanked: 2 times
Been thanked: 1 time

Re: esp32 wroom 32 bluetooth not working

Post by simisv »

Hi Medelec35

After I deleted all unused variables everything looks ok , I can compile and download without errors .
Unfortunately BT is not working . I found a post where was the same issue and BenR was saying that should be a file "menuconfig.bat" in the same folder of the project directory , and there isn't .
Attachments
esp32_wroom_32_BT_1.fcfx
(9.4 KiB) Downloaded 5 times
esp32_wroom_32_BT_1.msg.txt
(10.18 KiB) Downloaded 4 times

medelec35
Matrix Staff
Posts: 2091
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 647 times
Been thanked: 705 times

Re: esp32 wroom 32 bluetooth not working

Post by medelec35 »

Hello.
Yes, I see you also got Verbose Debug set to none so it now should compile.

Since Ben stated that, there has been a change.

If you installed the Flowcode ESP32 tool chain

Code: Select all

menuconfig.bat
is now within the
C:\FC_ESP\(esp type used)
E.g
C:\FC_ESP\mtxesp32s_sdkconfig
C:\FC_ESP\mtxlolin32_lite_sdkconfig
etc.

I have not played around with Bluetooth yet on the ESP32,
but I know other forum member have so it's well worth reading their findings.
Martin

stefan.erni
Valued Contributor
Posts: 1067
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 201 times
Been thanked: 228 times

Re: esp32 wroom 32 bluetooth not working

Post by stefan.erni »

Hi Simisv, Hi Maritn

More Info is here:
(You can download the PDF)
viewtopic.php?t=3015&hilit=bluetooth

And then your Bt will work :)
SNAG-0036.PNG
SNAG-0036.PNG (33.11 KiB) Viewed 43 times

simisv
Posts: 9
Joined: Wed Oct 19, 2022 7:54 am
Has thanked: 2 times
Been thanked: 1 time

Flowcode v10 Re: esp32 wroom 32 bluetooth not working

Post by simisv »

Hi guys

Thank you for help

I managed to find "mtx" folders ,in "FC_ESP" folder in C directory . Most of them are empty except "mtxesp32s_sdkconfig" and "mtxesp32_s3_sdkconfig" .
File "menuconfig.bat" from "mtxesp32_s3_sdkconfig" I was able to open without problems and I was able to attempt a test of ESP32S3 , unfortunately unable to compile due to errors .
After many many many attempts I managed to open "menuconfig.bat" from "mtxesp32s_sdkconfig" . It is a little different from Stefan post and has no setup for a password . It compiles ok , can connect with my phone and can receive data from my phone .
Now I need to find out how to set a passkey and set the module as slave and master .
Attachments
esp32_wroom_32_BT_2.fcfx
(17.13 KiB) Downloaded 4 times
esp32wroom32menuconfig.jpg
esp32wroom32menuconfig.jpg (118.96 KiB) Viewed 24 times

Post Reply