-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add Pico2/Pico2W build target with universal Pico 1 & 2 uf2.
- Loading branch information
1 parent
cc8f787
commit 30b42b9
Showing
6 changed files
with
84 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ dist/ | |
.vscode/extensions.json | ||
cc-nc-hardware/*/*-backups/ | ||
.idea/ | ||
distrib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"build": { | ||
"arduino": { | ||
"earlephilhower": { | ||
"boot2_source": "none.S", | ||
"usb_vid": "0x2E8A", | ||
"usb_pid": "0xF00F" | ||
} | ||
}, | ||
"core": "earlephilhower", | ||
"cpu": "cortex-m33", | ||
"extra_flags": "-DARDUINO_RASPBERRY_PI_PICO_2W -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250 -DPICO_CYW43_SUPPORTED=1 -DCYW43_PIN_WL_DYNAMIC=1", | ||
"f_cpu": "150000000L", | ||
"hwids": [ | ||
[ | ||
"0x2E8A", | ||
"0x00C0" | ||
], | ||
[ | ||
"0x2E8A", | ||
"0xF00F" | ||
] | ||
], | ||
"mcu": "rp2350", | ||
"variant": "rpipico2w" | ||
}, | ||
"debug": { | ||
"jlink_device": "RP2350_0", | ||
"openocd_target": "rp2350.cfg", | ||
"svd_path": "rp2350.svd" | ||
}, | ||
"frameworks": [ | ||
"arduino" | ||
], | ||
"name": "Pico 2W", | ||
"upload": { | ||
"maximum_ram_size": 524288, | ||
"maximum_size": 4194304, | ||
"require_upload_port": true, | ||
"native_usb": true, | ||
"use_1200bps_touch": true, | ||
"wait_for_upload_port": false, | ||
"protocol": "picotool", | ||
"protocols": [ | ||
"blackmagic", | ||
"cmsis-dap", | ||
"jlink", | ||
"raspberrypi-swd", | ||
"picotool", | ||
"picoprobe" | ||
] | ||
}, | ||
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/", | ||
"vendor": "Raspberry Pi" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
# This script renames the built binaries according to version | ||
# number and platform. | ||
|
||
set -e | ||
set -x | ||
mkdir -p distrib | ||
|
||
DATE=$(date +%Y-%m-%d) | ||
VERSION=$(git describe --always) | ||
|
||
for file in $(ls .pio/build/*/*.bin .pio/build/*/*.elf .pio/build/*/*.uf2) | ||
for file in .pio/build/*/*.bin .pio/build/*/*.elf .pio/build/*/*.uf2 | ||
do | ||
NEWNAME=$(echo $file | sed 's|.pio/build/\([^/]*\)/\(.*\)\.\(.*\)|\1_'$DATE'_'$VERSION'.\3|') | ||
echo $file to distrib/$NEWNAME | ||
cp $file distrib/$NEWNAME | ||
NEWNAME=$(echo "$file" | sed 's|.pio/build/\([^/]*\)/\(.*\)\.\(.*\)|\1_'$DATE'_'$VERSION'.\3|') | ||
echo "$file" to distrib/"$NEWNAME" | ||
cp "$file" distrib/"$NEWNAME" | ||
done | ||
|
||
cat distrib/*.uf2 > distrib/BlueSCSI_Universal_"$DATE"_"$VERSION".uf2 |