Skip to content

Instantly share code, notes, and snippets.

@itarozzi
Last active November 15, 2021 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itarozzi/06de071b2cf41654eabd0769a3a204bf to your computer and use it in GitHub Desktop.
Save itarozzi/06de071b2cf41654eabd0769a3a204bf to your computer and use it in GitHub Desktop.
A comparison between ESP32 BLE Arduino lib and NimBLE
-------------------------------------------------------
------------------- LIB NimBLE :
> Executing task in folder flr_ble_midi_board: platformio run --target size --environment esp32dev <
source /home/ivan/software-projects-free/python-prj/ble_gatt_server/server1/.env/bin/activate
Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.3.2) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (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.10006.210326 (1.0.6)
- tool-esptoolpy 1.30100.210531 (3.1.0)
- toolchain-xtensa32 2.50200.97 (5.2.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 30 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ArduinoJson> 6.18.5
|-- <NimBLE-Arduino> 1.3.1
Building in release mode
Calculating size .pio/build/esp32dev/firmware.elf
text data bss dec hex filename
413118 160596 14544 588258 8f9e2 .pio/build/esp32dev/firmware.elf
===================================================================================== [SUCCESS] Took 3.21 seconds =====================================================================================
PACKAGES:
- framework-arduinoespressif32 3.10006.210326 (1.0.6)
- tool-esptoolpy 1.30100.210531 (3.1.0)
- toolchain-xtensa32 2.50200.97 (5.2.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 30 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ArduinoJson> 6.18.5
|-- <NimBLE-Arduino> 1.3.1
Building in release mode
Retrieving maximum program size .pio/build/esp32dev/firmware.elf
Checking size .pio/build/esp32dev/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 8.9% (used 29260 bytes from 327680 bytes)
Flash: [==== ] 43.8% (used 573714 bytes from 1310720 bytes)
-------------------------------------------------------
------------------- LIB ESP32 BLE Arduino:
> Executing task in folder flr_ble_midi_board: platformio run --target size --environment esp32dev <
Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.3.2) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (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.10006.210326 (1.0.6)
- tool-esptoolpy 1.30100.210531 (3.1.0)
- toolchain-xtensa32 2.50200.97 (5.2.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 30 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ArduinoJson> 6.18.5
|-- <ESP32 BLE Arduino> 1.0.1
Building in release mode
Calculating size .pio/build/esp32dev/firmware.elf
text data bss dec hex filename
805506 180412 17504 1003422 f4f9e .pio/build/esp32dev/firmware.elf
===================================================================================== [SUCCESS] Took 2.18 seconds =====================================================================================
Terminale verrà riutilizzato dalle attività, premere un tasto qualsiasi per chiuderlo.
PACKAGES:
- framework-arduinoespressif32 3.10006.210326 (1.0.6)
- tool-esptoolpy 1.30100.210531 (3.1.0)
- toolchain-xtensa32 2.50200.97 (5.2.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 30 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ArduinoJson> 6.18.5
|-- <ESP32 BLE Arduino> 1.0.1
Building in release mode
Retrieving maximum program size .pio/build/esp32dev/firmware.elf
Checking size .pio/build/esp32dev/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 10.0% (used 32620 bytes from 327680 bytes)
Flash: [======== ] 75.2% (used 985918 bytes from 1310720 bytes)
Building .pio/build/esp32dev/firmware.bin
esptool.py v3.1
Merged 1 ELF section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment