Start RAM code for updater
This commit is contained in:
17
stm-firmware/updater/ram-code/bin2carray.py
Executable file
17
stm-firmware/updater/ram-code/bin2carray.py
Executable file
@@ -0,0 +1,17 @@
|
||||
#!env python
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
if len(sys.argv) < 3:
|
||||
sys.exit(-1)
|
||||
|
||||
source_file = sys.argv[2]
|
||||
dest_file = sys.argv[1]
|
||||
|
||||
print("%s --> %s" % (source_file, dest_file))
|
||||
|
||||
with open(dest_file, "w") as f:
|
||||
f.write("AAA")
|
||||
|
||||
sys.exit(0)
|
||||
Reference in New Issue
Block a user