Skip to content

Fixed the issue that occurred when using the latest pico-sdk(2.2.0) in micropython #2718

@Bohrium332

Description

@Bohrium332

Header file path issue

Problem phenomenon

fatal error: pico/platform/common.h: No such file or directory

The fundamental reason: PICO-SDK 2.2.0 reorganized the file structure. The pico/platform/common.h file is from:

src/rp2040/pico_platform/include/pico/platform/common.h

src/rp2350/pico_platform/include/pico/platform/common.h

Moved to a unified location

src/rp2_common/pico_platform_common/include/pico/platform/common.h

However, the #include "pico/platform/common.h" path in the platform.h file has not been updated accordingly.

Solution:

Create symbolic links to link the missing header files to a new location

Result: The pico-sdk version 2.2.0 was successfully used in micropython

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions