From: 孙春阳 Date: Fri, 1 Aug 2025 08:56:21 +0000 (+0800) Subject: 修复ssb 配置错误造成的application.bin下载失败问题 X-Git-Tag: leiniao_debug_1.0.0_20250922_020716~203^2 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F2036%2F1;p=mirrors%2FFD230.git 修复ssb 配置错误造成的application.bin下载失败问题 --- diff --git a/code/sdk/build/config/target_config/brandy/menuconfig/acore/brandy_native_js_fd230_ssb.config b/code/sdk/build/config/target_config/brandy/menuconfig/acore/brandy_native_js_fd230_ssb.config new file mode 100644 index 000000000..b308abd06 --- /dev/null +++ b/code/sdk/build/config/target_config/brandy/menuconfig/acore/brandy_native_js_fd230_ssb.config @@ -0,0 +1,18 @@ +# Generated by Kconfig Tool. +# Note: !!!This file can not be modify manually!!! + +# +# Main menu description, show how to use this configuration system. +# + +# +# Product +# + +# +# Config the product. +# +CONFIG_NORFLASH_SIZE=16 +CONFIG_LOAD_FROM_FS=y +CONFIG_PSRAM_DENSITY_MB=32 +# end of Product diff --git a/code/sdk/build/script/cmake_builder.py b/code/sdk/build/script/cmake_builder.py index 21273aaf9..8ce1e2c09 100644 --- a/code/sdk/build/script/cmake_builder.py +++ b/code/sdk/build/script/cmake_builder.py @@ -321,7 +321,7 @@ class CMakeBuilder(BuildEnvironment): menuconfig_argv = ["", "savemenuconfig", chip, core, target_name, output_path] mconfig(menuconfig_argv) save_kconfig_env(env, mconfig_file_path) - + print("{}".format(mconfig_file_path)) os.chdir(output_path) log_file_name = "build_%s.log" % target_name log_file = os.path.join(output_root, chip, log_file_name) diff --git a/code/sdk/tools/pkg/chip_packet/brandy/packet.py b/code/sdk/tools/pkg/chip_packet/brandy/packet.py index 1bc4d08a5..f3783ace7 100644 --- a/code/sdk/tools/pkg/chip_packet/brandy/packet.py +++ b/code/sdk/tools/pkg/chip_packet/brandy/packet.py @@ -55,6 +55,7 @@ def build_brandy_other_bin(pack_style_str, flash_size, no_dsp): nv_begin(nv_config_json, targets, 0) def make_all_in_one_packet_8M(pack_style_str): + print("make_all_in_one_packet_8M") # make all in one packet target_env = TargetEnvironment(pack_style_str) bin_dir = os.path.join(PKG_DIR, "bin", "brandy") @@ -118,6 +119,7 @@ def make_all_in_one_packet_8M(pack_style_str): exit(-1) def make_all_in_one_packet_no_dsp(pack_style_str): + print("make_all_in_one_packet_no_dsp") # make all in one packet target_env = TargetEnvironment(pack_style_str) bin_dir = os.path.join(PKG_DIR, "bin", "brandy") @@ -174,6 +176,7 @@ def make_all_in_one_packet_no_dsp(pack_style_str): def make_all_in_one_packet_16M(pack_style_str): # make all in one packet + print("make_all_in_one_packet_16M") target_env = TargetEnvironment(pack_style_str) bin_dir = os.path.join(PKG_DIR, "bin", "brandy") application_dir = os.path.join(SDK_DIR, diff --git a/code/sdk/tools/pkg/packet.py b/code/sdk/tools/pkg/packet.py index 2656055ba..a07d54a3f 100644 --- a/code/sdk/tools/pkg/packet.py +++ b/code/sdk/tools/pkg/packet.py @@ -13,8 +13,10 @@ sys.dont_write_bytecode = True def main(): arg_ls = sys.argv - if len(arg_ls) != 4: - print("Parameter error") + arglen = len(arg_ls) + if arglen != 5: + print("Parameter error {}".format(arglen)) + build_soc = sys.argv[1] build_target = sys.argv[2] flash_size = sys.argv[3]