Enable LWIP with no CYW43 device in SDK, e.g. using UART #1662
Labels
No labels
bazel
bluetooth
board settings
boot_stage2
bug
build
c++
can't reproduce
clang
clib-interface
cmsis
code cleanliness
code size
compiler version issues
cyw43_driver
debug
discussion
documentation
duplicate
dynamic_clock
elf2uf2
enhancement
errata
filesystem
flash layout
floating point
FreeRTOS
hardware_adc
hardware_claim
hardware_clocks
hardware_dma
hardware_exception
hardware_flash
hardware_gpio
hardware_i2c
hardware_irq
hardware_pio
hardware_pwm
hardware_rcp
hardware_rtc
hardware_spi
hardware_sync
hardware_uart
hardware_vreg
hardware_watchdog
hardware_xosc
help wanted
host
IAR
installation
invalid
linker scripts
lto
lwip
mbedtls
missing API
needs reporter detail
networking
newlib
newlib-multicore
non-c
non-cmake
non-gcc
openocd
orphan PR
OS integration
pico_async_context
pico_base
pico_binary_info
pico_flash
picolibc
pico_lwip
pico_malloc
pico_multicore
pico_printf
pico_runtime
pico_stdio
pico_stdio_usb
pico_sync
pico_time
pico_util
pioasm
port
question
review
review2
rtos interop
runtime init
static library
svd
test
tinyusb
vscode
wifi integration
wontfix
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-raspberrypi/pico-sdk#1662
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have wondered about using the rp2040 chip with IP networking, but using the UART ports (or usb-serial, the recent PIO-based Ethernet MII interface, or even USB-CDC/ENCM) rather than the CYW43 device. For me, a UART/PPP or UART/SLIP interface would be fine.
Currently the pico-sdk makes this relatively hard when using the pico-sdk because as far as I can see the code makes the assumption that the only possible way to use the lwip library is on a pico-w board and when using the cyw43 chip. Consequently all the IP-related code is littered with calls to cyw43 arch code and conditionals about there being a cyw43 device.
So, I'm asking if RaspberryPi could modify the pico-sdk so that use of cyw43 was just one possible method of IP networking. Such changes would I imagine be to do something like:
To be clear I'm not asking for the other methods of using LWIP to be implemented, just asking that doing so doesn't require quite so much untangling of LWIP/CYW43-arch/CYW43-IP code. I don't know if it is practical or useful to think of multiple interfaces (e.g. a pico-w with a UART port, or an rp2040 using two UARTS)... it would be nice, but not necessary now.
I had wondered whether I might submit this as a PR but for a change of such wide scope I really want acceptance in principle from RPI to do this, as a minimum, and very preferably help doing it!
There are some changes in the pipeline. But I don't think there's anything stopping you using lwip in Pico builds. You obviously shouldn't be using any cyw43 libraries for Pico builds, but the lwip libraries are all separate as far as I'm aware.
see also https://github.com/raspberrypi/pico-sdk/blob/master/src/rp2_common/pico_lwip/doc.h
... which is also readable at https://www.raspberrypi.com/documentation/pico-sdk/networking.html#pico_lwip if you're not a fan of reading raw Doxygen 😉