micropython: Update to 1.24.1, with cherrypicked patches for pico-sdk 2.1.1 #11

Merged
matthias merged 2 commits from micropython-1.24.1-pico-2.1.1 into main 2025-03-17 20:07:34 +00:00
Owner

Main reason for update is the higher clock of 200 MHz which is now allowed for rp2040, which helps solve some performance issues with the MP3 decoder.

Also, finally add CI build of firmware.

Main reason for update is the higher clock of 200 MHz which is now allowed for rp2040, which helps solve some performance issues with the MP3 decoder. Also, finally add CI build of firmware.
matthias added 1 commit 2025-03-10 16:46:43 +00:00
micropython: Update to 1.24.1, with cherrypicked patches for pico-sdk 2.1.1
All checks were successful
Check code formatting / Check-C-Format (push) Successful in 6s
Check code formatting / Check-Python-Flake8 (push) Successful in 8s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 4s
Run unit tests on host / Run-Unit-Tests (push) Successful in 7s
0a1904045f
matthias added 1 commit 2025-03-10 17:19:51 +00:00
ci: Add firmware build step
Some checks failed
Build RPi Pico firmware image / Build-Firmware (push) Failing after 1m56s
Check code formatting / Check-C-Format (push) Successful in 6s
Check code formatting / Check-Python-Flake8 (push) Successful in 9s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 5s
Run unit tests on host / Run-Unit-Tests (push) Successful in 7s
5bf9d70823
Try to build the actual firmware image in CI
matthias added 1 commit 2025-03-10 17:24:06 +00:00
Remove reference to submodule that no longer exists
Some checks failed
Build RPi Pico firmware image / Build-Firmware (push) Failing after 2m3s
Check code formatting / Check-C-Format (push) Successful in 7s
Check code formatting / Check-Python-Flake8 (push) Successful in 9s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 4s
Run unit tests on host / Run-Unit-Tests (push) Successful in 7s
38f2d224ed
matthias force-pushed micropython-1.24.1-pico-2.1.1 from 38f2d224ed to e047f775d6 2025-03-10 17:54:44 +00:00 Compare
matthias added 1 commit 2025-03-10 18:03:42 +00:00
wip: ci
Some checks are pending
Build RPi Pico firmware image / Build-Firmware (push) Waiting to run
Check code formatting / Check-C-Format (push) Successful in 7s
Check code formatting / Check-Python-Flake8 (push) Successful in 9s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 5s
Run unit tests on host / Run-Unit-Tests (push) Successful in 8s
caaee2b67f
matthias force-pushed micropython-1.24.1-pico-2.1.1 from caaee2b67f to 9338c0b8a4 2025-03-10 18:09:40 +00:00 Compare
matthias force-pushed micropython-1.24.1-pico-2.1.1 from 9338c0b8a4 to 8c9fcd0231 2025-03-10 18:16:27 +00:00 Compare
matthias requested review from stefank 2025-03-10 18:16:59 +00:00
matthias self-assigned this 2025-03-10 18:17:02 +00:00
matthias force-pushed micropython-1.24.1-pico-2.1.1 from 8c9fcd0231 to 9c898853f8 2025-03-10 19:17:36 +00:00 Compare
stefank reviewed 2025-03-17 19:44:36 +00:00
@@ -21,3 +21,3 @@
#define MICROPY_HW_PIN_EXT_COUNT CYW43_WL_GPIO_COUNT
#define MICROPY_HW_PIN_RESERVED(i) ((i) == CYW43_PIN_WL_HOST_WAKE || (i) == CYW43_PIN_WL_REG_ON)
// If this returns true for a pin then its irq will not be disabled on a soft reboot
Member

I guess this is one of the cherry-picked modifications you mentioned in the MR comment, right?

I guess this is one of the cherry-picked modifications you mentioned in the MR comment, right?
Author
Owner

Exactly, it is the change of ports/rp2/boards/RPI_PICO_W/mpconfigboard.h from 4a6c246008 copied to our board.

Exactly, it is the change of ports/rp2/boards/RPI_PICO_W/mpconfigboard.h from https://github.com/micropython/micropython/commit/4a6c2460083607ba05ab8af13a31889767c2ce98 copied to our board.
stefank reviewed 2025-03-17 19:46:23 +00:00
@@ -74,6 +75,7 @@ static mp_obj_t audiocore_Context_put(mp_obj_t self_in, mp_obj_t buffer)
}
static MP_DEFINE_CONST_FUN_OBJ_2(audiocore_Context_put_obj, audiocore_Context_put);
static uint32_t __scratch_y("core1_stack") core1_stack[1024];
Member

Alright, keeping that in mind for the python side...

Alright, keeping that in mind for the python side...
Author
Owner

As far as I know, the micropython rp2 port itself does not put anything in the SCRATCH_X or SCRATCH_Y memories, so they should be safe for us to use.

As far as I know, the micropython rp2 port itself does not put anything in the SCRATCH_X or SCRATCH_Y memories, so they should be safe for us to use.
stefank changed title from micropython: Update to 1.24.1, with cherrypicked patches for pico-sdk 2.1.1 to WIP: micropython: Update to 1.24.1, with cherrypicked patches for pico-sdk 2.1.1 2025-03-17 19:49:34 +00:00
stefank changed title from WIP: micropython: Update to 1.24.1, with cherrypicked patches for pico-sdk 2.1.1 to micropython: Update to 1.24.1, with cherrypicked patches for pico-sdk 2.1.1 2025-03-17 19:49:49 +00:00
stefank approved these changes 2025-03-17 19:50:22 +00:00
matthias merged commit 24d9261b40 into main 2025-03-17 20:07:34 +00:00
matthias deleted branch micropython-1.24.1-pico-2.1.1 2025-03-17 20:07:35 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TonBERRY/tonberry-pico#11