Closed ASL07 closed 5 years ago
@ASL07 Please provide more details about the branch (and the head commit id) you are using. Also, check if the IDF_PATH is correct. The compilation for this example seems to work fine for both modes (IBEACON_SENDER as well as IBEACON_RECEIVER) on latest master (ad3b820e701c3ef0803b045b5a2c5ef19630fb0b)
@ASL07 , I don't reproduce this issue, my IDF commit is 6cdfde094d2c8b5d3b58ad59e86786300a69307c
zhiweijian:ble_ibeacon zhiweijian$
zhiweijian:ble_ibeacon zhiweijian$ make -j4
Toolchain path: /Users/zhiweijian/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
WARNING: Toolchain version is not supported: crosstool-ng-1.22.0-61-gab8375a
Expected to see version: crosstool-ng-1.22.0-80-g6c4433a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
Compiler version: 5.2.0
Python requirements from /Users/zhiweijian/Desktop/esp-idf/requirements.txt are satisfied.
App "ble_ibeacon_demo" version: v4.0-dev-549-g6cdfde094-dirty
WARNING: Toolchain version is not supported: crosstool-ng-1.22.0-61-gab8375a
Expected to see version: crosstool-ng-1.22.0-80-g6c4433a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
To flash all build output, run 'make flash' or:
python /Users/zhiweijian/Desktop/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/tty.SLAB_USBtoUART --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 /Users/zhiweijian/Desktop/esp-idf/examples/bluetooth/ble_ibeacon/build/bootloader/bootloader.bin 0x10000 /Users/zhiweijian/Desktop/esp-idf/examples/bluetooth/ble_ibeacon/build/ble_ibeacon_demo.bin 0x8000 /Users/zhiweijian/Desktop/esp-idf/examples/bluetooth/ble_ibeacon/build/partitions_singleapp.bin
zhiweijian:ble_ibeacon zhiweijian$ git log
commit 6cdfde094d2c8b5d3b58ad59e86786300a69307c (HEAD -> master)
Merge: ad3b820e7 015922f8d
Author: Angus Gratton <angus@espressif.com>
Date: Thu May 16 19:55:47 2019 +0800
Merge branch 'bugfix/protocomm_ble_128bit_uuid' into 'master'
protocomm_ble : Fix support for custom service UUIDs
See merge request idf/esp-idf!4978
Sorry, my fault.
My ESP_IDF path was pointing to an older version of esp-idf
I fixed that and it works using the latest master.
Thanks for your help
@ASL07 Thanks for reporting the issue. Feel free to reopen the issue if it still exists. Thanks.
When I try to compile the example ble_ibeacon_example in mode IBEACON_RECEIVER, the source file esp_gap_ble_api.c is not included in the compilation. It compiles well with mode IBEACON_SENDER.
This is the compilation output for IBEACON_RECEIVER. Hope you can help me troubleshoot this
And this is the content of my sdkconfig file: