-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Refined R43 and R45 SMC.BIN creation in python. - Fixed status logic in case SMC is equal to SMC.BIN. - Fixed status logic in case ROM is equal to ROM.BIN. - Fixed status logic in case both SMC.BIN and ROM.BIN are not present. - Fixed status logic in case no component has been updated.
- Loading branch information
1 parent
81884a4
commit 06d5a21
Showing
24 changed files
with
6,959 additions
and
6,876 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
Binary file not shown.
File renamed without changes.
Binary file not shown.
File renamed without changes.
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,23 @@ | ||
from intelhex import IntelHex | ||
|
||
version = "R43.0.0" | ||
|
||
src1 = IntelHex() | ||
|
||
src1.fromfile("bin/x16-smc-header-" + version + ".hex", format="hex") | ||
src1.tofile("bin/SMC-HEADER-" + version + ".BIN", format="bin") | ||
|
||
src2 = IntelHex() | ||
|
||
src2.fromfile("arduino/x16-smc-" + version + ".hex", format="hex") | ||
src2.tofile("bin/SMC-" + version + ".BIN", format="bin") | ||
|
||
# Try reading the file in binary mode and writing it back in binary | ||
# mode. By default it reads files in text mode | ||
input1 = open("bin/SMC-HEADER-" + version + ".BIN", "rb").read() | ||
input2 = open("bin/SMC-" + version + ".BIN", "rb").read() | ||
|
||
input1 += input2 | ||
|
||
with open("bin/SMC-" + version + ".BIN", "wb") as fp: | ||
fp.write(input1) |
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,23 @@ | ||
from intelhex import IntelHex | ||
|
||
version = "R45.1.0" | ||
|
||
src1 = IntelHex() | ||
|
||
src1.fromfile("bin/x16-smc-header-" + version + ".hex", format="hex") | ||
src1.tofile("bin/SMC-HEADER-" + version + ".BIN", format="bin") | ||
|
||
src2 = IntelHex() | ||
|
||
src2.fromfile("arduino/x16-smc-" + version + ".hex", format="hex") | ||
src2.tofile("bin/SMC-" + version + ".BIN", format="bin") | ||
|
||
# Try reading the file in binary mode and writing it back in binary | ||
# mode. By default it reads files in text mode | ||
input1 = open("bin/SMC-HEADER-" + version + ".BIN", "rb").read() | ||
input2 = open("bin/SMC-" + version + ".BIN", "rb").read() | ||
|
||
input1 += input2 | ||
|
||
with open("bin/SMC-" + version + ".BIN", "wb") as fp: | ||
fp.write(input1) |
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,3 @@ | ||
:100000002B000000000000000000000000000000C5 | ||
:100010000000000000000000000000000000002BB5 | ||
:00000001FF |
File renamed without changes.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.