Skip to content

Commit 36cf198

Browse files
committed
feat: add tool for upload jomla sketch
1 parent 546c9d1 commit 36cf198

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

extra/install_remoteocd.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/sh
2+
3+
REPO_URL="https://github.com/bcmi-labs/orchestrator.git"
4+
BRANCH_NAME="main"
5+
6+
set -xe
7+
8+
TMP_DIR=$(mktemp -d)
9+
10+
# pull the repo
11+
git clone "$REPO_URL" "$TMP_DIR"
12+
cd "$TMP_DIR"
13+
git checkout "$BRANCH_NAME"
14+
15+
# compile remoteocd
16+
go build -o build/remoteocd ./cmd/remoteocd
17+
18+
# move into arduino tools
19+
TARGET_PATH=$(arduino-cli config get directories.data)/packages/arduino/tools/remoteocd/0.0.1
20+
mkdir -p "$TARGET_PATH"
21+
cp build/remoteocd "$TARGET_PATH"
22+
23+
rm -rf "$TMP_DIR"
24+
25+
echo "remoteocd is in $TARGET_PATH/remoteocd"

extra/zephyr-core-template.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
},
3939
{
4040
"name": "NXP FRDM RW612"
41+
},
42+
{
43+
"name": "Arduino UNO Q"
4144
}
4245
],
4346
"toolsDependencies": [
@@ -65,6 +68,16 @@
6568
"packager": "arduino",
6669
"name": "sync-zephyr-artifacts",
6770
"version": "0.1.0"
71+
},
72+
{
73+
"packager": "arduino",
74+
"name": "adb",
75+
"version": "32.0.0"
76+
},
77+
{
78+
"packager": "arduino",
79+
"name": "remoteocd",
80+
"version": "0.0.3-rc.2"
6881
}
6982
]
7083
}

platform.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,20 @@ tools.adb.upload.params.verbose=-v
262262
tools.adb.upload.params.quiet=
263263
tools.adb.upload.pattern="{path}/{cmd}" push "{build.path}/{build.project_name}.elf" "/tmp/arduino/m4-user-sketch.elf"
264264

265+
#
266+
# REMOTEOCD
267+
#
268+
tools.remoteocd.path={runtime.tools.remoteocd.path}
269+
tools.remoteocd.cmd=remoteocd
270+
tools.remoteocd.upload.params.verbose=
271+
tools.remoteocd.upload.params.quiet=
272+
tools.remoteocd.upload.pattern="{path}/{cmd}" --adb-path {runtime.tools.adb.path}/adb -s "{upload.port.properties.serialNumber}" upload -a "{upload.address}" "{build.path}/{build.project_name}.{upload.extension}"
273+
274+
tools.remoteocd.bootloader.params.verbose=
275+
tools.remoteocd.bootloader.params.quiet=
276+
tools.remoteocd.erase.pattern=
277+
tools.remoteocd.bootloader.pattern="{path}/{cmd}" --adb-path {runtime.tools.adb.path}/adb -s "{upload.port.properties.serialNumber}" upload "{runtime.platform.path}/firmwares/{bootloader.file}"
278+
265279
#
266280
# PYOCD WRAPPER
267281
#

0 commit comments

Comments
 (0)