Quantcast
Viewing all articles
Browse latest Browse all 4895

SDK • Re: WANT_HCI_DUMP for bt_stack not working

I confirm that, in target_compile_definitions(), PRIVATE works to enable WANT_HCI_DUMP, but INTERFACE does not.

This is in accordance with https://github.com/raspberrypi/pico-sdk/issues/1267.

Code:

# To debug Bluetooth issues you can enable [btstack](https://github.com/bluekitchen/btstack)#   debug output which also enables packet logging.#   Define `WANT_HCI_DUMP=1` in your CMakeLists.txt file. #   Uncomment this line to enable debug in the btstack examples.# target_compile_definitions() needs PRIVATE, not INTERFACE, #   according to https://github.com/raspberrypi/pico-sdk/issues/1267#   Alternately, put "#define WANT_HCI_DUMP (1)" into btstack_config.h#target_compile_definitions(picow_ble_gatt_counter_freertos INTERFACE #DOES NOT WORKtarget_compile_definitions(picow_ble_gatt_counter_freertos PRIVATE# DOES WORK     WANT_HCI_DUMP=1 # This enables btstack debug)
I did not test defining WANT_HCI_DUMP in btstack_config.h. It seems more appropriate to put it into the cmake file for a different kind of build.

Paul

Statistics: Posted by paulbjork — Tue Nov 19, 2024 5:29 pm



Viewing all articles
Browse latest Browse all 4895

Trending Articles