Skip to content

Commit e393824

Browse files
Add --pico-family parameter (#60)
1 parent 22f2c98 commit e393824

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pico-blink/build.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
set -vex
44

5+
# Either rp2040 or rp2350
6+
PICO_FAMILY=rp2040
7+
58
# Determine file paths
69
REPOROOT=$(git rev-parse --show-toplevel)
710
TOOLSROOT=$REPOROOT/Tools
@@ -35,7 +38,7 @@ BUILDROOT=$($SWIFT_EXEC build $SWIFT_BUILD_FLAGS --show-bin-path)
3538
$CLANG .build/release/Support.build/{Support.c,crt0.S}.o .build/release/Blinky.build/*.o -target armv6m-apple-none-macho -o $BUILDROOT/blinky $LD_FLAGS
3639

3740
# Extract sections from executable into flashable binary
38-
$PYTHON_EXEC $MACHO2UF2 $BUILDROOT/blinky $BUILDROOT/blinky.uf2 --base-address 0x20000000 --segments '__TEXT,__DATA,__VECTORS,__RESET'
41+
$PYTHON_EXEC $MACHO2UF2 --pico-family $PICO_FAMILY $BUILDROOT/blinky $BUILDROOT/blinky.uf2 --base-address 0x20000000 --segments '__TEXT,__DATA,__VECTORS,__RESET'
3942

4043
# Echo final binary path
4144
ls -al $BUILDROOT/blinky.uf2

0 commit comments

Comments
 (0)