修复ssb 配置错误造成的application.bin下载失败问题 2036/1 2036/head 2040/target/1
author孙春阳 <snickersun@163.com>
Fri, 1 Aug 2025 08:56:21 +0000 (16:56 +0800)
committer孙春阳 <snickersun@163.com>
Fri, 1 Aug 2025 08:56:21 +0000 (16:56 +0800)
code/sdk/build/config/target_config/brandy/menuconfig/acore/brandy_native_js_fd230_ssb.config [new file with mode: 0644]
code/sdk/build/script/cmake_builder.py
code/sdk/tools/pkg/chip_packet/brandy/packet.py
code/sdk/tools/pkg/packet.py

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 (file)
index 0000000..b308abd
--- /dev/null
@@ -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
index 21273aa..8ce1e2c 100644 (file)
@@ -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)
index 1bc4d08..f3783ac 100644 (file)
@@ -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,
index 2656055..a07d54a 100644 (file)
@@ -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]