Skip to main content

Questions tagged [raspberry-pi-pico]

For questions relating to the Raspberry Pi Pico microcontroller.

raspberry-pi-pico
Filter by
Sorted by
Tagged with
7 votes
4 answers
8k views

How can I make the Raspberry Pico not automount as USB storage while using Circuit Python

I am using Circuit Python on a Raspberry Pi Pico to give me hardware buttons for keyboard shortcuts. I am using Circuit Python as opposed to MicroPython because it has the USB_HID library. I don't ...
jsaispasmoi's user avatar
6 votes
3 answers
5k views

How can you make a micropython program on a raspberry pi pico autorun?

I have used the software Thonny to send programs to my raspberry pi pico. I am trying to make a specific program auto run when my pico is plugged in. At the moment another program which is on the pico ...
Campbell's user avatar
6 votes
3 answers
6k views

OSError: [Errno 12] ENOMEM

I use code from here. After running multiple times from Thonny without issue I got: OSError: [Errno 12] ENOMEM I used nuke.uf2 to clear storage on Raspberry Pi Pico W. The error re-occurred after ...
JohanW28's user avatar
6 votes
4 answers
6k views

How to run code on the second core on Raspberry Pico

I'm trying to get multicore working on my pico, #include <stdio.h> #include "pico/stdlib.h" #include "pico/multicore.h" void core1_main() { stdio_init_all(); while ...
raider0ne's user avatar
  • 103
5 votes
1 answer
6k views

VS Code doesn't recognize Pi Pico SDK headers

So I have everything setup to compile in Windows Subsystem for Linux and that is all working fine. I'm writing my code in VS Code and it doesn't recognize the headers such as "pico/stdlib.h"....
Jake A's user avatar
  • 125
5 votes
3 answers
2k views

Why MOV instruction is replaced by ADD instruction

I have the following instruction: mov r1, r7 in my assembly code but after looking into disassembly, I've found that actual generated code was adds r1, r7, #0 I checked with ARMv6-M Architecture ...
vbezhenar's user avatar
  • 12k
4 votes
3 answers
1k views

"cannot read spec file" trying to create uf2 file

I am trying to create a uf2 file for a Raspberry Pi Pico for a swarm robot. I get: arm-none-eabi-gcc: fatal error: cannot read spec file 'nosys.specs': No such file or directory I installed the SDK: ...
Neil Patel's user avatar
4 votes
1 answer
8k views

Read/write data over Raspberry Pi Pico USB cable

How can I read/write data to Raspberry Pi Pico using Python/MicroPython over the USB connection?
basil_man's user avatar
  • 494
4 votes
2 answers
5k views

Is it possible to run OpenCV on Raspberry Pi Pico onboard?

I need to build standalone module which records video from rasberry pi camera to sd card (through external module) when the motion on video is detected. So, I need to run OpenCV that I will use for ...
Robotex's user avatar
  • 1,016
4 votes
2 answers
409 views

Raspberry Pi Pico 64 color VGA

I have found these examples from Hunter Adams to generate a VGA signal using the Raspberry Pi Pico. It is a simple setup that I want to extend. It uses only 3 pins for the RGB colors so it is able to ...
Smek's user avatar
  • 1,208
4 votes
0 answers
2k views

MicroPython websockets library for Raspberry Pi Pico W?

I'm working on a project where I need multiple devices to connect to a shared server that can exchange data in realtime. I was approaching this problem by creating a websocket server on a Raspberry Pi ...
Mathias's user avatar
  • 338
3 votes
1 answer
4k views

CMake Error while trying to build a uf2 file for the Raspberry Pi Pico

While trying to execute the cmake -G "NMake Makefiles" .. command I'm getting the error CMake Error: Error required internal CMake variable not set, cmake may not be built correctly# ...
Felix's user avatar
  • 33
3 votes
1 answer
9k views

How to have the Pico W set correct time on boot

When running on batteries the Pico W's clock/utime starts at 2021-01-01 00:00:00 by default. At every boot it obviously should: Get the current time on its own, likely off the internet. Set it's ...
Flood's user avatar
  • 345
3 votes
3 answers
3k views

Arduino RP2040 Pico Unique ID

I am using Raspberry pi pico on Arduino IDE. I am using this library githublink for it. There is 3 examples in this link, ArduinoUniqueID and ArduinoUniqueID8 doesn't print anything. Ide says WARNING: ...
Tryingtogetsome's user avatar
3 votes
2 answers
1k views

Why voltage from Raspberry Pi Pico ADC is not equal 0, when nothing is connected to the pin?

I was trying to read some voltages from a sensor, but before doing that, I checked how readings would look like, when nothing is connected to pins. Here's my code based on examples: #include <stdio....
pawrok's user avatar
  • 43
3 votes
2 answers
7k views

CMake is not enabling exceptions

I have a small C++ program that I need to use exceptions in. When I try to compile it I get the error: error: exception handling disabled, use '-fexceptions' to enable In my CMakeLists.txt I set the ...
Mr.Samson's user avatar
3 votes
1 answer
513 views

Read value from SPI on Raspberry Pi Pico using Rust

I am trying to read a value from a sensor, BMP280 over SPI on a Raspberry Pi Pico. But I am getting an unexpected value. I created a new repo based on the rp2040-project-template and modified it to ...
Jonas's user avatar
  • 126k
3 votes
1 answer
13k views

How do I manually install a library in Thonny

I want to install this library using Thonny https://github.com/adafruit/Adafruit-uRTC to use a DS3231 with my Raspberry Pi Pico. I cannot install it via the built-in package manager feature for two ...
Coding Flow's user avatar
  • 21.8k
3 votes
1 answer
1k views

Error including WiFi.h in PlatfarmIO pi pico

I'm trying to connect my pi pico W with the WiFi.h library, but once I build (compile) the script it fails and brings a ton of error messages in the terminal: Removing unused dependencies... Verbose ...
João's user avatar
  • 61
3 votes
1 answer
2k views

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 ...
Jonas's user avatar
  • 126k
3 votes
1 answer
547 views

Host does not update data from reports

I'm trying to develop a custom UPS using TinyUSB on a Raspberry Pi Pico and getting it discovered by UPower on my Ubuntu host. I'm trying to signal a charging state to the host, but the host reports ...
Anton's user avatar
  • 470
3 votes
1 answer
2k views

How to read FLASH contents on a Raspberry Pico?

The process to transfer a .UF2 image of an application onto a Raspberry PICO device is well-documented and works as advertised. Are there ways to flash multiple files (or contents, since there is no ...
Shripathi Kamath's user avatar
3 votes
1 answer
794 views

Hard fault RP2040 pico Zephyr

I'm using RP2040 under Zephyr and MCUboot. The final goal is to be able to update the firmware using MCUMGR over an UART bus. MCUboot use A/B seamless (dual slot memory) method to provide a safe ...
Thisora's user avatar
  • 51
3 votes
1 answer
824 views

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 ...
Will Thomas's user avatar
3 votes
1 answer
2k views

Cannot send serial data from raspberry pi pico ( c sdk )

I'm making a remote controlled machine using a pi pico to drive the motors and read some sensors, and a raspberry pi 4 to send commands to the pi pico via serial and host the web interface. I am ...
lasb3tas's user avatar
3 votes
0 answers
143 views

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{ ...
elhe's user avatar
  • 142
3 votes
0 answers
404 views

ImportError: can't import name InvalidChecksum

in raspberry pi pico board when i tried to connect 3v3 with 3v3 of raspberry pi pico , gnd to gnd of raspberry pi pico and dat to g16 and ran this belo code on thonny micropython . main ...
captain2001's user avatar
3 votes
1 answer
643 views

MPU6050 only outputs 0x00 on I2C with MicroPython

I've been trying to talk to my MPU6050 with a Pi Pico running MicroPython. I can verify the I2C is working because when running i2c.scan(), I get the MPU6050 address(0x68). However, when trying to ...
inzig0's user avatar
  • 61
3 votes
1 answer
2k views

How can I determine available RAM on Raspberry Pi Pico from a C program?

Is there any library function or other way for a C program on a Pico to determine the RAM available to it? (other than attempting malloc()) I've reviewed the API documentation in the SDK and didn't ...
tim11g's user avatar
  • 1,955
2 votes
1 answer
10k views

How can i get raspberry pi pico to communicate with PC / external devices

For example when i give 5 to the code, i want to turn on the led in our rpi pico (rpi pico connected to pc with cable) #This code will run in my computer (test.py) x=int(input("Number?")) ...
Æsad's user avatar
  • 45
2 votes
3 answers
1k views

Device descriptor request failed

I tried working with my RPi Pico today and my computer doesn't recognize the usb I triple checked the cable is power and data. And yes I'm holding the button
Xy77's user avatar
  • 41
2 votes
1 answer
2k views

How to read from UART peripheral with a DMA channel?

I struggled to figure out, how to read from a UART peripheral into a larger queue with DMA. The documentation does provide quite a bit of information, but I found it difficult to figure out how to ...
asynts's user avatar
  • 2,362
2 votes
1 answer
184 views

How to interface with BNO085 using Raspberry Pi Pico?

I'm trying to read sensor data (BNO085) from my raspberry pi pico w using the C/C++ SDK (Circuit Python isn't feasible because of timing constraints).I am using I2C. I've written a basic C program to ...
Adan's user avatar
  • 58
2 votes
1 answer
144 views

How to send large (>2KB) packets using [BTstack] BLE

I am writing a C application on a raspberry pico W which utilizes the BTstack library. I have a characteristic that points to a 2 kB buffer of data. When a client device signals to ready this data, I ...
LaBeaux's user avatar
  • 92
2 votes
1 answer
2k views

How to add arguments to launch.json in VS Code

I am trying to debug the RP2040 using the new picoprobe. When i execute the following command openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000" OpenOCD works ...
varun koganti's user avatar
2 votes
1 answer
628 views

How can i use a pico-SDK library in another library with Cmake?

So, my problem is that i have created a .h and a .c file that need to use the hardware/i2c.h and the pico/stdlib.h inside them, but when building the project through cmake the two libraries can't be ...
Francesco Biancucci's user avatar
2 votes
1 answer
2k views

I2C not working on the Raspberry Pi Pico W with MicroPython

Trying to use the Raspberry Pi Pico W and some i2c devices with micropython but running into issues. When I try to scan one device, it seems fine, but as soon as any more come onto the I2C bus, it ...
jacoboneill2000's user avatar
2 votes
1 answer
468 views

Can't modify peripheral registers on the rp2040

I'm scratching my head because I can't write and read some/most peripheral registers. I'm using Rust here and the setup code from the rp2040-hal. The following code tries to write 0x42 to the DMA's ...
Jounathaen's user avatar
2 votes
1 answer
2k views

Raspberry Pi Pico DMA to a I2C device

I'm using the C/C++ SDK of the Pi Pico and trying to use the DMA to read I2C data in the background. However, there is no example script in Pico-Examples that shows how to use the DMA to read from I2C....
SKrish's user avatar
  • 65
2 votes
2 answers
2k views

Error initializing ssd1306 OLED connected to Raspberry Pi Pico

What's going on? i2c.scan() returns [60] as it should: from machine import Pin, I2C import ssd1306 i2c = I2C(0, sda=Pin(0), scl=Pin(1), freq=400000) oled=ssd1306.SSD1306_I2C(128, 64, i2c) Traceback (...
Gordon Shephard's user avatar
2 votes
1 answer
3k views

Weirdness using the raspberry pi pico uart with the c sdk

I am extremely disconcerted. I'm making a remote controlled machine using a pi pico to drive the motors and read some sensors, and a raspberry pi 4 to send commands to the pi pico via serial and host ...
lasb3tas's user avatar
2 votes
1 answer
2k views

CMake not making uf2 file but no errors

I'm trying to create a hello world program but whenever I try to build it no errors are thrown up but I can't find the .uf2 file to put onto my rasberry pi pico HelloWorld.cpp #include <stdio.h> ...
Chris22's user avatar
  • 31
2 votes
1 answer
966 views

Send data between two pico with LoRa

I am trying to send data from a Pico Raspberry Pi to another Pico through an SX1262, but I can't send it. I already tried the ping pong example, but the SX1262 library gives me errors in the Thonny ...
Marwa Moussa's user avatar
2 votes
1 answer
2k views

Error when compiling code for raspberry pi Pico using MinGW

I am trying to setup the toolchain for programming a raspberry pi pico using the pico_sdk and MinGW. I have followed this guide : here I am on windows 10, visual studio code. Everything is setup ...
patate1684's user avatar
2 votes
1 answer
4k views

How do I read and analyse csv files in micropython?

I'm setting up a Raspberry Pi Pico to log temperature, humidity etc. to a csv file and to show data on a small OLED screen. Every hour it will log a new line of data delimited by commas to the file. I ...
Chris A's user avatar
  • 23
2 votes
1 answer
50 views

Micropython: _thread module imported but not showing methods

Using PyCharm Community Edition 2023.3.2 with Micropython 1.4.3-2023.3 installed and enabled in PyCharm, I want to utilize the 2-core multithreading on a Raspberry Pi Pico W using the experimental &...
codyr's user avatar
  • 21
2 votes
1 answer
180 views

missing data when recording audio on raspberry pi pico

i wanted to record audio using max9814 and raspberry pi pico with micropython/circuitpython but when i recorded the data, some parts of it lose because it's trying to read the data and write the data ...
Alirezaarabi's user avatar
2 votes
0 answers
291 views

'micropico.initialise' not found

For Raspberry Pi Pico I'm trying to use Visual Studio Code. I used this video to set everything up, but when I press ctrl+shift+p ("run > MicroPico > Configure Project" command) I get: ...
Achen's user avatar
  • 21
2 votes
0 answers
193 views

How to flash an RPI board wirelessly?

How can I achieve wireless flash of an RPI Pico W board? I need this because during testing of my device, I will need to tune it and flash the board frequently which will save time rather then ...
unlucky_chap's user avatar
2 votes
1 answer
559 views

Streaming mp3 audio from a URL in circuitPython

I want to stream mp3 audio from a URL using the Raspberry Pi Pico W. This is my code: import adafruit_requests import wifi import socketpool import ssl import board import audiomp3 import audiobusio ...
Dukeofduke's user avatar

1
2 3 4 5
14