From 4480e7dd6bc9b65816e91fe713e652bbee971130 Mon Sep 17 00:00:00 2001 From: jczhang Date: Wed, 22 May 2024 17:29:11 +0800 Subject: [PATCH] Fix flash --- config/qcc74x/flash_prog/flash_prog_cfg.ini | 23 +++++++++++++++++++++ scripts/flashing/qcc74x_firmware_utils.py | 5 +++++ 2 files changed, 28 insertions(+) create mode 100644 config/qcc74x/flash_prog/flash_prog_cfg.ini diff --git a/config/qcc74x/flash_prog/flash_prog_cfg.ini b/config/qcc74x/flash_prog/flash_prog_cfg.ini new file mode 100644 index 00000000000000..0912a59ba0f1e3 --- /dev/null +++ b/config/qcc74x/flash_prog/flash_prog_cfg.ini @@ -0,0 +1,23 @@ +[cfg] +# 0: no erase, 1:programmed section erase, 2: chip erase +erase = 2 +# skip mode set first para is skip addr, second para is skip len, multi-segment region with ; separated +skip_mode = 0x0, 0x0 +# 0: not use isp mode, #1: isp mode +boot2_isp_mode = 0 + +[boot2] +filedir = ../../../out/qcc74x-qcc743dk-light-wifi/boot2_*.bin +address = 0x000000 + +[partition] +filedir = ../../../out/qcc74x-qcc743dk-light-wifi/partition*.bin +address = 0xE000 + +[FW] +filedir = ../../../out/qcc74x-qcc743dk-light-wifi/chip-qcc743-lighting-example.bin +address = @partition + +# [mfg] +# filedir = ./build/build_out/mfg*.bin +# address = @partition diff --git a/scripts/flashing/qcc74x_firmware_utils.py b/scripts/flashing/qcc74x_firmware_utils.py index 9d99002e951c0d..2c4e7041a14d2c 100644 --- a/scripts/flashing/qcc74x_firmware_utils.py +++ b/scripts/flashing/qcc74x_firmware_utils.py @@ -299,6 +299,11 @@ def actions(self): shutil.rmtree(ota_output_folder) os.mkdir(ota_output_folder) + arguments = ['../../third_party/qcc74x/qcc74x_sdk/tools/qcc74x_tools/QConn_Secure/QConn_Secure-ubuntu', + '--chipname=qcc743', + '--imgfile=../../out/qcc74x-qcc743dk-light-wifi/chip-qcc743-lighting-example.bin', + '--brdcfgdir=../../third_party/qcc74x/qcc74x_sdk/bsp/board/qcc743dk/config'] + logging.info("Arguments {}".format(arguments)) process = subprocess.Popen(arguments, stdout=subprocess.PIPE, stderr=subprocess.PIPE) while process.poll() is None: