Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TAG missing in esp32_ble_ota_compact #34

Open
anthonymichelon opened this issue Feb 7, 2024 · 0 comments
Open

TAG missing in esp32_ble_ota_compact #34

anthonymichelon opened this issue Feb 7, 2024 · 0 comments

Comments

@anthonymichelon
Copy link

Hello,

I'm trying to compile the esp32_ble_ota_compact example, but I get an error due to a missing definition of TAG, and indeed there is nothing like this in the ble_ota_dfu.cpp nor ble_ota_dfu.hpp file.

How is it possible to define it?

Regards,
ABC

Processing esp32doit-devkit-v1 (platform: espressif32; board: esp32doit-devkit-v1; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html
PLATFORM: Espressif 32 (5.2.0) > DOIT ESP32 DEVKIT V1
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:

  • framework-arduinoespressif32 @ 3.20005.220925 (2.0.5)
  • tool-esptoolpy @ 1.40201.0 (4.2.1)
  • toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 34 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- NimBLE-Arduino @ 1.4.1+sha.e46123a
    |-- ble_ota_dfuU @ 1.0.0
    Building in release mode
    Compiling .pio\build\esp32doit-devkit-v1\src\main.cpp.o
    Compiling .pio\build\esp32doit-devkit-v1\lib066\NimBLE-Arduino\nimble\esp_port\esp-hci\src\esp_nimble_hci.c.o
    Compiling .pio\build\esp32doit-devkit-v1\lib066\NimBLE-Arduino\nimble\esp_port\port\src\esp_nimble_mem.c.o
    Compiling .pio\build\esp32doit-devkit-v1\lib066\NimBLE-Arduino\nimble\ext\tinycrypt\src\aes_decrypt.c.o
    Compiling .pio\build\esp32doit-devkit-v1\lib066\NimBLE-Arduino\nimble\ext\tinycrypt\src\aes_encrypt.c.o
    Compiling .pio\build\esp32doit-devkit-v1\lib066\NimBLE-Arduino\nimble\ext\tinycrypt\src\cbc_mode.c.o
    Compiling .pio\build\esp32doit-devkit-v1\lib066\NimBLE-Arduino\nimble\ext\tinycrypt\src\ccm_mode.c.o
    Compiling .pio\build\esp32doit-devkit-v1\lib066\NimBLE-Arduino\nimble\ext\tinycrypt\src\cmac_mode.c.o
    Compiling .pio\build\esp32doit-devkit-v1\lib066\NimBLE-Arduino\nimble\ext\tinycrypt\src\ctr_mode.c.o
    Compiling .pio\build\esp32doit-devkit-v1\lib066\NimBLE-Arduino\nimble\ext\tinycrypt\src\ctr_prng.c.o
    Compiling .pio\build\esp32doit-devkit-v1\lib066\NimBLE-Arduino\nimble\ext\tinycrypt\src\ecc.c.o
    In file included from C:/Users/ABC/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal.h:76,
    from C:/Users/ABC/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:36,
    from src/main.hpp:9,
    from src/main.cpp:2:
    lib/ble_ota_dfu/src/./freertos_utils.hpp: In function 'void _initialize_queue(QueueDefinition**, const char*, size_t, T*)':
    lib/ble_ota_dfu/src/./freertos_utils.hpp:22:14: error: 'TAG' was not declared in this scope
    ESP_LOGE(TAG, "Error creating the queue "%s"", queue_name);
    ^~~
    C:/Users/ABC/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-log.h:159:72: note: in definition of macro 'log_e'
    #define log_e(format, ...) log_printf(ARDUHAL_LOG_FORMAT(E, format), ##VA_ARGS)
    ^~~~~~~~~~~
    lib/ble_ota_dfu/src/./freertos_utils.hpp:22:5: note: in expansion of macro 'ESP_LOGE'
    ESP_LOGE(TAG, "Error creating the queue "%s"", queue_name);
    ^~~~~~~~
    lib/ble_ota_dfu/src/./freertos_utils.hpp:30:14: error: 'TAG' was not declared in this scope
    ESP_LOGE(TAG, "Error initializing the queue "%s"", queue_name);
    ^~~
    C:/Users/ABC/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-log.h:159:72: note: in definition of macro 'log_e'
    #define log_e(format, ...) log_printf(ARDUHAL_LOG_FORMAT(E, format), ##VA_ARGS)
    ^~~~~~~~~~~
    lib/ble_ota_dfu/src/./freertos_utils.hpp:30:5: note: in expansion of macro 'ESP_LOGE'
    ESP_LOGE(TAG, "Error initializing the queue "%s"", queue_name);
    ^~~~~~~~
    Compiling .pio\build\esp32doit-devkit-v1\lib066\NimBLE-Arduino\nimble\ext\tinycrypt\src\ecc_dh.c.o
    Compiling .pio\build\esp32doit-devkit-v1\lib066\NimBLE-Arduino\nimble\ext\tinycrypt\src\ecc_dsa.c.o
    *** [.pio\build\esp32doit-devkit-v1\src\main.cpp.o] Error 1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant