Skip to content

Commit c33457f

Browse files
committed
Change windows upload tool to compiled 'artemis_bin_to_board.py'
This executable created using pyinstaller on Windows10
1 parent 750481b commit c33457f

File tree

123 files changed

+1905
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+1905
-2
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"packages": [
3+
{
4+
"name": "SparkFunA3",
5+
"maintainer": "SparkFun Electronics",
6+
"websiteURL": "https://github.com/sparkfun/Arduino_Apollo3",
7+
"email": "support@sparkfun.com",
8+
9+
"platforms": [
10+
{
11+
"name": "SparkFun Apollo3 Boards",
12+
"architecture": "apollo3",
13+
"version": "0.0.0",
14+
"category": "Contributed",
15+
"url": "https://github.com/sparkfun/Arduino_Apollo3/archive/v0.0.0.tar.gz",
16+
"archiveFileName": "Arduino_Apollo3-0.0.0.tar.gz",
17+
"checksum": "SHA-256:todo", // todo: add the checksum of the core archive here!
18+
"size": "1", // todo: add the size here
19+
"help": {
20+
"online": "https://learn.sparkfun.com/tutorials/installing-arduino-ide/board-add-ons-with-arduino-board-manager"
21+
},
22+
"boards": [
23+
{ "name": "SparkFun Artemis Module" },
24+
{ "name": "SparkFun Artemis Nano" },
25+
{ "name": "SparkFun BlackBoard Artemis" },
26+
{ "name": "SparkFun Edge" }
27+
],
28+
"toolsDependencies": [
29+
// {
30+
// "packager": "arduino",
31+
// "name": "arm-none-eabi-gcc",
32+
// "version": "4.8.3-2014q1"
33+
// },
34+
// {
35+
// "packager": "arduino",
36+
// "name": "bossac",
37+
// "version": "1.8.0-48-gb176eee"
38+
// },
39+
// {
40+
// "packager": "arduino",
41+
// "name": "openocd",
42+
// "version": "0.9.0-arduino"
43+
// },
44+
// {
45+
// "packager": "arduino",
46+
// "name": "CMSIS",
47+
// "version": "4.5.0"
48+
// },
49+
// {
50+
// "packager": "arduino",
51+
// "name": "CMSIS-Atmel",
52+
// "version": "1.2.0"
53+
// }
54+
]
55+
}
56+
],
57+
58+
"tools": [
59+
TOOLS_COMPILER_AVR,
60+
TOOLS_UPLOADER_AVR,
61+
TOOLS_COMPILER_ARM,
62+
TOOLS_XXXXXXX,
63+
TOOLS_YYYYYYY,
64+
],
65+
}
66+
]
67+
}

platform.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ tools.ap3Loader.scr={runtime.platform.path}/tools/apollo3_scripts/sparkfun/artem
130130
tools.ap3Loader.args=--bin "{build.path}/{build.project_name}.bin" --load-address-blob 0x20000 --magic-num 0xCB -o {build.path}/{build.project_name} --version 0x0 --load-address-wired 0xC000 -i 6 --options 0x1 -b 921600 -port "{serial.port}" -r 1 {upload.verbose}
131131

132132
tools.ap3Loader.pgm.windows=
133-
tools.ap3Loader.scr.windows={runtime.platform.path}/tools/apollo3_scripts/sparkfun/artemis/windows/artemis_uart_loader_combined.exe
134-
tools.ap3Loader.args.windows=-b 921600 "{serial.port}" -r 1 -f "{build.path}/{build.project_name}.bin" -i 6 {upload.verbose} -toolLocation "{runtime.platform.path}/tools/apollo3_scripts/sparkfun/artemis/windows"
133+
tools.ap3Loader.scr.windows={runtime.platform.path}/tools/apollo3_scripts/sparkfun/artemis/windows/artemis_bin_to_board/artemis_bin_to_board.exe
134+
tools.ap3Loader.args.windows=--bin "{build.path}/{build.project_name}.bin" --load-address-blob 0x20000 --magic-num 0xCB -o {build.path}/{build.project_name} --version 0x0 --load-address-wired 0xC000 -i 6 --options 0x1 -b 921600 -port "{serial.port}" -r 1 {upload.verbose}
135135

136136
tools.ap3Loader.upload.protocol=ap3
137137
tools.ap3Loader.upload.params.verbose=-v
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# -*- mode: python -*-
2+
3+
block_cipher = None
4+
5+
6+
a = Analysis(['artemis_bin_to_board.py'],
7+
pathex=['C:\\Users\\owen.lyke\\Projects\\Arduino_Apollo3\\tools\\apollo3_scripts\\sparkfun\\artemis'],
8+
binaries=[],
9+
datas=[],
10+
hiddenimports=[],
11+
hookspath=[],
12+
runtime_hooks=[],
13+
excludes=[],
14+
win_no_prefer_redirects=False,
15+
win_private_assemblies=False,
16+
cipher=block_cipher,
17+
noarchive=False)
18+
pyz = PYZ(a.pure, a.zipped_data,
19+
cipher=block_cipher)
20+
exe = EXE(pyz,
21+
a.scripts,
22+
[],
23+
exclude_binaries=True,
24+
name='artemis_bin_to_board',
25+
debug=False,
26+
bootloader_ignore_signals=False,
27+
strip=False,
28+
upx=True,
29+
console=True )
30+
coll = COLLECT(exe,
31+
a.binaries,
32+
a.zipfiles,
33+
a.datas,
34+
strip=False,
35+
upx=True,
36+
name='artemis_bin_to_board')

0 commit comments

Comments
 (0)