Skip to content

Commit a57482f

Browse files
committed
bouffalolab_release_bl_iot_sdk_1.6.40-1605-g2706c9d81
1 parent f65861d commit a57482f

7 files changed

+67
-11
lines changed

bl_iot_sdk_debug_freedom_studio_win_attach_bl702.launch

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<stringAttribute key="com.sifive.gnumcueclipse.debug.gdbjtag.openocd.gdbServerExecutable" value="${openocd_gdbserver}"/>
2929
<intAttribute key="com.sifive.gnumcueclipse.debug.gdbjtag.openocd.gdbServerGdbPortNumber" value="3333"/>
3030
<stringAttribute key="com.sifive.gnumcueclipse.debug.gdbjtag.openocd.gdbServerLog" value=""/>
31-
<stringAttribute key="com.sifive.gnumcueclipse.debug.gdbjtag.openocd.gdbServerOther" value="-f tools/debug/openocd_cfg/if_bflb_link.cfg -f tools/debug/702/tgt_702_xip_attach.cfg"/>
31+
<stringAttribute key="com.sifive.gnumcueclipse.debug.gdbjtag.openocd.gdbServerOther" value="-f tools/debug/openocd_cfg/if_rv_dbg_plus.cfg -f tools/debug/702/tgt_702_xip_attach.cfg"/>
3232
<stringAttribute key="com.sifive.gnumcueclipse.debug.gdbjtag.openocd.gdbServerTclPortNumber" value="6666"/>
3333
<intAttribute key="com.sifive.gnumcueclipse.debug.gdbjtag.openocd.gdbServerTelnetPortNumber" value="4444"/>
3434
<booleanAttribute key="com.sifive.gnumcueclipse.debug.gdbjtag.openocd.openSerialPort" value="false"/>

bl_iot_sdk_debug_freedom_studio_win_bl702.launch

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<stringAttribute key="com.sifive.gnumcueclipse.debug.gdbjtag.openocd.gdbServerExecutable" value="${openocd_gdbserver}"/>
2929
<intAttribute key="com.sifive.gnumcueclipse.debug.gdbjtag.openocd.gdbServerGdbPortNumber" value="3333"/>
3030
<stringAttribute key="com.sifive.gnumcueclipse.debug.gdbjtag.openocd.gdbServerLog" value=""/>
31-
<stringAttribute key="com.sifive.gnumcueclipse.debug.gdbjtag.openocd.gdbServerOther" value="-f tools/debug/openocd_cfg/if_bflb_link.cfg -f tools/debug/702/tgt_702_xip.cfg"/>
31+
<stringAttribute key="com.sifive.gnumcueclipse.debug.gdbjtag.openocd.gdbServerOther" value="-f tools/debug/openocd_cfg/if_rv_dbg_plus.cfg -f tools/debug/702/tgt_702_xip.cfg"/>
3232
<stringAttribute key="com.sifive.gnumcueclipse.debug.gdbjtag.openocd.gdbServerTclPortNumber" value="6666"/>
3333
<intAttribute key="com.sifive.gnumcueclipse.debug.gdbjtag.openocd.gdbServerTelnetPortNumber" value="4444"/>
3434
<booleanAttribute key="com.sifive.gnumcueclipse.debug.gdbjtag.openocd.openSerialPort" value="false"/>

components

Submodule components updated 763 files

customer_app

Submodule customer_app updated 93 files

docs

Submodule docs updated 187 files

flash

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/bin/sh
2+
# Just run this script
3+
script_dir="$(dirname "$(realpath "$0")")"
4+
echo script_dir is $script_dir
5+
cd "$script_dir"
6+
echo Current dir is $(pwd)
7+
8+
# New feature: List and choose .bin files if no argument is provided
9+
echo "Debug: Checking number of arguments: $#"
10+
if [ $# -eq 0 ]; then
11+
echo "Debug: No arguments provided."
12+
echo "No file path provided. Searching in the customer_app directory..."
13+
script_dir="$(dirname "$(realpath "$0")")"
14+
echo "Debug: Script directory is $script_dir"
15+
customer_app_dir="${script_dir}/customer_app"
16+
echo "Debug: customer_app directory is $customer_app_dir"
17+
files=$(find "$customer_app_dir" -type f -name "*.bin" | awk -F/ '$(NF-1)=="build_out"')
18+
e cho "Debug: Found files: $files"
19+
20+
21+
if [ -z "$files" ]; then
22+
echo "No .bin files found."
23+
exit 1
24+
fi
25+
26+
echo "Available .bin files:"
27+
select filepath in $files; do
28+
if [ -n "$filepath" ]; then
29+
bin_name=$filepath # Keep the full path
30+
echo "Debug: User selected file is $bin_name"
31+
break
32+
else
33+
echo "Invalid selection. Try again."
34+
fi
35+
done
36+
fi
37+
38+
echo Try finding bin file path for $bin_name
39+
if [ ! -f "$bin_name" ]; then
40+
bin_path=customer_app/$bin_name/build_out/$bin_name.bin
41+
else
42+
bin_path=$bin_name
43+
fi
44+
echo bin file path is $bin_path
45+
46+
if [ -f "$bin_path" ]; then
47+
# 获取文件大小并打印
48+
file_size=$(stat -c%s "$bin_path")
49+
echo "The size of the file is: $file_size bytes"
50+
chmod +x ./tools/flash_tool/bflb_iot_tool-ubuntu
51+
./tools/flash_tool/bflb_iot_tool-ubuntu --chipname=bl616 --baudrate=2000000 --pt=tools/flash_tool/chips/bl616/partition/partition_cfg_4M.toml --dts=tools/flash_tool/chips/bl616/device_tree/bl_factory_params_IoTKitA_auto.dts --boot2=tools/flash_tool/chips/bl616/builtin_imgs/boot2_isp_bl616_v6.5.6/boot2_isp_release.bin --firmware=$bin_path
52+
else
53+
# 文件不存在,打印错误信息并退出
54+
echo "Error: The file does not exist at the given path: $bin_path"
55+
exit 1
56+
fi

version.mk

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
EXTRA_CPPFLAGS ?=
22
ifeq ("$(CONFIG_CHIP_NAME)", "BL602")
3-
EXTRA_CPPFLAGS += -D BL_SDK_VER=\"release_bl_iot_sdk_1.6.40-1278-gd5108915c\"
3+
EXTRA_CPPFLAGS += -D BL_SDK_VER=\"release_bl_iot_sdk_1.6.40-1605-g2706c9d81\"
44
EXTRA_CPPFLAGS += -D BL_SDK_PHY_VER=\"a0_final-106-g24fc0eb\"
55
EXTRA_CPPFLAGS += -D BL_SDK_RF_VER=\"f6ed2e9\"
66
EXTRA_CPPFLAGS += -D BL_SDK_STDDRV_VER=\"6de1feb\"
77
endif
88
ifeq ("$(CONFIG_CHIP_NAME)", "BL702")
9-
EXTRA_CPPFLAGS += -D BL_SDK_VER=\"release_bl_iot_sdk_1.6.40-1278-gd5108915c\"
10-
EXTRA_CPPFLAGS += -D BL_SDK_STDDRV_VER=\"84e6b94\"
9+
EXTRA_CPPFLAGS += -D BL_SDK_VER=\"release_bl_iot_sdk_1.6.40-1605-g2706c9d81\"
10+
EXTRA_CPPFLAGS += -D BL_SDK_STDDRV_VER=\"f52e35a\"
1111
EXTRA_CPPFLAGS += -D BL_SDK_STDCOM_VER=\"9fe1995\"
1212
EXTRA_CPPFLAGS += -D BL_SDK_RF_VER=\"e203dee\"
1313
endif
1414
ifeq ("$(CONFIG_CHIP_NAME)", "BL702L")
15-
EXTRA_CPPFLAGS += -D BL_SDK_VER=\"release_bl_iot_sdk_1.6.40-1278-gd5108915c\"
16-
EXTRA_CPPFLAGS += -D BL_SDK_STDDRV_VER=\"65e0b95\"
15+
EXTRA_CPPFLAGS += -D BL_SDK_VER=\"release_bl_iot_sdk_1.6.40-1605-g2706c9d81\"
16+
EXTRA_CPPFLAGS += -D BL_SDK_STDDRV_VER=\"3441183\"
1717
EXTRA_CPPFLAGS += -D BL_SDK_STDCOM_VER=\"88edf7b\"
18-
EXTRA_CPPFLAGS += -D BL_SDK_RF_VER=\"e2b83ad\"
18+
EXTRA_CPPFLAGS += -D BL_SDK_RF_VER=\"3ab03d7\"
1919
endif

0 commit comments

Comments
 (0)