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

Standard Pico MicroPython doesn't work with akuker/piccolo #1

Open
akuker opened this issue Mar 29, 2023 · 1 comment
Open

Standard Pico MicroPython doesn't work with akuker/piccolo #1

akuker opened this issue Mar 29, 2023 · 1 comment

Comments

@akuker
Copy link
Owner

akuker commented Mar 29, 2023

Version 1 of akuker/piccolo is not fully compatible with the Raspberry Pi Pico. A non-standard flash device was used, which requires a modification to the second stage bootloader. Someone with a similar issue is talked about here:
https://forums.raspberrypi.com/viewtopic.php?t=334143

With the current design, the BOOTSEL function will work to load u2f files. However, when the board tries to run the u2f file, the board hangs.

All of the software build for this board needs to have the PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H option enabled in the code.

For MicroPython, you typically don't re-build it.

The rebuild instructions for rp2040 MicroPython are available here: https://github.com/micropython/micropython/tree/master/ports/rp2

After you checkout micropython, you need to apply the following two patches.

Patch 1 should be applied to the root checkout of micropython
0001_piccolo_board_configuration.patch

Patch 2 should be applied to the pico-sdk (./micropython/lib/pico-sdk/). You may need to do make submodules before the pico-sdk is checked out.
0002_piccolo_rp2040_sdk.patch

The pre-built MicroPython with PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H enabled is also attached. Its build from revision 38e7b84

MicroPython_Firmware.zip

@akuker
Copy link
Owner Author

akuker commented Mar 29, 2023

Forked code available here: https://github.com/akuker/micropython-piccolo

But, you still need to apply the pico-sdk patch.

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

No branches or pull requests

1 participant