Questions tagged [rp2040]
67 questions
3
votes
1 answer
Run code with cargo run on Raspberry Pi Pico using elf2uf2-rs
I try to run Rust code on a Raspberry Pi Pico. A simple "blink" example application is successfully (as it seems) built using:
cargo build --release --target=thumbv6m-none-eabi
I have installed elf2uf2-rs with:
cargo install elf2uf2-rs
And I then…

Jonas
- 121,568
- 97
- 310
- 388
2
votes
0 answers
How to make rp2040 DynPin usable for Adc with OnesShot read
I am trying to convert from a type erased type to a value type.
I have the following struct that accepts DynPin , which is the type erased type of a rp2040 gpio pin.
pub struct PhProbe{
analog_read_pin: DynPin,
}
Now using the rp2040 analog to…

elhe
- 122
- 10
2
votes
1 answer
Launching core 1 on the RP2040 with baremetal assembly
As I understand the documentation, 2.8.2, the process of launching core 1 is to send a sequence of values, with the final 3 being the vector table, stack pointer, and entry point, over the FIFO, while core 1 will echo the values back to you.
From…

Will Thomas
- 51
- 4
2
votes
1 answer
How do I use both cores on an RP2040 in Rust?
I have read that the RP2040 has two cores. How can I use the second core in a Rust program?
I do not need to go all the way to generic multithreading, I just want to have two threads, each of which owns one of the cores, and they can communicate…

Mutant Bob
- 3,121
- 2
- 27
- 52
2
votes
1 answer
Writing and Loading Code from QSPI Flash Memory from RP2040
I bought an RP2040 board with 16MB QSPI Flash Memory in the board:
The Flash Memory w25q128 is connected to QSPI dedicated pins of the RP2040:
I was finding out how to access this data from the RP2040 datasheet:
But I didn't find out how…

Chandler Klüser
- 51
- 2
- 11
2
votes
1 answer
Problem with machine.Timer() and _thread on Raspberry Pi Pico (RP2040)
I am trying to run balance() function on one thread and use Timer on a separate one. Both methods when run separately work fine, but when I try to use them both at once the issr() function which is called by a Timer just stops working after few…

AntCwo
- 21
- 3
2
votes
1 answer
Cannot connect Nano RP2040 Connect running on Micropython to WiFi
I have a Nano RP2040 Connect with Micropython on it. I need to connect it to WiFi. Micropython documentation says I need to import the "network" module, but when I try importing it, I get the no module named 'network' error. I assume the module is…

Nikita Kotsehub
- 21
- 1
1
vote
0 answers
**PICO PI** UART: How to receive (and process) chunks of serial data using DMA
Using a Raspberry Pi Pico (i.e RP2040 chip), I want to receive and process serial data (no TX). The data comes in 500 byte chunks, @9600baud,8N1. A new data chunk is sent roughly every second.
Using the UART, it was possible for me to obtain the…

user12537
- 11
- 1
1
vote
0 answers
SSD1306 - tinydraw: screen udates are very slow
I am trying to update an image on screen based on input (button pressed)
the code look roughly like this:
package main
import (
"machine"
"time"
"image/color"
"tinygo.org/x/drivers/ssd1306"
"tinygo.org/x/tinydraw"
)
func main() {
…

NoLoop
- 11
- 1
1
vote
0 answers
CMake is unable to find library on Raspberry Pi Pico project. ld cannot find -lcustom_gpio: No such file or directory
I have been learning to write drivers for a Pi Pico and I implemented my own GPIO library.
But I am unable to get it to build as the linker is not able to find the library (-lcustom_gpio).
This is how my project directory looks.
.
└── LED_Blink/
…

ArunVijay0718
- 11
- 1
1
vote
0 answers
rp2040_hal SPI initialisation no read, write, transfer function
My struct has a member which is a SPI type from the docs.
pub struct TMC429
where
D: SpiDevice,
CS: OutputPin,
CS::Error: core::fmt::Debug
{
spi: Spi,
chip_select: CS,
motors:…

elhe
- 122
- 10
1
vote
1 answer
How to fix pulseio module error in circuitpython on raspberry pi Pico?
Hello i use a raspberry pi Pico with RP2-80 20/34 P64M15.00 TTT chip with circuitpython 7.3.1 programing language and when i try to use pulseio module to capture a signal from a IR sensor i get that error,how can i fix this?
This is my code:
import…

Robert_dev
- 19
- 4
1
vote
1 answer
Why can't i move my mouse and press a button at the same time in circuitpython on a tiny 2040 (runs on rp2040 just like raspberry pi pico)
i am writing something which should let me use a joystick as a Spacemouse that i want to use in fusion 360, im doing this by making the mouse move and pressing the middle mouse button and shift, and releasing it when the joystick stops moving, but…

FaultyDaantje
- 11
- 2
1
vote
0 answers
Programming external QSPI flash Raspberry Pi Pico
I want to reprogram the external flash of a raspberry Pico via SWD line.
This feature must be implemented in a different microcontroller, not from a Linux computer so the OpenOCD library cannot be used.
I already wrote a C library that is able to…

Luca
- 61
- 1
- 7
1
vote
4 answers
SparkFun RP2040 and MicroPython
I am a software engineer working on a microcontroller system for a side project. The microcontroller I am using is the SparkFun ProMicro (based on the RP2040 board). I am trying to flash the board so that I can write data to the onboard flash…

TomM
- 175
- 9