Hi,
I am new to pico/pico_w development and I am trying to create a working copy of some of the pico_w example code in a different location. I did this by mimicking the existing file path while making slight changes to the CMake files where necessary (like removing all the "add_sub-directories" pointing to examples I don't care about) and modifying the final CMake to reference whatever code I have in the current directory rather than reaching over to where the original example code is stored. this worked for a couple of the examples but I have run into an issue with the hsp_hs_demo example. Whenever I try to enable Btstack_stdin Cmake can't seem to find the `btstack_stdin_setup'. Rn I have it so it's just a straight up, unmodified copy of the original file path and Cmake (still pointing to the original example code) outside of the "pico-examples" folder. However, when I try to compile I still get the following error:
[build] c:/progra~1/raspbe~1/picosd~1.1/gcc-ar~1/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: pico_w/bt/hsp_hs_demo/CMakeFiles/picow_bt_example_hsp_hs_demo_background.dir/C_/Program_Files/Raspberry_Pi/Pico_SDK_v1.5.1/pico-sdk/lib/btstack/example/hsp_hs_demo.c.obj: in function `btstack_main':
[build] C:/Program Files/Raspberry Pi/Pico SDK v1.5.1/pico-sdk/lib/btstack/example/hsp_hs_demo.c:304: undefined reference to `btstack_stdin_setup
The odd thing is that I am using Vscode, and if I open a copy of hsp_hs_demo.c and use "find declaration" on the function in question it can find the .h and .c files where that function lives. So Vscode knows where this function is. That said, I am only passingly familiar with CMake so I am struggling to effectively debug the issue. Help would be appreciated.
I am new to pico/pico_w development and I am trying to create a working copy of some of the pico_w example code in a different location. I did this by mimicking the existing file path while making slight changes to the CMake files where necessary (like removing all the "add_sub-directories" pointing to examples I don't care about) and modifying the final CMake to reference whatever code I have in the current directory rather than reaching over to where the original example code is stored. this worked for a couple of the examples but I have run into an issue with the hsp_hs_demo example. Whenever I try to enable Btstack_stdin Cmake can't seem to find the `btstack_stdin_setup'. Rn I have it so it's just a straight up, unmodified copy of the original file path and Cmake (still pointing to the original example code) outside of the "pico-examples" folder. However, when I try to compile I still get the following error:
[build] c:/progra~1/raspbe~1/picosd~1.1/gcc-ar~1/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: pico_w/bt/hsp_hs_demo/CMakeFiles/picow_bt_example_hsp_hs_demo_background.dir/C_/Program_Files/Raspberry_Pi/Pico_SDK_v1.5.1/pico-sdk/lib/btstack/example/hsp_hs_demo.c.obj: in function `btstack_main':
[build] C:/Program Files/Raspberry Pi/Pico SDK v1.5.1/pico-sdk/lib/btstack/example/hsp_hs_demo.c:304: undefined reference to `btstack_stdin_setup
The odd thing is that I am using Vscode, and if I open a copy of hsp_hs_demo.c and use "find declaration" on the function in question it can find the .h and .c files where that function lives. So Vscode knows where this function is. That said, I am only passingly familiar with CMake so I am struggling to effectively debug the issue. Help would be appreciated.
Statistics: Posted by RhOoD — Tue Apr 09, 2024 8:23 pm — Replies 0 — Views 6