You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 13, 2026. It is now read-only.
This repository was archived by the owner on Jan 13, 2026. It is now read-only.
Can't built ./libraries/port/rp2/ ../py/stackctrl.c:32:32: error: storing the address of local variable ‘stack_dummy’ in ‘mp_state_ctx.thread.stack_top’ [-Werror=dangling-pointer=] 32 | MP_STATE_THREAD(stack_top) = (char *)&stack_dummy; #18669 #24
git clone --recursive https://github.com/Wiznet/RP2040-HAT-MicroPython.git
cd RP2040-HAT-MicroPython
cmake CMakeLists.txt
cd libraries/ports/rp2
make MICROPY_PY_WIZNET5K=5500
and I get the following error at: make MICROPY_PY_WIZNET5K=5500
../py/stackctrl.c: In function‘mp_stack_ctrl_init’:
../py/stackctrl.c:32:32: error: storing the address of local variable ‘stack_dummy’ in ‘mp_state_ctx.thread.stack_top’ [-Werror=dangling-pointer=]
32 | MP_STATE_THREAD(stack_top) = (char *)&stack_dummy;
../py/stackctrl.c:31:18: note: ‘stack_dummy’ declared here
31 | volatile int stack_dummy;| ^~~~~~~~~~~
In file included from ../py/runtime.h:29,
from ../py/stackctrl.c:27:
../py/mpstate.h:291:23: note: ‘mp_state_ctx’ declared here
291 | extern mp_state_ctx_t mp_state_ctx;| ^~~~~~~~~~~~
cc1: all warnings being treated as errors
-e See https://github.com/micropython/micropython/wiki/Build-Troubleshooting
make[3]: *** [../py/mkrules.mk:83: build/py/stackctrl.o] Error 1
make[2]: *** [CMakeFiles/firmware.dir/build.make:116: /home/pong/my_folder/code/micropython/RP2040-HAT-MicroPython/libraries/mpy-cross/build/mpy-cross] Error 2
make[1]: *** [CMakeFiles/Makefile2:1385: CMakeFiles/firmware.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
is there some patch that needs to be applied to the submodules and how?
Building it on ubuntu 24.04 for cusotm rp2040 board with w5500 on none standard spi , and INT pins