Browse Source

Robin_nano.bin => robin_nano35.bin

pull/1/head
Sergey 5 years ago
parent
commit
254eb365ed
  1. 4
      buildroot/share/PlatformIO/scripts/mks_robin_nano.py

4
buildroot/share/PlatformIO/scripts/mks_robin_nano.py

@ -18,6 +18,7 @@ for i, flag in enumerate(env["LINKFLAGS"]):
# Encrypt ${PROGNAME}.bin and save it as 'Robin_nano.bin'
def encrypt(source, target, env):
import sys
import shutil
key = [0xA3, 0xBD, 0xAD, 0x0D, 0x41, 0x11, 0xBB, 0x8D, 0xDC, 0x80, 0x2D, 0xD0, 0xD2, 0xC4, 0x9B, 0x1E, 0x26, 0xEB, 0xE3, 0x33, 0x4A, 0x15, 0xE4, 0x0A, 0xB3, 0xB1, 0x3C, 0x93, 0xBB, 0xAF, 0xF7, 0x3E]
@ -37,4 +38,7 @@ def encrypt(source, target, env):
finally:
firmware.close()
robin.close()
source = target[0].dir.path +'/Robin_nano.bin'
destination = target[0].dir.path +'/Robin_nano35.bin'
shutil.copyfile(source, destination)
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", encrypt);

Loading…
Cancel
Save