移植到stm32f1,实现手动线赋码控制器功能

This commit is contained in:
ranchuan
2023-09-09 17:27:06 +08:00
parent 8d779a68f3
commit 7baa63de05
382 changed files with 36618 additions and 148064 deletions

View File

@@ -6,11 +6,11 @@ import prebuild as time
# 定义app和boot文件路径(没有尾缀)
APP_FILE_SRC = "./Objects/app/checker_gen1_app"
BOOT_FILE_SRC = "./Objects/boot/checker_gen1_boot"
# APP_FILE_DST = "./Objects/checker_gen1_app"
APP_FILE_DST = "./python/file/checker_gen1_app"
BOOT_FILE_DST = "./Objects/checker_gen1_boot"
APP_FILE_SRC = "./Objects/app/coder_2channel_app"
BOOT_FILE_SRC = "./Objects/boot/coder_2channel_boot"
# APP_FILE_DST = "./Objects/coder_2channel_app"
APP_FILE_DST = "./python/file/coder_2channel_app"
BOOT_FILE_DST = "./Objects/coder_2channel_boot"
# 找到指定后缀的文件
@@ -148,7 +148,7 @@ def main():
d=bytearray()
with open(boot,"rb") as f:
d+=f.read()
d+=arr_byte_copy(0xff,0x20000-len(d))
d+=arr_byte_copy(0xff,0x4000-len(d))
with open(src,"rb") as f:
d+=f.read()
if os.path.exists(boot_dst):