Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support programming rp2350 #28

Merged
merged 1 commit into from
Mar 7, 2025
Merged

support programming rp2350 #28

merged 1 commit into from
Mar 7, 2025

Conversation

hathach
Copy link
Member

@hathach hathach commented Mar 5, 2025

  • support programming rp2350
  • add a new example to program metro rp2350 from firmware.h
  • rename program_rp2040_uf2.ino to program_rp2_from_sdcard.ino change include SdFat.h to SdFat_Adafruit_Fork.h

@ladyada due to an issue with better_timeouts PR sekigon-gonnoc/Pico-PIO-USB#164 rp2040 couldn't work with rp2350 device. While waiting for troubleshooting, you can use this PR for pio-usb instead sekigon-gonnoc/Pico-PIO-USB#159. You also need to update TinyUSB Arrduino to latest as well adafruit/Adafruit_TinyUSB_Arduino#498

Program RP2 by copy UF2 from Internal Flash
LCD: UnkDev cafe:4003           
Program RP2 by copy UF2 from Internal Flash
LCD: RP2350 Bootldr             
LCD: Copying firmware           
Copying UF2 from Flash to USBHFS
LCD: 84.5KB 1.9s     
Completed 84480 bytes in 1.94 seconds.
Speed : 43.55 KB/s
LCD: No USB Device   
LCD: UnkDev cafe:4003

… from firmware.h

rename program_rp2040_uf2.ino to program_rp2_from_sdcard.ino
change include SdFat.h to SdFat_Adafruit_Fork.h
// firmware.h is converted using tools/file2carray.py e.g
// python tools/file2carray.py cdc_msc.uf2
// above command will generate cdc_msc.uf2.h with bindata, bindata_len
#include "metro_rp2350_cdc_msc.uf2.h"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ladyada you can use this new sketch to program rp2350, this use firmware header, which drop the need for SDcard (less thing to worry about). To generate header firmware from uf2 file. Please run tools/file2carray.py

python tools/file2carray.py cdc_msc.uf2

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it!

@hathach hathach merged commit 0b40846 into master Mar 7, 2025
4 checks passed
@hathach hathach deleted the support-program-rp2350 branch March 7, 2025 04:15
@ladyada
Copy link
Member

ladyada commented Mar 7, 2025

thank you! glad it was not me :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants