-
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.
- Bugfixes and new concept to build SMC.BIN header.
- Loading branch information
1 parent
223a8a3
commit bca8cbb
Showing
13 changed files
with
6,265 additions
and
6,117 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,21 +1,23 @@ | ||
from intelhex import IntelHex | ||
|
||
version = "R45.1.0" | ||
|
||
src1 = IntelHex() | ||
|
||
src1.fromfile("C:/Users/svenv/OneDrive/Documents/GitHub/x16-flash/python/x16-smc-header.hex", format="hex") | ||
src1.fromfile("python/x16-smc-header.hex", format="hex") | ||
src1.tofile("python/SMC-HEADER.BIN", format="bin") | ||
|
||
src2 = IntelHex() | ||
|
||
src2.fromfile("C:/Users/svenv/OneDrive/Documents/GitHub/x16-flash/python/x16-smc-r45.1.0.hex", format="hex") | ||
src2.tofile("python/SMC-R45.1.0.BIN", format="bin") | ||
src2.tofile("python/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('python/SMC-HEADER.BIN', 'rb').read() | ||
input2 = open('python/SMC-R45.1.0.bin', 'rb').read() | ||
input1 = open("python/SMC-HEADER.BIN", "rb").read() | ||
input2 = open("python/SMC-"+version+".BIN", "rb").read() | ||
|
||
input1 += input2 | ||
|
||
with open('python/SMC.BIN', 'wb') as fp: | ||
with open("python/SMC.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
:100000002B2C000000000000000000000000000099 | ||
:1000100000000000000000000000000000000000E0 | ||
:100000002D010000000000000000000000000000C2 | ||
:1000100000000000000000000000000000002C2B89 | ||
:00000001FF |
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
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
Binary file not shown.
Oops, something went wrong.