RP2040-Zero not recognised by pi

Pi 3B+ & RP2040-Zero

After failing to get my MPU6050 working I’m now trying to connect an ADXL345 via a RP2040-Zero by following instructions here : Raspberry Pi Pico + ADXL345: Portable resonance measurement
However, the RP2040 is never recognised by the pi, ls -l /dev/serial/by-id/ or by-path , only sees the single connection which is the printer board and if i disconnect that none are seen. I’ve tried several cables, the RP2040 works fine with pc, appears as removable storage, recognises and self-flashes uf2 files including a blinking led demo I used as a test, & appears to load klipper.uf2 ok from pc (compiled on pi and copied over via winscp), but the pi never sees it. Voltage at the rp2040 is OK, & I’ve tried booting the pi before & after usb connection.

my .cfg would contain this if i could get the rp2040 id …

#[mcu RP2040]
#baud: 115200
#restart_method: command

Obtain definition by “ls -l /dev/serial/by-id/”

#serial: /dev/serial/by-id/usb-Klipper_rp2040_E66138935F154C28-if00
#[adxl345]
#cs_pin: RP2040:gpio1
#spi_bus: spi0a
klippy (33).log (104.3 KB)

I was able to do
sudo mount /dev/sda1 /mnt
sudo cp out/klipper.uf2 /mnt
sudo umount /mnt
one time, and when mounted I could see the address (/dev/serial/by-id/usb-Klipper_rp2040_E6626005A7478E2F-if00) but on reconnection/reboot it fails to connect, nothing appears under /dev/ or any /dev/sda …

Has anyone else experienced this or have any ideas what’s wrong ?

  1. Build the firmware for the RP2040
  2. Connect the Pico to your host while holding the boot button presse
  3. Use the mount method to copy klipper.uf2 to the mount
  4. Use the dmesg method to check how the Pico is registered

Usually the Pico are quite easy and trouble-free to flash

Thanks, so i did that again, flashed, saw the usb address appear (Klipper_rp2040_E6626005A7478E2F-if00), added that id into the printer.cfg and was able to do ACCELEROMETER_QUERY and get values … happy days or so I thought…
But then either trying to restart the pi or unplugging & reinserting the rp2040 usb it was as above, would not reconnect, ls /dev/serial/by-id/* shows only the printer mcu & the host wouldn’t run without me commenting out the mcu2040 section.
dmesg.txt attached, taken with rp2040 plugged in.

dmesg.txt (26.3 KB)

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.