You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,35 +12,42 @@ A proof of concept for executing Embedded Swift code on the [Raspberry Pi Pico](
12
12
### Software
13
13
14
14
- Host OS: macOS 13.x or 14.x
15
+
16
+
Tested on macOS 13.6.2. It’ll probably work on Linux with minimal modifications to tell CMake how to find the Swift toolchain, but I haven’t tested this.
15
17
16
-
- A recent nightly Swift toolchain from [swift.org](https://www.swift.org/download/). Tested with the December 7, 2023 toolchain.
18
+
- A recent nightly Swift toolchain from [swift.org](https://www.swift.org/download/). Tested with the Xcode toolchain from December 7, 2023.
17
19
18
20
- A clone of the [Raspberry Pi Pico C/C++ SDK](https://github.com/raspberrypi/pico-sdk/):
19
21
20
22
```sh
21
-
# This project expects to find pico-sdk in a sibling directory to itself.
This project expects to find the SDK in a sibling directory named `pico-sdk`. You can change this below if your SDK is in a different place.
31
+
32
+
- The GCC compiler for ARM embedded platforms
33
+
29
34
-[CMake](https://cmake.org/) and [Ninja](https://ninja-build.org/):
30
35
31
36
```sh
32
37
brew install cmake ninja
33
38
```
34
39
40
+
The Pico SDK uses CMake as its build system and we’re piggybacking on that. The Swift library is also built with CMake. The unfortunate consequence is that we can’t easily use a [SwiftPM](https://www.swift.org/package-manager/) package for the Swift library as we’d have to tell CMake how to build the package.
41
+
35
42
## Configuration
36
43
37
44
Open the file `CMakeLists.txt` in the root folder. Edit these two lines to match your setup:
0 commit comments