Skip to content

Compiletime error in ble_hs_periodic_sync.c when enabling config macro #920

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

Closed
OpitZle opened this issue Mar 26, 2025 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@OpitZle
Copy link

OpitZle commented Mar 26, 2025

Using an NimBLE Client Application written with NimBLE-Arduino 2.2.3. The Sketch compiles without error in the Arduino IDE with the provided nimconfig.h file. When changing in nimconfig.h the following line:

/** @brief Un-comment to enable periodic advertising */
//#define CONFIG_BT_NIMBLE_ENABLE_PERIODIC_ADV 1

and un-comment it, then getting the following error during compile time for a ESP32S3 device:

"C:\\Users\\MaxMusterman\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp-x32\\2405/bin/xtensa-esp32s3-elf-gcc" -MMD -c "@C:\\Users\\MaxMustermann\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.3-cfea4f7c-v1\\esp32s3/flags/c_flags" -Wall -Wextra -Os -Werror=return-type -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32S3_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32S3_DEV\"" "-DARDUINO_VARIANT=\"esp32s3\"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS=\"windows\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32s3:UploadSpeed=921600,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,CPUFreq=240,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,PSRAM=disabled,LoopCore=1,EventsCore=1,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default\"" -DESP32=ESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 "@C:\\Users\\MaxMustermann\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.3-cfea4f7c-v1\\esp32s3/flags/defines" "-IC:\\Users\\MaxMustermann\\Documents\\Arduino\\BT\\ROBsClient4KeyCodeScan" -iprefix "C:\\Users\\MaxMustermann\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.3-cfea4f7c-v1\\esp32s3/include/" "@C:\\Users\\MaxMustermann\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.3-cfea4f7c-v1\\esp32s3/flags/includes" "-IC:\\Users\\MaxMustermann\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.3-cfea4f7c-v1\\esp32s3/qio_qspi/include" "-IC:\\Users\\MaxMustermann\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.1.1\\cores\\esp32" "-IC:\\Users\\MaxMustermann\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.1.1\\variants\\esp32s3" "-Ic:\\Users\\MaxMustermann\\Documents\\Arduino\\libraries\\NimBLE-Arduino\\src" "@C:\\Users\\MaxMustermann\\AppData\\Local\\arduino\\sketches\\BFA753949464FE57C9F90A5B9ACEFE0D/build_opt.h" "@C:\\Users\\MaxMustermann\\AppData\\Local\\arduino\\sketches\\BFA753949464FE57C9F90A5B9ACEFE0D/file_opts" "c:\\Users\\MaxMustermann\\Documents\\Arduino\\libraries\\NimBLE-Arduino\\src\\nimble\\nimble\\host\\src\\ble_l2cap_sig.c" -o "C:\\Users\\MaxMustermann\\AppData\\Local\\arduino\\sketches\\BFA753949464FE57C9F90A5B9ACEFE0D\\libraries\\NimBLE-Arduino\\nimble\\nimble\\host\\src\\ble_l2cap_sig.c.o"

c:\Users\MaxMustermann\Documents\Arduino\libraries\NimBLE-Arduino\src\nimble\nimble\host\src\ble_hs_periodic_sync.c: In function 'ble_hs_periodic_sync_free':
c:\Users\MaxMustermann\Documents\Arduino\libraries\NimBLE-Arduino\src\nimble\nimble\host\src\ble_hs_periodic_sync.c:58:24: \
error: 'struct ble_npl_event' has no member named 'event'
   58 |     if((psync->lost_ev).event != NULL)
      |                        ^

Bibliothek NimBLE-Arduino in Version 2.2.3 im Ordner: C:\Users\MaxMustermann\Documents\Arduino\libraries\NimBLE-Arduino  wird verwendet
exit status 1

Compilation error: exit status 1
@h2zero
Copy link
Owner

h2zero commented Mar 27, 2025

Thank you, I have not added support for periodic advertising yet, there doesn't seem to be much need yet so this has gone unchecked. I will note it as a bug to look into though.

@h2zero h2zero added the bug Something isn't working label Mar 27, 2025
@h2zero
Copy link
Owner

h2zero commented Apr 24, 2025

Closing this as resolved with the nimble-1.6 update

@h2zero h2zero closed this as completed Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants