Skip to content

Commit a55a978

Browse files
committed
Update pico readmes with additional clarity
1 parent 17ab15e commit a55a978

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

pico-blink-sdk/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $ cd pico-blink-sdk
2525
$ export TOOLCHAINS='<toolchain-name>'
2626
$ export PICO_BOARD=pico
2727
$ export PICO_SDK_PATH='<path-to-your-pico-sdk>'
28-
$ export PICO_TOOLCHAIN_PATH='<path-to-the-arm-toolchain>'
28+
$ export PICO_TOOLCHAIN_PATH='<path-to-the-arm-toolchain>' # A default `brew` install will be located at `/Applications/ArmGNUToolchain/[version]/arm-none-eabi`
2929
$ cmake -B build -G Ninja .
3030
$ cmake --build build
3131
```

pico-blink/README.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,22 @@
1010

1111
- Connect the Pico board via a USB cable to your Mac, and make sure it's in the USB Mass Storage firmware upload mode (either hold the BOOTSEL button while plugging the board, or make sure your Flash memory doesn't contain any valid firmware).
1212
- Make sure you have a recent nightly Swift toolchain that has Embedded Swift support.
13+
- Before building, you need to install the python dependencies (ideally in a virtual environment):
14+
15+
```console
16+
cd swift-embedded-examples
17+
mkdir pyenv
18+
cd pyenv
19+
python3 -m venv .
20+
source bin/activate
21+
cd ../Tools
22+
pip3 install -r requirements.txt
23+
```
24+
1325
- Build and copy the program in the UF2 format to the Mass Storage device to trigger flashing the program into memory (after which the device will reboot and run the firmware):
1426
``` console
1527
$ cd pico-blink
16-
$ TOOLCHAINS='<toolchain-name>' ./build.sh
28+
$ TOOLCHAINS='<toolchain-name>' ./build.sh # toolchain-name is typically `swift`
1729
$ cp .build/blink.uf2 /Volumes/RP2040
1830
```
1931
- The green LED should now be blinking in a pattern.

0 commit comments

Comments
 (0)