Skip to content

Commit b810ffd

Browse files
authored
Merge pull request #672 from pimoroni/patch-bump-micropython-pico-sdk-1.5.0
CI: Bump MicroPython to latest commit post Pico SDK 1.5.0 bump.
2 parents 68411ba + d341713 commit b810ffd

File tree

8 files changed

+52
-72
lines changed

8 files changed

+52
-72
lines changed

.github/workflows/micropython-badger2040.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
types: [created]
88

99
env:
10-
MICROPYTHON_VERSION: 35524a6fda1e44692ad599a39c802c168c897de9
10+
MICROPYTHON_VERSION: 294098d28e2bad0ac0aad0d72595d11a82798096
1111
BOARD_TYPE: PIMORONI_BADGER2040
1212
# MicroPython version will be contained in github.event.release.tag_name for releases
1313
RELEASE_FILE: pimoroni-badger2040-${{github.event.release.tag_name || github.sha}}-micropython

.github/workflows/micropython-badger2040w.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
types: [created]
88

99
env:
10-
MICROPYTHON_VERSION: 67fac4ebc53db6337008ba06df7932faec80f57c
10+
MICROPYTHON_VERSION: 294098d28e2bad0ac0aad0d72595d11a82798096
1111
BOARD_TYPE: PIMORONI_BADGER2040W
1212
# MicroPython version will be contained in github.event.release.tag_name for releases
1313
RELEASE_FILE: pimoroni-badger2040w-${{github.event.release.tag_name || github.sha}}-micropython

.github/workflows/micropython-picow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
types: [created]
88

99
env:
10-
MICROPYTHON_VERSION: 67fac4ebc53db6337008ba06df7932faec80f57c
10+
MICROPYTHON_VERSION: 294098d28e2bad0ac0aad0d72595d11a82798096
1111

1212
jobs:
1313
deps:

.github/workflows/micropython.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
types: [created]
88

99
env:
10-
MICROPYTHON_VERSION: 67fac4ebc53db6337008ba06df7932faec80f57c
10+
MICROPYTHON_VERSION: 294098d28e2bad0ac0aad0d72595d11a82798096
1111

1212
jobs:
1313
deps:

micropython/_board/badger2040/wakeup_gpio.patch

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
diff --git a/src/rp2_common/pico_runtime/runtime.c b/src/rp2_common/pico_runtime/runtime.c
2-
index 70dd3bb..b8c1ed0 100644
2+
index f9018d0..ae8c479 100644
33
--- a/src/rp2_common/pico_runtime/runtime.c
44
+++ b/src/rp2_common/pico_runtime/runtime.c
5-
@@ -17,6 +17,7 @@
5+
@@ -20,6 +20,7 @@
66
#include "hardware/clocks.h"
77
#include "hardware/irq.h"
88
#include "hardware/resets.h"
99
+#include "hardware/gpio.h"
1010

1111
#include "pico/mutex.h"
1212
#include "pico/time.h"
13-
@@ -32,6 +33,21 @@
13+
@@ -35,6 +36,21 @@
1414
#include "pico/bootrom.h"
1515
#endif
1616

@@ -32,7 +32,7 @@ index 70dd3bb..b8c1ed0 100644
3232
extern char __StackLimit; /* Set by linker. */
3333

3434
uint32_t __attribute__((section(".ram_vector_table"))) ram_vector_table[48];
35-
@@ -61,11 +77,18 @@ void runtime_install_stack_guard(void *stack_bottom) {
35+
@@ -64,7 +80,13 @@ void runtime_install_stack_guard(void *stack_bottom) {
3636
| 0x10000000; // XN = disable instruction fetch; no other bits means no permissions
3737
}
3838

@@ -47,12 +47,7 @@ index 70dd3bb..b8c1ed0 100644
4747
// Reset all peripherals to put system into a known state,
4848
// - except for QSPI pads and the XIP IO bank, as this is fatal if running from flash
4949
// - and the PLLs, as this is fatal if clock muxing has not been reset on this boot
50-
// - and USB, syscfg, as this disturbs USB-to-SWD on core 1
51-
+
52-
reset_block(~(
53-
RESETS_RESET_IO_QSPI_BITS |
54-
RESETS_RESET_PADS_QSPI_BITS |
55-
@@ -86,7 +109,9 @@ void runtime_init(void) {
50+
@@ -89,7 +111,9 @@ void runtime_init(void) {
5651
RESETS_RESET_UART1_BITS |
5752
RESETS_RESET_USBCTRL_BITS
5853
));
@@ -63,19 +58,19 @@ index 70dd3bb..b8c1ed0 100644
6358
// (basically anything in aeabi that uses bootrom)
6459

6560
diff --git a/src/rp2_common/pico_standard_link/crt0.S b/src/rp2_common/pico_standard_link/crt0.S
66-
index b2992f6..6091e70 100644
61+
index d061108..e48d870 100644
6762
--- a/src/rp2_common/pico_standard_link/crt0.S
6863
+++ b/src/rp2_common/pico_standard_link/crt0.S
69-
@@ -9,6 +9,8 @@
70-
#include "hardware/regs/addressmap.h"
64+
@@ -10,6 +10,8 @@
7165
#include "hardware/regs/sio.h"
66+
#include "pico/asm_helper.S"
7267
#include "pico/binary_info/defs.h"
7368
+#include "hardware/regs/resets.h"
7469
+#include "hardware/regs/rosc.h"
7570

7671
#ifdef NDEBUG
7772
#ifndef COLLAPSE_IRQS
78-
@@ -225,6 +227,23 @@ _reset_handler:
73+
@@ -226,6 +228,23 @@ _reset_handler:
7974
cmp r0, #0
8075
bne hold_non_core0_in_bootrom
8176

@@ -99,7 +94,7 @@ index b2992f6..6091e70 100644
9994
// In a NO_FLASH binary, don't perform .data copy, since it's loaded
10095
// in-place by the SRAM load. Still need to clear .bss
10196
#if !PICO_NO_FLASH
102-
@@ -251,6 +270,10 @@ bss_fill_test:
97+
@@ -252,6 +271,10 @@ bss_fill_test:
10398
cmp r1, r2
10499
bne bss_fill_loop
105100

@@ -110,7 +105,7 @@ index b2992f6..6091e70 100644
110105
platform_entry: // symbol for stack traces
111106
// Use 32-bit jumps, in case these symbols are moved out of branch range
112107
// (e.g. if main is in SRAM and crt0 in flash)
113-
@@ -314,6 +337,19 @@ data_cpy_table:
108+
@@ -311,6 +334,19 @@ data_cpy_table:
114109
runtime_init:
115110
bx lr
116111

@@ -130,7 +125,7 @@ index b2992f6..6091e70 100644
130125
// ----------------------------------------------------------------------------
131126
// If core 1 somehow gets into crt0 due to a spectacular VTOR mishap, we need to
132127
// catch it and send back to the sleep-and-launch code in the bootrom. Shouldn't
133-
@@ -345,3 +381,9 @@ __get_current_exception:
128+
@@ -335,3 +371,9 @@ hold_non_core0_in_bootrom:
134129
.align 2
135130
.equ HeapSize, PICO_HEAP_SIZE
136131
.space HeapSize

micropython/_board/badger2040w/wakeup_gpio.patch

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
diff --git a/src/rp2_common/pico_runtime/runtime.c b/src/rp2_common/pico_runtime/runtime.c
2-
index 70dd3bb..b8c1ed0 100644
2+
index f9018d0..ae8c479 100644
33
--- a/src/rp2_common/pico_runtime/runtime.c
44
+++ b/src/rp2_common/pico_runtime/runtime.c
5-
@@ -17,6 +17,7 @@
5+
@@ -20,6 +20,7 @@
66
#include "hardware/clocks.h"
77
#include "hardware/irq.h"
88
#include "hardware/resets.h"
99
+#include "hardware/gpio.h"
1010

1111
#include "pico/mutex.h"
1212
#include "pico/time.h"
13-
@@ -32,6 +33,21 @@
13+
@@ -35,6 +36,21 @@
1414
#include "pico/bootrom.h"
1515
#endif
1616

@@ -32,7 +32,7 @@ index 70dd3bb..b8c1ed0 100644
3232
extern char __StackLimit; /* Set by linker. */
3333

3434
uint32_t __attribute__((section(".ram_vector_table"))) ram_vector_table[48];
35-
@@ -61,11 +77,18 @@ void runtime_install_stack_guard(void *stack_bottom) {
35+
@@ -64,7 +80,13 @@ void runtime_install_stack_guard(void *stack_bottom) {
3636
| 0x10000000; // XN = disable instruction fetch; no other bits means no permissions
3737
}
3838

@@ -47,12 +47,7 @@ index 70dd3bb..b8c1ed0 100644
4747
// Reset all peripherals to put system into a known state,
4848
// - except for QSPI pads and the XIP IO bank, as this is fatal if running from flash
4949
// - and the PLLs, as this is fatal if clock muxing has not been reset on this boot
50-
// - and USB, syscfg, as this disturbs USB-to-SWD on core 1
51-
+
52-
reset_block(~(
53-
RESETS_RESET_IO_QSPI_BITS |
54-
RESETS_RESET_PADS_QSPI_BITS |
55-
@@ -86,7 +109,9 @@ void runtime_init(void) {
50+
@@ -89,7 +111,9 @@ void runtime_init(void) {
5651
RESETS_RESET_UART1_BITS |
5752
RESETS_RESET_USBCTRL_BITS
5853
));
@@ -63,19 +58,19 @@ index 70dd3bb..b8c1ed0 100644
6358
// (basically anything in aeabi that uses bootrom)
6459

6560
diff --git a/src/rp2_common/pico_standard_link/crt0.S b/src/rp2_common/pico_standard_link/crt0.S
66-
index b2992f6..6091e70 100644
61+
index d061108..e48d870 100644
6762
--- a/src/rp2_common/pico_standard_link/crt0.S
6863
+++ b/src/rp2_common/pico_standard_link/crt0.S
69-
@@ -9,6 +9,8 @@
70-
#include "hardware/regs/addressmap.h"
64+
@@ -10,6 +10,8 @@
7165
#include "hardware/regs/sio.h"
66+
#include "pico/asm_helper.S"
7267
#include "pico/binary_info/defs.h"
7368
+#include "hardware/regs/resets.h"
7469
+#include "hardware/regs/rosc.h"
7570

7671
#ifdef NDEBUG
7772
#ifndef COLLAPSE_IRQS
78-
@@ -225,6 +227,23 @@ _reset_handler:
73+
@@ -226,6 +228,23 @@ _reset_handler:
7974
cmp r0, #0
8075
bne hold_non_core0_in_bootrom
8176

@@ -99,7 +94,7 @@ index b2992f6..6091e70 100644
9994
// In a NO_FLASH binary, don't perform .data copy, since it's loaded
10095
// in-place by the SRAM load. Still need to clear .bss
10196
#if !PICO_NO_FLASH
102-
@@ -251,6 +270,10 @@ bss_fill_test:
97+
@@ -252,6 +271,10 @@ bss_fill_test:
10398
cmp r1, r2
10499
bne bss_fill_loop
105100

@@ -110,7 +105,7 @@ index b2992f6..6091e70 100644
110105
platform_entry: // symbol for stack traces
111106
// Use 32-bit jumps, in case these symbols are moved out of branch range
112107
// (e.g. if main is in SRAM and crt0 in flash)
113-
@@ -314,6 +337,19 @@ data_cpy_table:
108+
@@ -311,6 +334,19 @@ data_cpy_table:
114109
runtime_init:
115110
bx lr
116111

@@ -130,7 +125,7 @@ index b2992f6..6091e70 100644
130125
// ----------------------------------------------------------------------------
131126
// If core 1 somehow gets into crt0 due to a spectacular VTOR mishap, we need to
132127
// catch it and send back to the sleep-and-launch code in the bootrom. Shouldn't
133-
@@ -345,3 +381,9 @@ __get_current_exception:
128+
@@ -335,3 +371,9 @@ hold_non_core0_in_bootrom:
134129
.align 2
135130
.equ HeapSize, PICO_HEAP_SIZE
136131
.space HeapSize

micropython/_board/picow_enviro/wakeup_gpio.patch

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
diff --git a/src/rp2_common/pico_runtime/runtime.c b/src/rp2_common/pico_runtime/runtime.c
2-
index 70dd3bb..b8c1ed0 100644
2+
index f9018d0..ae8c479 100644
33
--- a/src/rp2_common/pico_runtime/runtime.c
44
+++ b/src/rp2_common/pico_runtime/runtime.c
5-
@@ -17,6 +17,7 @@
5+
@@ -20,6 +20,7 @@
66
#include "hardware/clocks.h"
77
#include "hardware/irq.h"
88
#include "hardware/resets.h"
99
+#include "hardware/gpio.h"
1010

1111
#include "pico/mutex.h"
1212
#include "pico/time.h"
13-
@@ -32,6 +33,21 @@
13+
@@ -35,6 +36,21 @@
1414
#include "pico/bootrom.h"
1515
#endif
1616

@@ -32,7 +32,7 @@ index 70dd3bb..b8c1ed0 100644
3232
extern char __StackLimit; /* Set by linker. */
3333

3434
uint32_t __attribute__((section(".ram_vector_table"))) ram_vector_table[48];
35-
@@ -61,11 +77,18 @@ void runtime_install_stack_guard(void *stack_bottom) {
35+
@@ -64,7 +80,13 @@ void runtime_install_stack_guard(void *stack_bottom) {
3636
| 0x10000000; // XN = disable instruction fetch; no other bits means no permissions
3737
}
3838

@@ -47,12 +47,7 @@ index 70dd3bb..b8c1ed0 100644
4747
// Reset all peripherals to put system into a known state,
4848
// - except for QSPI pads and the XIP IO bank, as this is fatal if running from flash
4949
// - and the PLLs, as this is fatal if clock muxing has not been reset on this boot
50-
// - and USB, syscfg, as this disturbs USB-to-SWD on core 1
51-
+
52-
reset_block(~(
53-
RESETS_RESET_IO_QSPI_BITS |
54-
RESETS_RESET_PADS_QSPI_BITS |
55-
@@ -86,7 +109,9 @@ void runtime_init(void) {
50+
@@ -89,7 +111,9 @@ void runtime_init(void) {
5651
RESETS_RESET_UART1_BITS |
5752
RESETS_RESET_USBCTRL_BITS
5853
));
@@ -63,19 +58,19 @@ index 70dd3bb..b8c1ed0 100644
6358
// (basically anything in aeabi that uses bootrom)
6459

6560
diff --git a/src/rp2_common/pico_standard_link/crt0.S b/src/rp2_common/pico_standard_link/crt0.S
66-
index b2992f6..6091e70 100644
61+
index d061108..e48d870 100644
6762
--- a/src/rp2_common/pico_standard_link/crt0.S
6863
+++ b/src/rp2_common/pico_standard_link/crt0.S
69-
@@ -9,6 +9,8 @@
70-
#include "hardware/regs/addressmap.h"
64+
@@ -10,6 +10,8 @@
7165
#include "hardware/regs/sio.h"
66+
#include "pico/asm_helper.S"
7267
#include "pico/binary_info/defs.h"
7368
+#include "hardware/regs/resets.h"
7469
+#include "hardware/regs/rosc.h"
7570

7671
#ifdef NDEBUG
7772
#ifndef COLLAPSE_IRQS
78-
@@ -225,6 +227,23 @@ _reset_handler:
73+
@@ -226,6 +228,23 @@ _reset_handler:
7974
cmp r0, #0
8075
bne hold_non_core0_in_bootrom
8176

@@ -99,7 +94,7 @@ index b2992f6..6091e70 100644
9994
// In a NO_FLASH binary, don't perform .data copy, since it's loaded
10095
// in-place by the SRAM load. Still need to clear .bss
10196
#if !PICO_NO_FLASH
102-
@@ -251,6 +270,10 @@ bss_fill_test:
97+
@@ -252,6 +271,10 @@ bss_fill_test:
10398
cmp r1, r2
10499
bne bss_fill_loop
105100

@@ -110,7 +105,7 @@ index b2992f6..6091e70 100644
110105
platform_entry: // symbol for stack traces
111106
// Use 32-bit jumps, in case these symbols are moved out of branch range
112107
// (e.g. if main is in SRAM and crt0 in flash)
113-
@@ -314,6 +337,19 @@ data_cpy_table:
108+
@@ -311,6 +334,19 @@ data_cpy_table:
114109
runtime_init:
115110
bx lr
116111

@@ -130,7 +125,7 @@ index b2992f6..6091e70 100644
130125
// ----------------------------------------------------------------------------
131126
// If core 1 somehow gets into crt0 due to a spectacular VTOR mishap, we need to
132127
// catch it and send back to the sleep-and-launch code in the bootrom. Shouldn't
133-
@@ -345,3 +381,9 @@ __get_current_exception:
128+
@@ -335,3 +371,9 @@ hold_non_core0_in_bootrom:
134129
.align 2
135130
.equ HeapSize, PICO_HEAP_SIZE
136131
.space HeapSize

0 commit comments

Comments
 (0)