Quantcast
Viewing all articles
Browse latest Browse all 5391

SDK • Error compiling btstack program with Pico 2W

Hello, I'm trying to port a piece of software I'm working on from pico W to pico 2 W because i need to have the extra RAM, storage but mostly the extra PIO, I've just updated the SDK to version 2.1.0 and also the submodules but when I try to build I get this error that is referring to the SDK lib btstack and I can't get it to work.

Code:

home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/hci.c: In function 'handle_command_complete_event':/home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/hci.c:2888:22: error: 'hci_stack_t' has no member named 'le_whitelist_capacity' 2888 |             hci_stack->le_whitelist_capacity = packet[6];      |                      ^~In file included from /home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/hci.c:65:/home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/hci.c:2889:71: error: 'hci_stack_t' has no member named 'le_whitelist_capacity' 2889 |             log_info("hci_le_read_white_list_size: size %u", hci_stack->le_whitelist_capacity);      |                                                                       ^~/home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/btstack_debug.h:109:117: note: in definition of macro 'HCI_DUMP_LOG'  109 | #define HCI_DUMP_LOG(log_level, format, ...) hci_dump_log(log_level, "%s.%u: " format, BTSTACK_FILE__, __LINE__, ## __VA_ARGS__)      |                                                                                                                     ^~~~~~~~~~~/home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/hci.c:2889:13: note: in expansion of macro 'log_info' 2889 |             log_info("hci_le_read_white_list_size: size %u", hci_stack->le_whitelist_capacity);      |             ^~~~~~~~[ 93%] Building C object CMakeFiles/AudioPico_2W.dir/home/mattia/.pico-sdk/sdk/2.1.0/src/rp2_common/pico_cyw43_arch/cyw43_arch_freertos.c.o[ 93%] Building C object CMakeFiles/AudioPico_2W.dir/home/mattia/.pico-sdk/sdk/2.1.0/src/rp2_common/pico_unique_id/unique_id.c.o/home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/hci.c: In function 'hci_state_reset':/home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/hci.c:4867:14: error: 'hci_stack_t' has no member named 'le_whitelist_capacity' 4867 |     hci_stack->le_whitelist_capacity = 0;      |              ^~/home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/hci.c: In function 'hci_init':/home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/hci.c:5010:16: error: 'hci_stack_t' has no member named 'le_own_addr_type'; did you mean 'outgoing_addr_type'? 5010 |     hci_stack->le_own_addr_type =                       BD_ADDR_TYPE_LE_PUBLIC;      |                ^~~~~~~~~~~~~~~~      |                outgoing_addr_type[ 93%] Building C object CMakeFiles/AudioPico_2W.dir/home/mattia/.pico-sdk/sdk/2.1.0/src/rp2_common/hardware_flash/flash.c.o[ 93%] Building C object CMakeFiles/AudioPico_2W.dir/home/mattia/.pico-sdk/sdk/2.1.0/src/rp2_common/hardware_xip_cache/xip_cache.c.oIn file included from /home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/l2cap.c:57:/home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/ble/sm.h:229:1: error: unknown type name 'irk_lookup_state_t'  229 | irk_lookup_state_t sm_identity_resolving_state(hci_con_handle_t con_handle);      | ^~~~~~~~~~~~~~~~~~[ 93%] Building C object CMakeFiles/AudioPico_2W.dir/home/mattia/.pico-sdk/sdk/2.1.0/src/rp2_common/pico_cyw43_driver/cyw43_bus_pio_spi.c.ogmake[3]: *** [CMakeFiles/AudioPico_2W.dir/build.make:2166: CMakeFiles/AudioPico_2W.dir/home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/hci.c.o] Error 1gmake[3]: *** Waiting for unfinished jobs..../home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/l2cap.c: In function 'l2cap_cbm_run_channel':/home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/l2cap.c:2048:13: warning: implicit declaration of function 'l2cap_send_le_signaling_packet'; did you mean 'l2cap_send_signaling_packet'? [-Wimplicit-function-declaration] 2048 |             l2cap_send_le_signaling_packet( channel->con_handle, LE_CREDIT_BASED_CONNECTION_REQUEST,      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      |             l2cap_send_signaling_packet/home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/l2cap.c: In function 'l2cap_cbm_sm_packet_handler':/home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/l2cap.c:5405:35: warning: implicit declaration of function 'sm_event_pairing_complete_get_handle'; did you mean 'gap_event_pairing_complete_get_con_handle'? [-Wimplicit-function-declaration] 5405 |     hci_con_handle_t con_handle = sm_event_pairing_complete_get_handle(packet);      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      |                                   gap_event_pairing_complete_get_con_handlegmake[3]: *** [CMakeFiles/AudioPico_2W.dir/build.make:2222: CMakeFiles/AudioPico_2W.dir/home/mattia/.pico-sdk/sdk/2.1.0/lib/btstack/src/l2cap.c.o] Error 1gmake[2]: *** [CMakeFiles/Makefile2:2250: CMakeFiles/AudioPico_2W.dir/all] Error 2gmake[1]: *** [CMakeFiles/Makefile2:2257: CMakeFiles/AudioPico_2W.dir/rule] Error 2gmake: *** [Makefile:169: AudioPico_2W] Error 2
Anyone has any idea how to solve this?

Statistics: Posted by mattiabo94 — Wed Nov 27, 2024 3:04 pm



Viewing all articles
Browse latest Browse all 5391

Trending Articles