We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1bdf1b commit caf5492Copy full SHA for caf5492
src/rp2_common/pico_cyw43_driver/cyw43_driver.c
@@ -143,9 +143,21 @@ bool cyw43_driver_init(async_context_t *context) {
143
}
144
145
if (picked_p >= 0) {
146
+ #ifdef __riscv
147
+ // Increased bootrom stack is required for this function
148
+ bootrom_stack_t stack = {
149
+ .base = malloc(0x400),
150
+ .size = 0x400
151
+ };
152
+ rom_set_bootrom_stack(&stack);
153
+ #endif
154
uint32_t* workarea = malloc(0x1000);
155
picked_p = rom_pick_ab_update_partition(workarea, 0x1000, picked_p);
156
free(workarea);
157
158
+ // Reset bootrom stack
159
160
161
162
if (picked_p < 0) {
163
if (picked_p == BOOTROM_ERROR_NOT_FOUND) {
0 commit comments