Skip to content

Commit

Permalink
Fix flash
Browse files Browse the repository at this point in the history
  • Loading branch information
jczhang777 committed May 22, 2024
1 parent 252264a commit 4480e7d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
23 changes: 23 additions & 0 deletions config/qcc74x/flash_prog/flash_prog_cfg.ini
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions scripts/flashing/qcc74x_firmware_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4480e7d

Please sign in to comment.