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

MicroPython v1.23.0 + USB-compatible Pico firmware. #915

Merged
merged 8 commits into from
Jun 4, 2024
Merged

Conversation

Gadgetoid
Copy link
Member

@Gadgetoid Gadgetoid commented Mar 25, 2024

This PR brings us forward to MicroPython v1.23.0, which includes USB compatibility.

Our builds will not be globally enabled for USB at the moment since it's a new, complicated and hefty feature.

I am including a dedicated Pico build with USB support for experimentation.

⚠️ To fit all the USB goodness into the build (along with our ever growing library of drivers) it adjusts the filesystem/firmware split on a 2MB Pico to 1Mb/1Mb. This will trash the filesystem of any Pico it's flashed to.

@Gadgetoid Gadgetoid force-pushed the feature/usb branch 6 times, most recently from 9126c60 to f15aa36 Compare March 30, 2024 20:31
@Gadgetoid
Copy link
Member Author

Hopefully caught up with the major refactor mentioned in micropython/micropython-lib#558

I have not frozen midi, keyboard or mouse modules since that 2MB flash is getting reeeaally cozy.

CI will always run against the latest MicroPython commit.
Includes fixes for:

* "mp_obj_malloc_with_finaliser" replacing "m_new_obj_with_finaliser"
* "STATIC" macro dropped in favour of "static"
@Gadgetoid Gadgetoid force-pushed the feature/usb branch 2 times, most recently from fec37d8 to c980d86 Compare June 3, 2024 11:03
@Gadgetoid
Copy link
Member Author

Needs the STATIC fix to ulab, merged here: v923z/micropython-ulab#664

@Gadgetoid Gadgetoid force-pushed the feature/usb branch 3 times, most recently from 5e5e1f8 to 2631794 Compare June 4, 2024 16:21
Gadgetoid and others added 4 commits June 4, 2024 19:54
⚠️ Warning: flash/firmware split is now 1Mb/1Mb to accomodate USB libs.

BACK UP YOUR PICO before flashing this build. It *will* trash your filesystem.

* Add new RP_PICO_USB board
* Use commit 932f76c6ba64c5a3e68de3324556d9979f09303b for micropython/micropython@932f76c
@Gadgetoid Gadgetoid changed the title Experimental: Attempt to build USB firmware. MicroPython v1.23.0 + USB-compatible Pico firmware. Jun 4, 2024
@Gadgetoid Gadgetoid merged commit 3440ab2 into main Jun 4, 2024
30 checks passed
@Gadgetoid Gadgetoid deleted the feature/usb branch October 31, 2024 10:46
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.

1 participant