h2zero / esp-nimble-component Goto Github PK
View Code? Open in Web Editor NEWUpdated NimBLE fork to use as a separate ESP32 component.
License: Apache License 2.0
Updated NimBLE fork to use as a separate ESP32 component.
License: Apache License 2.0
I'm trying to create a specific BLE advertisement that is 16 bit. In the ESP-IDF way, I would set some advertisement parameters about the GAP Ad type such as: advParams.adv_type = ADV_TYPE_IND, which in their API is defined as "Service Data - 16-bit UUID" and defined as 0x16.
Also, I usually write the Ad data raw to the device using their API call like this: esp_ble_gap_config_adv_data_raw(msg, length)
Is there an equivalent way to handle these in Nimble? Thank you.
Hi, cant get it to build.
This is what i did:
cp -r ~/esp-mdf/esp-idf/examples/get-started/hello_world ./hw
cd hw
mkdir -p components
cd components
git clone https://github.com/espressif/arduino-esp32/ arduino -b latest-3.3 --recurse-submodules
git clone https://github.com/h2zero/esp-nimble-component
cd ..
idf.py menuconfig
idf.py build
idf.py build > build.log
Getting the following error:
[785/1075] Generating idf_component_arduino.sections_info
[786/1075] Building C object esp-idf/esp-nimble-component/CMakeFiles/idf_component_esp-nimble-component.dir/nimble/ext/tinycrypt/src/aes_encrypt.c.obj
[787/1075] Building C object esp-idf/esp-nimble-component/CMakeFiles/idf_component_esp-nimble-component.dir/nimble/ext/tinycrypt/src/hmac_prng.c.obj
[788/1075] Building C object esp-idf/esp-nimble-component/CMakeFiles/idf_component_esp-nimble-component.dir/nimble/ext/tinycrypt/src/cmac_mode.c.obj
[789/1075] Building C object esp-idf/esp-nimble-component/CMakeFiles/idf_component_esp-nimble-component.dir/nimble/ext/tinycrypt/src/hmac.c.obj
[790/1075] Building CXX object esp-idf/asio/CMakeFiles/idf_component_asio.dir/asio/asio/src/asio.cpp.obj
[791/1075] Building C object esp-idf/esp-nimble-component/CMakeFiles/idf_component_esp-nimble-component.dir/nimble/ext/tinycrypt/src/ecc_dh.c.obj
[792/1075] Building C object esp-idf/esp-nimble-component/CMakeFiles/idf_component_esp-nimble-component.dir/nimble/ext/tinycrypt/src/ecc_dsa.c.obj
[793/1075] Building C object esp-idf/jsmn/CMakeFiles/idf_component_jsmn.dir/src/jsmn.c.obj
[794/1075] Linking CXX static library esp-idf/asio/libasio.a
[795/1075] Building C object esp-idf/esp-nimble-component/CMakeFiles/idf_component_esp-nimble-component.dir/nimble/ext/tinycrypt/src/ccm_mode.c.obj
[796/1075] Generating idf_component_asio.sections_info
[797/1075] Linking C static library esp-idf/jsmn/libjsmn.a
[798/1075] Building C object esp-idf/esp-nimble-component/CMakeFiles/idf_component_esp-nimble-component.dir/esp-hci/src/esp_nimble_hci.c.obj
FAILED: esp-idf/esp-nimble-component/CMakeFiles/idf_component_esp-nimble-component.dir/esp-hci/src/esp_nimble_hci.c.obj
ccache /home/qdl/.espressif/tools/xtensa-esp32-elf/1.22.0-96-g2852398-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -DESP_PLATFORM -DGCC_NOT_5_2_0=0 -DHAVE_CONFIG_H -DIDF_VER=\"v3.3.2-323-gbf0220609\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -I../components/esp-nimble-component/nimble/porting/nimble/include -I../components/esp-nimble-component/port/include -I../components/esp-nimble-component/nimble/nimble/include -I../components/esp-nimble-component/nimble/nimble/host/include -I../components/esp-nimble-component/nimble/nimble/host/services/ans/include -I../components/esp-nimble-component/nimble/nimble/host/services/bas/include -I../components/esp-nimble-component/nimble/nimble/host/services/gap/include -I../components/esp-nimble-component/nimble/nimble/host/services/gatt/include -I../components/esp-nimble-component/nimble/nimble/host/services/ias/include -I../components/esp-nimble-component/nimble/nimble/host/services/ipss/include -I../components/esp-nimble-component/nimble/nimble/host/services/lls/include -I../components/esp-nimble-component/nimble/nimble/host/services/tps/include -I../components/esp-nimble-component/nimble/nimble/host/util/include -I../components/esp-nimble-component/nimble/nimble/host/store/ram/include -I../components/esp-nimble-component/nimble/nimble/host/store/config/include -I../components/esp-nimble-component/nimble/porting/npl/freertos/include -I../components/esp-nimble-component/esp-hci/include -I../components/esp-nimble-component/nimble/ext/tinycrypt/include -Iconfig -I/home/qdl/esp-mdf/esp-idf/components/nvs_flash/include -I/home/qdl/esp-mdf/esp-idf/components/spi_flash/include -I/home/qdl/esp-mdf/esp-idf/components/mbedtls/port/include -I/home/qdl/esp-mdf/esp-idf/components/mbedtls/mbedtls/include -I/home/qdl/esp-mdf/esp-idf/components/lwip/include/apps -I/home/qdl/esp-mdf/esp-idf/components/lwip/include/apps/sntp -I/home/qdl/esp-mdf/esp-idf/components/lwip/lwip/src/include -I/home/qdl/esp-mdf/esp-idf/components/lwip/port/esp32/include -I/home/qdl/esp-mdf/esp-idf/components/lwip/port/esp32/include/arch -I/home/qdl/esp-mdf/esp-idf/components/lwip/include_compat -I/home/qdl/esp-mdf/esp-idf/components/vfs/include -I/home/qdl/esp-mdf/esp-idf/components/esp32/include -I/home/qdl/esp-mdf/esp-idf/components/driver/include -I/home/qdl/esp-mdf/esp-idf/components/esp_ringbuf/include -I/home/qdl/esp-mdf/esp-idf/components/tcpip_adapter/include -I/home/qdl/esp-mdf/esp-idf/components/esp_event/include -I/home/qdl/esp-mdf/esp-idf/components/log/include -I/home/qdl/esp-mdf/esp-idf/components/efuse/include -I/home/qdl/esp-mdf/esp-idf/components/efuse/esp32/include -I/home/qdl/esp-mdf/esp-idf/components/newlib/platform_include -I/home/qdl/esp-mdf/esp-idf/components/newlib/include -I/home/qdl/esp-mdf/esp-idf/components/freertos/include -I/home/qdl/esp-mdf/esp-idf/components/app_trace/include -I/home/qdl/esp-mdf/esp-idf/components/heap/include -I/home/qdl/esp-mdf/esp-idf/components/soc/esp32/include -I/home/qdl/esp-mdf/esp-idf/components/soc/include -mlongcalls -mlongcalls -Og -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -nostdlib -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -std=gnu99 -Wno-old-style-declaration -MD -MT esp-idf/esp-nimble-component/CMakeFiles/idf_component_esp-nimble-component.dir/esp-hci/src/esp_nimble_hci.c.obj -MF esp-idf/esp-nimble-component/CMakeFiles/idf_component_esp-nimble-component.dir/esp-hci/src/esp_nimble_hci.c.obj.d -o esp-idf/esp-nimble-component/CMakeFiles/idf_component_esp-nimble-component.dir/esp-hci/src/esp_nimble_hci.c.obj -c ../components/esp-nimble-component/esp-hci/src/esp_nimble_hci.c
../components/esp-nimble-component/esp-hci/src/esp_nimble_hci.c:30:20: fatal error: esp_bt.h: No such file or directory
compilation terminated.
[799/1075] Generating idf_component_jsmn.sections_info
[800/1075] Building C object esp-idf/coap/CMakeFiles/idf_component_coap.dir/libcoap/src/address.c.obj
[801/1075] Performing configure step for 'bootloader'
-- Found Git: /usr/bin/git (found version "2.29.0")
-- IDF_TARGET not set, using default target: esp32
-- Building for target esp32
-- ccache will be used for faster builds
-- The C compiler identification is GNU 5.2.0
-- The CXX compiler identification is GNU 5.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/qdl/.espressif/tools/xtensa-esp32-elf/1.22.0-96-g2852398-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/qdl/.espressif/tools/xtensa-esp32-elf/1.22.0-96-g2852398-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/qdl/.espressif/tools/xtensa-esp32-elf/1.22.0-96-g2852398-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Component names: soc esp32 log bootloader spi_flash micro-ecc efuse bootloader_support main esptool_py partition_table
-- Component paths: /home/qdl/esp-mdf/esp-idf/components/soc;/home/qdl/esp-mdf/esp-idf/components/esp32;/home/qdl/esp-mdf/esp-idf/components/log;/home/qdl/esp-mdf/esp-idf/components/bootloader;/home/qdl/esp-mdf/esp-idf/components/spi_flash;/home/qdl/esp-mdf/esp-idf/components/micro-ecc;/home/qdl/esp-mdf/esp-idf/components/efuse;/home/qdl/esp-mdf/esp-idf/components/bootloader_support;/home/qdl/esp-mdf/esp-idf/components/bootloader/subproject/main;/home/qdl/esp-mdf/esp-idf/components/esptool_py;/home/qdl/esp-mdf/esp-idf/components/partition_table
-- IDF_VER: v3.3.2-323-gbf0220609
-- Component libraries:
-- Adding linker script /home/qdl/esp-mdf/esp-idf/components/bootloader/subproject/main/esp32.bootloader.ld
-- Adding linker script /home/qdl/esp-mdf/esp-idf/components/bootloader/subproject/main/esp32.bootloader.rom.ld
-- Adding linker script /home/qdl/esp-mdf/esp-idf/components/esp32/ld/esp32.rom.ld
-- Adding linker script /home/qdl/esp-mdf/esp-idf/components/esp32/ld/esp32.rom.spiram_incompatible_fns.ld
-- Adding linker script /home/qdl/esp-mdf/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Configuring done
-- Generating done
-- Build files have been written to: /home/qdl/Bectec/Reaktionstest/idf-projects/hw/build/bootloader
[802/1075] Building C object esp-idf/coap/CMakeFiles/idf_component_coap.dir/libcoap/src/async.c.obj
[803/1075] Building C object esp-idf/coap/CMakeFiles/idf_component_coap.dir/libcoap/src/hashkey.c.obj
[804/1075] Building C object esp-idf/coap/CMakeFiles/idf_component_coap.dir/libcoap/src/block.c.obj
[805/1075] Building C object esp-idf/coap/CMakeFiles/idf_component_coap.dir/libcoap/src/coap_time.c.obj
[806/1075] Building C object esp-idf/coap/CMakeFiles/idf_component_coap.dir/libcoap/src/encode.c.obj
[807/1075] Building C object esp-idf/coap/CMakeFiles/idf_component_coap.dir/libcoap/src/debug.c.obj
ninja: build stopped: subcommand failed.
Note: You are using Python 3.8.6. Python 3 support is new, please report any problems you encounter. Search for 'Setting the Python Interpreter' in the ESP-IDF docs if you want to use Python 2.7.
Checking Python dependencies...
Running cmake in directory /home/qdl/Bectec/Reaktionstest/idf-projects/hw/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized /home/qdl/Bectec/Reaktionstest/idf-projects/hw"...
Running ninja in directory /home/qdl/Bectec/Reaktionstest/idf-projects/hw/build
Executing "ninja all"...
ninja failed with exit code 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.