Skip to content

Add support for rp2350 and dynamic flash sizing. Update to modern SDK. #5

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

MelanieT
Copy link

@MelanieT MelanieT commented Apr 6, 2025

This patch updates the project to the current version of the SDK. It adds support for rp2350 and uses the flash size as set by the SDKs board file.

Copy link
Owner

@JZimnol JZimnol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelanieT Added one major comment, won't review further until it's resolved.

Comment on lines +26 to +30
#if PICO_PLATFORM == rp2350-arm-s
#include <RP2350.h>
#else
#include <RP2040.h>
#endif
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can't do such comparison on preprocesor macro. Even if PICO_PLATFORM is equal to "rp2040", the #if PICO_PLATFORM == rp2350-arm-s will be evaluated to true and the build will fail.

You should use some other preprocesor constants or create compile-time definitions like PICO_PLATFORM_RP2040 in CMakeLists.txt file.

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

Successfully merging this pull request may close these issues.

2 participants