Hello,
I'm trying to build my own firmware for my Pico 2 as I need to add modules to the build. I recognize the latest-and-greatest is a preview version ( v1.24.0-preview.201.g269a0e0e1 (2024-08-09) .uf2 from Micropython's website https://micropython.org/download/RPI_PICO2/ ), and the only version of the source code is currently a pull request on GitHub (https://github.com/micropython/micropython/pull/15619), but it in principle should build (after all, they were able to build the above firmware) and I suspect I'm doing something wrong. I started with the steps within the raspberry-pi-pico-python-sdk.pdf document and modified them as follows to grab the pico 2 fork:
mkdir pico
cd pico
git clone https://github.com/dpgeorge/micropython.git --branch rp2-add-rp2350
cd micropython
make -C ports/rp2 submodules
<skipped apt steps since I already did them, yesterday>
make -C mpy-cross
cd ports/rp2
make BOARD=RPI_PICO2
(Although I also attempted adding a USER_C_MODULES="/home/pi/Documents/Pico2/ulab/micropython-ulab/code/micropython.cmake"
to that since, well, ulab is one of the modules I want to add, although it doesn't even get to that point).
The build crashes very quickly with the following output (truncated to just the steps that triggered the failure, can give stuff before this if you think it's valid):
I'm trying to build my own firmware for my Pico 2 as I need to add modules to the build. I recognize the latest-and-greatest is a preview version ( v1.24.0-preview.201.g269a0e0e1 (2024-08-09) .uf2 from Micropython's website https://micropython.org/download/RPI_PICO2/ ), and the only version of the source code is currently a pull request on GitHub (https://github.com/micropython/micropython/pull/15619), but it in principle should build (after all, they were able to build the above firmware) and I suspect I'm doing something wrong. I started with the steps within the raspberry-pi-pico-python-sdk.pdf document and modified them as follows to grab the pico 2 fork:
mkdir pico
cd pico
git clone https://github.com/dpgeorge/micropython.git --branch rp2-add-rp2350
cd micropython
make -C ports/rp2 submodules
<skipped apt steps since I already did them, yesterday>
make -C mpy-cross
cd ports/rp2
make BOARD=RPI_PICO2
(Although I also attempted adding a USER_C_MODULES="/home/pi/Documents/Pico2/ulab/micropython-ulab/code/micropython.cmake"
to that since, well, ulab is one of the modules I want to add, although it doesn't even get to that point).
The build crashes very quickly with the following output (truncated to just the steps that triggered the failure, can give stuff before this if you think it's valid):
Any ideas what's wrong here and how to fix it? Many thanks in advance.[ 23%] Building C object CMakeFiles/firmware.dir/main.c.obj
In file included from /home/pi/Documents/Pico2/micropython/lib/pico-sdk/src/rp2_common/cmsis/stub/CMSIS/Core/Include/cmsis_gcc.h:30,
from /home/pi/Documents/Pico2/micropython/lib/pico-sdk/src/rp2_common/cmsis/stub/CMSIS/Core/Include/cmsis_compiler.h:52,
from /home/pi/Documents/Pico2/micropython/lib/pico-sdk/src/rp2_common/cmsis/stub/CMSIS/Core/Include/core_cm33.h:225,
from /home/pi/Documents/Pico2/micropython/lib/pico-sdk/src/rp2_common/cmsis/stub/CMSIS/Device/RP2350/Include/RP2350.h:124,
from /home/pi/Documents/Pico2/micropython/ports/rp2/main.c:64:
/usr/lib/gcc/arm-none-eabi/8.3.1/include/arm_acle.h:178:9: error: target CPU does not support ARMv8-M Security Extensions
#pragma GCC target ("arch=armv8-a+crc")
^~~
/usr/lib/gcc/arm-none-eabi/8.3.1/include/arm_acle.h:182:1: error: target CPU does not support ARMv8-M Security Extensions
{
^
/usr/lib/gcc/arm-none-eabi/8.3.1/include/arm_acle.h:182:1: error: target CPU does not support ARMv8-M Security Extensions
/usr/lib/gcc/arm-none-eabi/8.3.1/include/arm_acle.h:188:1: error: target CPU does not support ARMv8-M Security Extensions
{
^
/usr/lib/gcc/arm-none-eabi/8.3.1/include/arm_acle.h:188:1: error: target CPU does not support ARMv8-M Security Extensions
/usr/lib/gcc/arm-none-eabi/8.3.1/include/arm_acle.h:194:1: error: target CPU does not support ARMv8-M Security Extensions
{
^
/usr/lib/gcc/arm-none-eabi/8.3.1/include/arm_acle.h:194:1: error: target CPU does not support ARMv8-M Security Extensions
/usr/lib/gcc/arm-none-eabi/8.3.1/include/arm_acle.h:201:1: error: target CPU does not support ARMv8-M Security Extensions
{
^
/usr/lib/gcc/arm-none-eabi/8.3.1/include/arm_acle.h:201:1: error: target CPU does not support ARMv8-M Security Extensions
/usr/lib/gcc/arm-none-eabi/8.3.1/include/arm_acle.h:211:1: error: target CPU does not support ARMv8-M Security Extensions
{
^
/usr/lib/gcc/arm-none-eabi/8.3.1/include/arm_acle.h:211:1: error: target CPU does not support ARMv8-M Security Extensions
/usr/lib/gcc/arm-none-eabi/8.3.1/include/arm_acle.h:217:1: error: target CPU does not support ARMv8-M Security Extensions
{
^
/usr/lib/gcc/arm-none-eabi/8.3.1/include/arm_acle.h:217:1: error: target CPU does not support ARMv8-M Security Extensions
/usr/lib/gcc/arm-none-eabi/8.3.1/include/arm_acle.h:223:1: error: target CPU does not support ARMv8-M Security Extensions
{
^
/usr/lib/gcc/arm-none-eabi/8.3.1/include/arm_acle.h:223:1: error: target CPU does not support ARMv8-M Security Extensions
/usr/lib/gcc/arm-none-eabi/8.3.1/include/arm_acle.h:230:1: error: target CPU does not support ARMv8-M Security Extensions
{
^
/usr/lib/gcc/arm-none-eabi/8.3.1/include/arm_acle.h:230:1: error: target CPU does not support ARMv8-M Security Extensions
make[3]: *** [CMakeFiles/firmware.dir/build.makeImage may be NSFW.
Clik here to view.CMakeFiles/firmware.dir/main.c.obj] Error 1
make[2]: *** [CMakeFiles/Makefile2Image may be NSFW.
Clik here to view.CMakeFiles/firmware.dir/all] Error 2
make[1]: *** [Makefile:103: all] Error 2
-e See https://github.com/micropython/micropyt ... leshooting
make: *** [Makefile:59: all] Error 1
Statistics: Posted by inst4bility — Wed Sep 18, 2024 4:01 am