User Tools

Site Tools


projekte:sekwai:rp2040_arduino

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projekte:sekwai:rp2040_arduino [2025/08/01 21:43] – [Testprojekt] dominikprojekte:sekwai:rp2040_arduino [2025/08/02 06:23] (current) – [Bootmodus RP2040] dominik
Line 1: Line 1:
 ====== RP2040 Arduino ====== ====== RP2040 Arduino ======
  
-===== Autpmount RPi Headless =====+===== Automount RPi Headless =====
   * https://github.com/fasteddy516/pi-usb-automount   * https://github.com/fasteddy516/pi-usb-automount
 +  * ''cd ~ && wget https://github.com/fasteddy516/pi-usb-automount/releases/latest/download/pi-usb-automount.deb''
 +  * ''sudo dpkg -i pi-usb-automount.deb''
 +
 +===== Bootmodus RP2040 =====
 +Der RP2040 (und RP235x) können in den Bootmodus versetzt werden wenn die serielle Schnittstelle eingebunden ist (die über USB). 
 +Dann reicht ein Baudrate setzen auf 1200 und Port Close um den Bootmodus zu aktivieren. 
 +
 +  * ''sudo apt install python3-serial''
 +  * <code python | boot.py>
 +import serial
 +import sys
 +
 +if len(sys.argv) != 2:
 +    print("Usage: python reboot_to_bootloader.py <serial_port>")
 +    sys.exit(1)
 +
 +port = sys.argv[1]
 +try:
 +    ser = serial.Serial(port, 1200)
 +    ser.close()  # Closing the port triggers the reboot to BOOTSEL mode
 +    print(f"Rebooted {port} to BOOTSEL mode")
 +except Exception as e:
 +    print(f"Error: {e}")
 +    sys.exit(1)
 +</code>
 +  * ''python boot.py /dev/ttyACM0''
 +
 +**Bootmodus verlassen**
 +  * ''picotool reboot -a''
  
 ===== Installation CLI ===== ===== Installation CLI =====
projekte/sekwai/rp2040_arduino.1754077385.txt.gz · Last modified: by dominik

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki