Failed to build ARDUINO_NANO_RP2040_CONNECT (mod_network_nic_type_nina_base not constant) #10170
Unanswered
ksprs
asked this question in
RP2040 / Pico
Replies: 4 comments 1 reply
-
Can you try updating to a newer GCC version? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I ran into the same error building with buster/gcc 8.3.0. After @jimmo's suggestion, I upgraded to bullseye/gcc 10.2.1 which built fine. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Perfect! This solved the problem, thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
It seams there is a trouble with a build process for ARDUINO_NANO_RP2040_CONNECT as it failed with these messages:
micropython/extmod/network_ninaw10.c:831:13: error: initializer element is not constant .base = mod_network_nic_type_nina_base, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/kaspars/git/micropython/extmod/network_ninaw10.c:831:13: note: (near initialization for 'mod_network_nic_type_nina.base') make[3]: *** [CMakeFiles/firmware.dir/build.make:2624: CMakeFiles/firmware.dir/home/kaspars/git/micropython/extmod/network_ninaw10.c.obj] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [CMakeFiles/Makefile2:1383: CMakeFiles/firmware.dir/all] Error 2 make[1]: *** [Makefile:91: all] Error 2 -e See https://github.com/micropython/micropython/wiki/Build-Troubleshooting make: *** [Makefile:33: all] Error 1
What I did was:
git clone https://github.com/micropython/micropython.git cd micropython/ git submodule update --init lib/micropython-lib lib/pico-sdk lib/tinyusb lib/mbedtls lib/mynewt-nimble cd ports/rp2/ make -j4 BOARD=ARDUINO_NANO_RP2040_CONNECT
Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions