Questions tagged [raspberry-pi-pico]

For questions relating to the Raspberry Pi Pico microcontroller.

The Raspberry Pi Pico is a microcontroller designed by the Raspberry Pi Foundation. It supports MicroPython, CircuitPython, and C.

The first Pico version was released in 2021.

512 questions
7
votes
4 answers

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 want the Pico to automatically mount as USB storage…
5
votes
3 answers

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 Reference Manual and I found out that there's MOVS…
vbezhenar
  • 11,148
  • 9
  • 49
  • 63
5
votes
2 answers

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 auto runs but I want another program to run…
4
votes
2 answers

How to run code on the second core on Raspberry Pico

I'm trying to get multicore working on my pico, #include #include "pico/stdlib.h" #include "pico/multicore.h" void core1_main() { stdio_init_all(); while (1) { uint32_t t = multicore_fifo_pop_blocking(); …
raider0ne
  • 83
  • 6
4
votes
1 answer

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". The code compiles and works fine but it would be nice to…
Jake A
  • 83
  • 1
  • 8
3
votes
1 answer

Custom HID UPS - the host does not update the data from reports

I'm trying to develop a custom UPS using TinyUSB on Raspberry Pi Pico and getting it discovered by UPower on my Ubuntu host. Currently my device is detected, but the host is not reading any information: root@user-HP:~# upower -i…
Anton
  • 440
  • 3
  • 10
3
votes
1 answer

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 file system on the PICO) and then read them from…
Shripathi Kamath
  • 310
  • 3
  • 10
3
votes
0 answers

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 temp_hum_DHT_code.py from machine import Pin import time from…
3
votes
1 answer

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 update algorithm. When device reboot, MCUboot check if…
Thisora
  • 51
  • 4
3
votes
2 answers

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 #include "pico/stdlib.h" #include…
pawrok
  • 43
  • 6
3
votes
1 answer

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 internal chips to that time so that its utime library…
Flood
  • 345
  • 7
  • 12
3
votes
2 answers

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: library ArduinoUniqueID claims to run on avr,…
3
votes
1 answer

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 read a specific register from the MPU6050, I always…
inzig0
  • 51
  • 1
  • 3
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
3
votes
1 answer

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

Is there any library function or other way for a VScode 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 find anything.
tim11g
  • 1,935
  • 5
  • 27
  • 41
1
2 3
33 34