OK. SO, in my top level CMakeLists.txt I added
add_compile_options(-DNO_SYS=0)
I then removed the other pico_cyw3* link libraries:
target_link_libraries(${ProjectName}
pico_stdlib
#pico_cyw43_arch_none # we need Wifi to access the GPIO
# pico_cyw43_arch_lwip_threadsafe_background
pico_cyw43_arch_lwip_sys_freertos
FreeRTOS-Kernel-Heap4
)
Now I get this error:
[build] /usr/bin/arm-none-eabi-gcc <big long compile line that includes -DNO_SYS=0 >
cyw43_arch_threadsafe_background.c.obj -c /opt/sdk/pico/pico-sdk/src/rp2_common/pico_cyw43_arch/cyw43_arch_threadsafe_background.c
[build] <command-line>: warning: "CYW43_LWIP" redefined
[build] <command-line>: note: this is the location of the previous definition
[build] /opt/sdk/pico/pico-sdk/src/rp2_common/pico_cyw43_arch/ : error: #error PICO_CYW43_ARCH_THREADSAFE_BACKGROUND requires lwIP NO_SYS=1
[build] 22 | #error PICO_CYW43_ARCH_THREADSAFE_BACKGROUND requires lwIP NO_SYS=1
[build] | ^~~~~
I did a clean and built again and get the same thing.
In the src/rp2_common/picocyw43_arch directory there is:
cyw43_arch_threadsafe_background.c
cyw43_arch_freertos.c
SO, why is it not choosing to build the freertos version?
So, why is it trying to build cyw43_arch_threadsafe_background.c instead of the cyw43_arch_freertos.c file since cyw43_arch_threadsafe_background was removed as a library target and cyw43_arch_freertos was added?
Still confused but for a different reason now.
Thanks
Chris
add_compile_options(-DNO_SYS=0)
I then removed the other pico_cyw3* link libraries:
target_link_libraries(${ProjectName}
pico_stdlib
#pico_cyw43_arch_none # we need Wifi to access the GPIO
# pico_cyw43_arch_lwip_threadsafe_background
pico_cyw43_arch_lwip_sys_freertos
FreeRTOS-Kernel-Heap4
)
Now I get this error:
[build] /usr/bin/arm-none-eabi-gcc <big long compile line that includes -DNO_SYS=0 >
cyw43_arch_threadsafe_background.c.obj -c /opt/sdk/pico/pico-sdk/src/rp2_common/pico_cyw43_arch/cyw43_arch_threadsafe_background.c
[build] <command-line>: warning: "CYW43_LWIP" redefined
[build] <command-line>: note: this is the location of the previous definition
[build] /opt/sdk/pico/pico-sdk/src/rp2_common/pico_cyw43_arch/ : error: #error PICO_CYW43_ARCH_THREADSAFE_BACKGROUND requires lwIP NO_SYS=1
[build] 22 | #error PICO_CYW43_ARCH_THREADSAFE_BACKGROUND requires lwIP NO_SYS=1
[build] | ^~~~~
I did a clean and built again and get the same thing.
In the src/rp2_common/picocyw43_arch directory there is:
cyw43_arch_threadsafe_background.c
cyw43_arch_freertos.c
SO, why is it not choosing to build the freertos version?
So, why is it trying to build cyw43_arch_threadsafe_background.c instead of the cyw43_arch_freertos.c file since cyw43_arch_threadsafe_background was removed as a library target and cyw43_arch_freertos was added?
Still confused but for a different reason now.
Thanks
Chris
Statistics: Posted by chriskot870 — Fri May 31, 2024 10:09 pm