Using QSPI pins as a GPIO (for example for Blink) #2417
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#2417
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?
Hi, I'm using RP2350 without Flash. I managed to run UART on pins SCLK, CS, SD0, SD1, SD2, SD3. But I don't understand how to use them as SIO, for example to blink a LED or Read State
Sounds like a duplicate of #1799 ?
But pinging @andygpz11 as he has also been using Flash-less RP2350s (on an internal project), so he might have some helpful tips?
@lurch Thanks for the ping.
@Fantonrko I have attached a zip of an example module I have generated by extracting the relevant parts from some source code we are using internally.
To get it building I just added the module to one of the
pico-examples/gpio/...examplesCMakeLists.txtfile and added a call toqspi_and_gpio_test_setup_pins_builds()in that example'smain()function to make sure the extra module got built.It does build but it is not currently easy for me to test this. That said, I would expect this to work for you.
Two things to note although I suspect you are well aware of the first point:
Please see attached, good luck and please keep us posted.
qspi_gpios.zip
thanks @andygpz11
we also had trouble finding
GPIO_FUNC_SIOinrp2040/hardware_structs/include/hardware/structs/io_bank0.hit would be nice if pico-sdk provided an interface to
qspi_and_gpio_initandqspi_only_set_functionwe have some rp2040's that share the same flash and after disabling the flash - re-use the pins for communication
( but now that the rp2350 is out this is not required )
Thanks all! Will check all this info