Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for GCC? #4

Open
cinnamondev opened this issue Jun 27, 2024 · 3 comments
Open

Support for GCC? #4

cinnamondev opened this issue Jun 27, 2024 · 3 comments

Comments

@cinnamondev
Copy link

Now that this pack is available via KEIL, I have been trying to update my projects to use this new setup. My project is configured to use CMSIS-Toolbox/csolution projects. It does not appear this package is able to support GNU compiler despite the SDK supposedly using GCC. I can successfully build using AC6, but if GCC is used, the build errors given are undecipherable nonsense. I also tried to replicate this through KEIL uVision which gave a similar result, though using GCC via uvison isn't something fully supported I believe.

Is GCC just unsupported and/or untested or am I something missing here? I will include my build outputs below.

Thank you for your time.

command used: cbuild ./picopico.csolution.yaml --context-set --update-rte --packs --context picopico.Debug+Pico

software used:
cmake 3.28.4
ninja 1.12.0
arm-none-eabi-gcc 12.3.1
armclang 6.22.0
cmsis-toolbox 2.4.0

build outputs & project information

(gcc build output, long, snipped)

build output (gcc)

info cbuild: Build Invocation 2.4.0 (C) 2024 Arm Ltd. and Contributors
/home/ada/Documents/Projects/cmsis-rp2040/picopico.cbuild-pack.yml - info csolution: file is already up-to-date
/home/ada/Documents/Projects/cmsis-rp2040/picopico.cbuild-idx.yml - info csolution: file is already up-to-date
/home/ada/Documents/Projects/cmsis-rp2040/picopico.cbuild-set.yml - info csolution: file is already up-to-date
/home/ada/Documents/Projects/cmsis-rp2040/picopico.Debug+Pico.cbuild.yml - info csolution: file is already up-to-date
/home/ada/Documents/Projects/cmsis-rp2040/picopico.Debug+Pico.cprj - info csolution: file generated successfully
info cbuild: Processing 1 context(s)
info cbuild: Retrieve build information for context: "picopico.Debug+Pico"
===========================================
Building "picopico.Debug+Pico"

M650: Command completed successfully.

M652: Generated file for project build: '/home/ada/Documents/Projects/cmsis-rp2040/tmp/picopico/Pico/Debug/CMakeLists.txt'
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/ada/Documents/Projects/cmsis-rp2040/tmp/picopico/Pico/Debug
[1/40] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_time/timeout_helper.c.obj
FAILED: CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_time/timeout_helper.c.obj 
/home/ada/.vcpkg/downloads/artifacts/vcpkg-artifacts-arm/compilers.arm.arm.none.eabi.gcc/12.3.1/bin/arm-none-eabi-gcc  -I/home/ada/Documents/Projects/cmsis-rp2040/RTE/_Debug_Pico -I/home/ada/.cache/arm/packs/ARM/CMSIS/6.1.0/CMSIS/Core/Include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/CMSIS/Device/RP2040/Include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/__boards_wrapper/pico_base -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/__wrapper -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/boards/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_base/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_binary_info/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_stdlib/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_time/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_util/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2040/hardware_regs/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2040/hardware_structs/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/boot_stage2/asminclude -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/boot_stage2/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/cmsis/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_adc/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_base/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_claim/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_clocks/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_divider/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_dma/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_flash/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_gpio/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_i2c/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_interp/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_irq/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_pio/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_pll/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_pwm/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_resets/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_spi/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_sync/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_timer/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_uart/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_watchdog/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_xosc/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_bootrom/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_double/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_i2c_slave/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_multicore/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_printf/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_rand/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_runtime/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_stdio/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_stdio_semihosting/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_stdio_uart/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_stdio_usb/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_unique_id/include -mcpu=cortex-m0plus -mlittle-endian -DRP2040 -D_RTE_ -DDEBUG  -g3 -O0    -isystem "/home/ada/.vcpkg/downloads/artifacts/vcpkg-artifacts-arm/compilers.arm.arm.none.eabi.gcc/12.3.1/lib/gcc/arm-none-eabi/12.3.1/include" -isystem "/home/ada/.vcpkg/downloads/artifacts/vcpkg-artifacts-arm/compilers.arm.arm.none.eabi.gcc/12.3.1/lib/gcc/arm-none-eabi/12.3.1/include-fixed" -isystem "/home/ada/.vcpkg/downloads/artifacts/vcpkg-artifacts-arm/compilers.arm.arm.none.eabi.gcc/12.3.1/arm-none-eabi/include"  -include "/home/ada/Documents/Projects/cmsis-rp2040/RTE/Device/RP2040_Core0/env_wrapper.h" -std=gnu11 -include "/home/ada/Documents/Projects/cmsis-rp2040/RTE/_Debug_Pico/Pre_Include_Device_Pico_SDK.h" -MD -MT CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_time/timeout_helper.c.obj -MF CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_time/timeout_helper.c.obj.d -o CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_time/timeout_helper.c.obj -c /home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_time/timeout_helper.c
In file included from /home/ada/Documents/Projects/cmsis-rp2040/RTE/Device/RP2040_Core0/env_wrapper.h:202,
                 from <command-line>:
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/include/pico/platform.h:364:16: error: expected ';' before 'static'
  364 | __force_inline static void __compiler_memory_barrier(void) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/include/pico/platform.h:438:23: error: expected ';' before 'void'
  438 | static __force_inline void tight_loop_contents(void) {}
      |                       ^~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/include/pico/platform.h:450:16: error: expected ';' before 'static'
  450 | __force_inline static int32_t __mul_instruction(int32_t a, int32_t b) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/include/pico/platform.h:317:24: error: unknown type name '__always_inline'
  317 | #define __force_inline __always_inline
      |                        ^~~~~~~~~~~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/include/pico/platform.h:485:8: note: in expansion of macro '__force_inline'
  485 | static __force_inline uint __get_current_exception(void) {
      |        ^~~~~~~~~~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/include/pico/platform.h:485:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__get_current_exception'
  485 | static __force_inline uint __get_current_exception(void) {
      |                            ^~~~~~~~~~~~~~~~~~~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/include/pico/platform.h:526:16: error: expected ';' before 'static'
  526 | __force_inline static uint get_core_num(void) {
      |                ^~~~~~
In file included from /home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2040/hardware_structs/include/hardware/structs/timer.h:12,
                 from /home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_timer/include/hardware/timer.h:11,
                 from /home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_time/include/pico/time.h:11,
                 from /home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_time/include/pico/timeout_helper.h:10,
                 from /home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_time/timeout_helper.c:7:
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:93:16: error: expected ';' before 'static'
   93 | __force_inline static uint32_t xip_alias_check_addr(const void *addr) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:121:16: error: expected ';' before 'static'
  121 | __force_inline static void hw_set_bits(io_rw_32 *addr, uint32_t mask) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:131:16: error: expected ';' before 'static'
  131 | __force_inline static void hw_clear_bits(io_rw_32 *addr, uint32_t mask) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:141:16: error: expected ';' before 'static'
  141 | __force_inline static void hw_xor_bits(io_rw_32 *addr, uint32_t mask) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:157:16: error: expected ';' before 'static'
  157 | __force_inline static void hw_write_masked(io_rw_32 *addr, uint32_t values, uint32_t write_mask) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_timer/include/hardware/timer.h:53:51: error: unknown type name '__unused'
   53 | static inline void check_hardware_alarm_num_param(__unused uint alarm_num) {
      |                                                   ^~~~~~~~
[2/40] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/critical_section.c.obj
FAILED: CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/critical_section.c.obj 
/home/ada/.vcpkg/downloads/artifacts/vcpkg-artifacts-arm/compilers.arm.arm.none.eabi.gcc/12.3.1/bin/arm-none-eabi-gcc  -I/home/ada/Documents/Projects/cmsis-rp2040/RTE/_Debug_Pico -I/home/ada/.cache/arm/packs/ARM/CMSIS/6.1.0/CMSIS/Core/Include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/CMSIS/Device/RP2040/Include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/__boards_wrapper/pico_base -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/__wrapper -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/boards/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_base/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_binary_info/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_stdlib/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_time/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_util/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2040/hardware_regs/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2040/hardware_structs/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/boot_stage2/asminclude -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/boot_stage2/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/cmsis/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_adc/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_base/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_claim/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_clocks/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_divider/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_dma/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_flash/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_gpio/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_i2c/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_interp/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_irq/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_pio/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_pll/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_pwm/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_resets/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_spi/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_sync/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_timer/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_uart/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_watchdog/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_xosc/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_bootrom/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_double/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_i2c_slave/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_multicore/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_printf/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_rand/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_runtime/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_stdio/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_stdio_semihosting/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_stdio_uart/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_stdio_usb/include -I/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_unique_id/include -mcpu=cortex-m0plus -mlittle-endian -DRP2040 -D_RTE_ -DDEBUG  -g3 -O0    -isystem "/home/ada/.vcpkg/downloads/artifacts/vcpkg-artifacts-arm/compilers.arm.arm.none.eabi.gcc/12.3.1/lib/gcc/arm-none-eabi/12.3.1/include" -isystem "/home/ada/.vcpkg/downloads/artifacts/vcpkg-artifacts-arm/compilers.arm.arm.none.eabi.gcc/12.3.1/lib/gcc/arm-none-eabi/12.3.1/include-fixed" -isystem "/home/ada/.vcpkg/downloads/artifacts/vcpkg-artifacts-arm/compilers.arm.arm.none.eabi.gcc/12.3.1/arm-none-eabi/include"  -include "/home/ada/Documents/Projects/cmsis-rp2040/RTE/Device/RP2040_Core0/env_wrapper.h" -std=gnu11 -include "/home/ada/Documents/Projects/cmsis-rp2040/RTE/_Debug_Pico/Pre_Include_Device_Pico_SDK.h" -MD -MT CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/critical_section.c.obj -MF CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/critical_section.c.obj.d -o CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/critical_section.c.obj -c /home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/critical_section.c
In file included from /home/ada/Documents/Projects/cmsis-rp2040/RTE/Device/RP2040_Core0/env_wrapper.h:202,
                 from <command-line>:
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/include/pico/platform.h:364:16: error: expected ';' before 'static'
  364 | __force_inline static void __compiler_memory_barrier(void) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/include/pico/platform.h:438:23: error: expected ';' before 'void'
  438 | static __force_inline void tight_loop_contents(void) {}
      |                       ^~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/include/pico/platform.h:450:16: error: expected ';' before 'static'
  450 | __force_inline static int32_t __mul_instruction(int32_t a, int32_t b) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/include/pico/platform.h:317:24: error: unknown type name '__always_inline'
  317 | #define __force_inline __always_inline
      |                        ^~~~~~~~~~~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/include/pico/platform.h:485:8: note: in expansion of macro '__force_inline'
  485 | static __force_inline uint __get_current_exception(void) {
      |        ^~~~~~~~~~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/include/pico/platform.h:485:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__get_current_exception'
  485 | static __force_inline uint __get_current_exception(void) {
      |                            ^~~~~~~~~~~~~~~~~~~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/include/pico/platform.h:526:16: error: expected ';' before 'static'
  526 | __force_inline static uint get_core_num(void) {
      |                ^~~~~~
In file included from /home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2040/hardware_structs/include/hardware/structs/timer.h:12,
                 from /home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_timer/include/hardware/timer.h:11,
                 from /home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_time/include/pico/time.h:11,
                 from /home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/include/pico/lock_core.h:11,
                 from /home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/include/pico/critical_section.h:10,
                 from /home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/critical_section.c:7:
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:93:16: error: expected ';' before 'static'
   93 | __force_inline static uint32_t xip_alias_check_addr(const void *addr) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:121:16: error: expected ';' before 'static'
  121 | __force_inline static void hw_set_bits(io_rw_32 *addr, uint32_t mask) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:131:16: error: expected ';' before 'static'
  131 | __force_inline static void hw_clear_bits(io_rw_32 *addr, uint32_t mask) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:141:16: error: expected ';' before 'static'
  141 | __force_inline static void hw_xor_bits(io_rw_32 *addr, uint32_t mask) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:157:16: error: expected ';' before 'static'
  157 | __force_inline static void hw_write_masked(io_rw_32 *addr, uint32_t values, uint32_t write_mask) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_timer/include/hardware/timer.h:53:51: error: unknown type name '__unused'
   53 | static inline void check_hardware_alarm_num_param(__unused uint alarm_num) {
      |                                                   ^~~~~~~~
In file included from /home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/include/pico/lock_core.h:12:
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:187:16: error: expected ';' before 'static'
  187 | __force_inline static void __mem_fence_acquire(void) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h: In function '__mem_fence_acquire':
/home/ada/Documents/Projects/cmsis-rp2040/RTE/Device/RP2040_Core0/env_wrapper.h:192:21: warning: implicit declaration of function '__builtin_arm_dmb'; did you mean '__builtin_arm_cdp'? [-Wimplicit-function-declaration]
  192 | #define __dmb0()    __builtin_arm_dmb(0xF)
      |                     ^~~~~~~~~~~~~~~~~
/home/ada/Documents/Projects/cmsis-rp2040/RTE/Device/RP2040_Core0/env_wrapper.h:142:33: note: in expansion of macro '__dmb0'
  142 | #   define ____CONCAT(a,b)      a##b
      |                                 ^
/home/ada/Documents/Projects/cmsis-rp2040/RTE/Device/RP2040_Core0/env_wrapper.h:143:33: note: in expansion of macro '____CONCAT'
  143 | #   define __CONCAT(a,b)        ____CONCAT(a,b)
      |                                 ^~~~~~~~~~
/home/ada/Documents/Projects/cmsis-rp2040/RTE/Device/RP2040_Core0/env_wrapper.h:195:21: note: in expansion of macro '__CONCAT'
  195 | #define __dmb(...)  __CONCAT(__dmb, __PLOOC_VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__)
      |                     ^~~~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:191:5: note: in expansion of macro '__dmb'
  191 |     __dmb();
      |     ^~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h: At top level:
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:203:16: error: expected ';' before 'static'
  203 | __force_inline static void __mem_fence_release(void) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:220:16: error: expected ';' before 'static'
  220 | __force_inline static uint32_t save_and_disable_interrupts(void) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:234:16: error: expected ';' before 'static'
  234 | __force_inline static void restore_interrupts(uint32_t status) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:244:16: error: expected ';' before 'static'
  244 | __force_inline static spin_lock_t *spin_lock_instance(uint lock_num) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:255:16: error: expected ';' before 'static'
  255 | __force_inline static uint spin_lock_get_num(spin_lock_t *lock) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:267:16: error: expected ';' before 'static'
  267 | __force_inline static void spin_lock_unsafe_blocking(spin_lock_t *lock) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:280:16: error: expected ';' before 'static'
  280 | __force_inline static void spin_unlock_unsafe(spin_lock_t *lock) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:293:16: error: expected ';' before 'static'
  293 | __force_inline static uint32_t spin_lock_blocking(spin_lock_t *lock) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:320:16: error: expected ';' before 'static'
  320 | __force_inline static void spin_unlock(spin_lock_t *lock, uint32_t saved_irq) {
      |                ^~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/include/pico/platform.h:301:45: error: expected identifier or '(' before numeric constant
  301 | #define __packed_aligned __packed __aligned(4)
      |                                             ^
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/include/pico/critical_section.h:29:16: note: in expansion of macro '__packed_aligned'
   29 | typedef struct __packed_aligned critical_section {
      |                ^~~~~~~~~~~~~~~~
/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/include/pico/critical_section.h:32:3: warning: data definition has no type or storage class
   32 | } critical_section_t;
      |   ^~~~~~~~~~~~~~~~~~

(a full output can be provided if required, the output continues for a while, the whole output seems hardly useful)

build output (ac6)

info cbuild: Build Invocation 2.4.0 (C) 2024 Arm Ltd. and Contributors
/home/ada/Documents/Projects/cmsis-rp2040/picopico.cbuild-pack.yml - info csolution: file generated successfully
/home/ada/Documents/Projects/cmsis-rp2040/picopico.cbuild-idx.yml - info csolution: file generated successfully
/home/ada/Documents/Projects/cmsis-rp2040/picopico.cbuild-set.yml - info csolution: file generated successfully
/home/ada/Documents/Projects/cmsis-rp2040/picopico.Debug+Pico.cbuild.yml - info csolution: file generated successfully
/home/ada/Documents/Projects/cmsis-rp2040/picopico.Debug+Pico.cprj - info csolution: file generated successfully
info cbuild: Processing 1 context(s)
info cbuild: Retrieve build information for context: "picopico.Debug+Pico"
===========================================
Building "picopico.Debug+Pico"

M650: Command completed successfully.

M652: Generated file for project build: '/home/ada/Documents/Projects/cmsis-rp2040/tmp/picopico/Pico/Debug/CMakeLists.txt'
-- The ASM compiler identification is ARMClang
-- Found assembler: /home/ada/.vcpkg/downloads/artifacts/vcpkg-artifacts-arm/compilers.arm.armclang/6.22.0/bin/armclang
-- The C compiler identification is ARMClang 6.22.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/ada/.vcpkg/downloads/artifacts/vcpkg-artifacts-arm/compilers.arm.armclang/6.22.0/bin/armclang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done (0.6s)
-- Generating done (0.0s)
-- Build files have been written to: /home/ada/Documents/Projects/cmsis-rp2040/tmp/picopico/Pico/Debug
[1/43] Building ASM object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_divider/divider.o
[2/43] Building ASM object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_irq/irq_handler_chain.o
[3/43] Building ASM object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/boot_stage2/compile_time_choice.o
[4/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_util/datetime.o
[5/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/critical_section.o
[6/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/lock_core.o
[7/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_time/timeout_helper.o
[8/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/__wrapper/env_wrapper.o
[9/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/sem.o
[10/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/__wrapper/stdio.o
[11/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_sync/mutex.o
[12/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_claim/claim.o
[13/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_util/queue.o
[14/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_util/pheap.o
[15/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/host/pico_stdlib/stdlib.o
[16/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/common/pico_time/time.o
[17/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_adc/adc.o
[18/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_flash/flash.o
[19/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_dma/dma.o
[20/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_interp/interp.o
[21/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_clocks/clocks.o
[22/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_gpio/gpio.o
[23/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_sync/sync.o
[24/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_i2c/i2c.o
[25/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_pll/pll.o
[26/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_irq/irq.o
[27/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_xosc/xosc.o
[28/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_spi/spi.o
[29/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_bootrom/bootrom.o
[30/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_timer/timer.o
[31/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_watchdog/watchdog.o
[32/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_uart/uart.o
[33/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_platform/platform.o
[34/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_i2c_slave/i2c_slave.o
[35/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_unique_id/unique_id.o
[36/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/hardware_pio/pio.o
[37/43] Building C object CMakeFiles/picopico.dir/home/ada/Documents/Projects/cmsis-rp2040/RTE/Device/RP2040_Core0/system_rp2040.o
[38/43] Building C object CMakeFiles/picopico.dir/home/ada/Documents/Projects/cmsis-rp2040/RTE/Device/RP2040_Core0/startup_rp2040.o
[39/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_runtime/runtime.o
[40/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_multicore/multicore.o
[41/43] Building C object CMakeFiles/picopico.dir/home/ada/.cache/arm/packs/RaspberryPi/RP2xxx_DFP/0.9.5/pico-sdk/src/rp2_common/pico_rand/rand.o
[42/43] Building C object CMakeFiles/picopico.dir/home/ada/Documents/Projects/cmsis-rp2040/src/main.o
[43/43] Linking C executable /home/ada/Documents/Projects/cmsis-rp2040/out/picopico/Pico/Debug/picopico.axf
Warning: L6170W: Mapping symbol #3 '$t.1' in .data(irq_handler_chain.o:3) identifies code, but is in a section not marked as executable.
Warning: L6306W: '~PRES8 (The user did not require code to preserve 8-byte data objects)' section irq_handler_chain.o(.data) should not use the address of 'REQ8 (Code was permitted to depend on the 8-byte aligment of 8-byte data items)' function irq_add_tail_to_free_list.
"/home/ada/Documents/Projects/cmsis-rp2040/RTE/Device/RP2040_Core0/rp2040.sct", line 26 (column 12): Warning: L6314W: No section matches pattern *(.flashdata.*).
"/home/ada/Documents/Projects/cmsis-rp2040/RTE/Device/RP2040_Core0/rp2040.sct", line 54 (column 12): Warning: L6314W: No section matches pattern *(.mutex_array.*).
Finished: 0 information, 4 warning and 0 error messages.
info cbuild: build finished successfully!

Build summary: Build completed successfully - Time Elapsed: 00:00:00

project files

  packs:
    - pack: ARM::CMSIS@>=6.1.0
    - pack: RaspberryPi::RP2xxx_DFP@>=0.9.5
  components:
    - component: RaspberryPi::Device:Pico SDK
    - component: RaspberryPi::Device:Startup&C Startup
    - component: RaspberryPi::Device:Pico Board&Pico
    - component: ARM::CMSIS:CORE
    
  groups:
    - group: Source
      files:
        - file: ./src/main.c```

```solution:
  compiler: GCC
  misc:
    # toolchain specific settings
    - for-compiler: GCC
      C:
        - -std=gnu11
      Link:
        - --specs=nano.specs
        - --specs=rdimon.specs
      ASM:
        - -masm=auto
  projects:
    - project: ./picopico.cproject.yaml
  target-types:
    - type: Pico
      board: Raspberry Pi Pico
      device: RP2040:Core0

  build-types:
    - type: Debug
      optimize: none
      debug: on
      define:
        - DEBUG

    - type: Release
      optimize: none
      debug: off
  packs:
    - pack: ARM::[email protected]
    - pack: RaspberryPi::[email protected]
#include "hardware/gpio.h"
#include "pico/time.h"

int main() {
    const uint LED_PIN = 25;
    gpio_init(LED_PIN);
    gpio_set_dir(LED_PIN, GPIO_OUT);
    while (true) {
        gpio_put(LED_PIN, 1);
        sleep_ms(250);
        gpio_put(LED_PIN, 0);
        sleep_ms(250);
    }
}
@will-v-pi
Copy link
Collaborator

GCC is completely untested with this, if you're using GCC we'd recommend using the normal SDK. The point of this DFP was to add support for AC6 and use in uVision, so at this point GCC is unsupported.

You might be able to get it working by editing some of the files in __wrapper, as those are what'll be breaking the compilation with GCC

@GorgonMeducer
Copy link
Contributor

using GCC via uvison isn't something fully supported I believe.

uVision fully supports GCC. But as mentioned @will-v-pi, RP2xxx_DFP isn't tested with GCC.

@cinnamondev
Copy link
Author

Thanks, I thought that was likely the case. I did spend a bit playing around with __wrapper, but I didn't get far. I'll probably stick with what I currently have setup for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants