Questions tagged [rp2040]
67 questions
1
vote
1 answer
PICO hangs on micropython object creation
I recently started working on a small driver for the raspberry pico and the bme280 sensor. I wanted to use the official bosh API written in C and therefore decided to write all the code in C using the micropython C api to write usermodules. I…

Leonardo
- 56
- 7
1
vote
1 answer
Terminating second thread in micropython on Raspberry Pi Pico
I use both cores of RP2040 chip. Main one runs main loop and second handles LCD display.
I start second one on the thread like
_thread.start_new_thread(taskLCD, (100,0.5))
where taskLCD updates LCD every half os second.
Sometimes when I restart…

Alex
- 4,457
- 2
- 20
- 59
0
votes
1 answer
How to correctly share peripherals/GPIO between threads/cores using Rust embedded with embassy on RP2040
I am learning Rust embedded right now and I am trying to implement multi-core processing in my application. I am unsure on what is the right way to share peripherals like GPIO pins between threads/cores.
I am using an Seeduino XIAO RP2040 for this…

sgiessmann
- 409
- 1
- 5
- 10
0
votes
1 answer
Nested UART pin change interrupts
I'm trying to implement a UART interrupt in MicroPython on an RP2040-based custom board loaded with Adafruit Feather MicroPython 1.2. While I'm aware this feature is typically available for WiPy devices, it's essential for my custom board.
I can't…

Aaditya Dengle
- 136
- 1
- 8
0
votes
0 answers
Is there any way to flash a raspberry Pi Pico with a firmware contained in a pointer inside it?
I'm using a raspberry Pi Pico for a personnal project (written in C language) and my problem is that my Pico is unreachable once it's installed so I have to take it out everytime I want to update my Software which takes forever.
My pico is linked to…

Bibibou
- 11
- 4
0
votes
0 answers
Error: selected processor doesn't support (ex.file)
I tried to write a second bootloader code. I created app file, data file and main file. After that I executed CMake file code. That is completed. But when I try to build cmake file, I get a long error:
[build]…
0
votes
1 answer
Unable to display sensor reading from Respberry pi pico to android serial terminal through RC-06
Code:
from machine import Pin, UART
uart = UART(0,9600)
while True:
if uart.any():
uart.write('t')
command = uart.readline()
print(command) # uncomment this line to see the recieved data
Connected RC-06 to respberry pi pico…

user2626709
- 3
- 3
0
votes
0 answers
micropython qmi8658 exposing the AttitudeEngine quaternion
I'm trying to expose the AttitudeEngine quaternion on the QMIi8658 mentioned in the documentation. It's part of the WaveShare RP2040-Touch-LCD-1.28 module. Their original demo sketch exposes the accelerometer and Gyroscope sensors but the the…

Victor Lazaro
- 545
- 2
- 6
- 16
0
votes
1 answer
How would I port Arduino C++ libraries to Rust Embedded (i.e. rp-hal)
Does anyone have any way I could port an Arduino C++ library like the Adafruit LIS3DH or Adafruit SSD1306 libraries to Rust Embedded especially for the RP2040?
I've got lots of external devices that I see aren't supported (yet!) by a library on the…

Lamb Sauce
- 81
- 9
0
votes
0 answers
How to organise data flow for DSP application (using I2S)?
I am creating a DSP application using the RP2040, an I2S ADC and an I2S DAC.
One of the primary requirements is low latency, the second is efficient usage of the CPUs to calculate the actual DSP algorithm.
I2S input and output is implemented using…
0
votes
0 answers
DW1000 with RP2040 (Not able to establish communication b/w two DW1000 module using RP2040)
I have two DW1000 UWB modules, and I want to use them as an Anchor and TAG. I am currently using the Arduino DW1000 library. However, I encountered an error during SPI initialization related to mbed OS. I would appreciate any assistance in resolving…

Amit Sharma
- 1
- 1
0
votes
2 answers
UART TX produce endless interrupts. How to acknowlage the interrupt?
Raspberry Pi Pico RP2040
When transmitting the UART produce endless interrupts.
I edited the example "uart_advanced" to show the problem, it occurs with or without fifos enabled.
to show the problem on the oscilloscope I toggled gpio in the…

teach me
- 453
- 5
- 20
0
votes
0 answers
What compiler and options do I need to compile Raspberry Pi RP2040 code on Godbolt?
I would like to explore code optimisation on the Raspberry Pi Pico's microcontroller, RP2040, using Godbolt, but I'm not sure which compiler options to use. The microcontroller is an Arm Cortex-M0. I'd be happy if I could at least set it to compile…

Rocketmagnet
- 5,656
- 8
- 36
- 47
0
votes
0 answers
rp2040_hal I2CPeripheralEventIterator usage
Coming from C# and the .NET world, I needed to go bare metal with some IC (in this case the rp2040), and choose Rust based on every comment that I saw for the language.
Until now, I been able to easily use gpio, I2C as master, but my usage case, the…

Ricardo Soares
- 1
- 1
0
votes
0 answers
Decoding manchester mit custom preamble in PIO
I'm trying to decode a MVB train protocol using RP2040. The protocol is using special preamble for master and slave frames. Frame looks like:
11111 01100011100010101 01 10 01 01 01 01 01 01 01 10 01 10 01 01 01 01 01 01 10 01 01 01 10 10 …

Libor Tomsik
- 668
- 7
- 24