Skip to content

[BUG] RP2350 port is in the wrong subdirectory vs the kernel import CMake script #1220

Closed
@mcknly

Description

@mcknly

Describe the bug
Support for RP2350 was merged into the FreeRTOS-Kernel-Community-Supported-Ports submodule, which originated from this commit on RPi's FreeRTOS fork (but was actually merged from @kilograham's fork of community ports here). However, adding the port into the nested submodule directory breaks the kernel import CMake script which assumes it is at the same location as the RP2040 port, portable/ThirdParty/GCC/, which would make sense. Symlinking the RP2350 port directory into the same place as the RP2040 port is a workaround for this issue. Ideally the RP2040 and RP2350 ports should be in the same spot.

Target

  • Development board: Raspberry Pi Pico2
  • Instruction Set Architecture: ARM Cortex-M33
  • IDE and version: VScode 1.96.2
  • Toolchain and version: cmake 3.25.1, gcc-arm-none-eabi 12.2.1

Host

  • Host OS: Linux
  • Version: Debian 12

To Reproduce

  • Pull latest main of this repo
  • Update submodules git submodule update --init
  • In a project, use set(freertos_port_path "portable/ThirdParty/Community-Supported-Ports/GCC/RP2350_ARM_NTZ/FreeRTOS_Kernel_import.cmake") for RP2350 port
  • Configure project using CMake

Expected behavior
Successful configuration (RP2350 port is found)

Screenshots
Error message from CMake:

[cmake] Using FREERTOS_KERNEL_PATH from environment ('/projects/FreeRTOS-Kernel')
[cmake] CMake Error at /projects/FreeRTOS-Kernel/portable/ThirdParty/Community-Supported-Ports/GCC/RP2350_ARM_NTZ/FreeRTOS_Kernel_import.cmake:66 (message):
[cmake]   Directory '/projects/FreeRTOS-Kernel' does not contain a
[cmake]   'rp2350-arm-s' port here: portable/ThirdParty/GCC/RP2350_ARM_NTZ

Additional context
The issue was originally produced in my Breadboard-OS project, and I have also been tracking the issue here. Building the project on this branch is another way to reproduce this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions