Skip to content

Conversation

@iCMDdev
Copy link

@iCMDdev iCMDdev commented Sep 11, 2024

This PR updates the "Integrating With SDKs" Swift Embedded tutorial, following the latest changes in the swift-embedded-examples repository (swiftlang/swift-embedded-examples#58). It adds support for the Raspberry Pi Pico 2 (RP2350) in both ARM and RISC-V modes.

This is a partial improvement. To fully support the Pico SDK 2.0 changes (and also fix other silent issues that may arise with any SDK version in complex projects based on this), further modifications are needed, both described in swiftlang/swift-embedded-examples#59 (currently awaiting a review / suggestions before submitting a PR):

  • Pass the Pico SDK compiler definitions to swiftc
  • Pico SDK 2.0.1 will fix an issue when building for RISC-V

Suggestions regarding this PR and / or the issues linked above are very much welcome!

@iCMDdev iCMDdev marked this pull request as draft September 11, 2024 18:10
@iCMDdev
Copy link
Author

iCMDdev commented Sep 11, 2024

I decided to convert this to a draft until the compiler definitions issue described above gets fixed in the swift-embedded-examples repo (swiftlang/swift-embedded-examples#59). After that, I'll update the docs here.

@iCMDdev iCMDdev changed the title Swift Embedded docs - update Pico SDK example in Integrating With SDKs [embedded] [docs] Swift Embedded docs - update Pico SDK example in Integrating With SDKs Sep 11, 2024
Similar to swiftlang/swift-embedded-examples#63, this addresses issues regarding compiler definitions when using the Pico SDK with swiftc.
@iCMDdev
Copy link
Author

iCMDdev commented Oct 11, 2024

I fixed the "Pass the Pico SDK compiler definitions to swiftc" part and published a PR on the main swift-embedded-examples (swiftlang/swift-embedded-examples#63) repo. I mirrored the changes here in my latest commit.

I will mark this as ready for review once the PR on the examples repo gets merged (and make the appropiate changes if necessary).

Follows the discussion and changes in the swift-embedded-examples repo.
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.

1 participant