[chore] update flash tool

This commit is contained in:
jzlv 2021-07-16 16:36:07 +08:00
parent fd40d1de87
commit ee237e8197
15 changed files with 234 additions and 234 deletions

Binary file not shown.

View file

@ -17,5 +17,5 @@ bflb_iot_tool.exe --chipname=bl602 --port=COM9 --xtal=40M --firmware="D:\\bouffa
--single单文件烧写
--addr烧写地址默认0
--configeflash_loader_cfg.ini
--otaHaier ota文件输出路径

Binary file not shown.

View file

@ -24,7 +24,7 @@ iap_shakehand_timeout = 0
#xtal_type = 2
erase_time_out = 15000
#chiptype=702
#eflash_loader_file=chips/bl702/eflash_loader/eflash_loader_32m.bin
eflash_loader_file=chips/bl702/eflash_loader/eflash_loader_32m.bin
check_mac = false
#0:no erase,1:programmed section erase,2:chip erase
erase = 1

View file

@ -8,9 +8,9 @@ type = 0
name = "FW"
device = 0
address0 = 0x3000
size0 = 0x8D000
address1 = 0x90000
size1 = 0x63000
size0 = 0x90000
address1 = 0x93000
size1 = 0x66000
# compressed image must set len,normal image can left it to 0
len = 0
activeindex = 0
@ -20,8 +20,8 @@ age = 0
type = 1
name = "mfg"
device = 0
address0 = 0x90000
size0 = 0x63000
address0 = 0x93000
size0 = 0x66000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0
@ -31,10 +31,10 @@ age = 0
[[pt_entry]]
type = 2
name = "media"
name = "PSM"
device = 0
address0 = 0xF3000
size0 = 0x5000
address0 = 0xF9000
size0 = 0x2000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0
@ -44,9 +44,9 @@ age = 0
[[pt_entry]]
type = 3
name = "PSM"
name = "media"
device = 0
address0 = 0xF8000
address0 = 0xFB000
size0 = 0x4000
address1 = 0
size1 = 0
@ -59,8 +59,8 @@ age = 0
type = 4
name = "factory"
device = 0
address0 = 0xFC000
size0 = 0x4000
address0 = 0xFF000
size0 = 0x1000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0

View file

@ -8,9 +8,9 @@ type = 0
name = "FW"
device = 0
address0 = 0x3000
size0 = 0x8D000
address1 = 0x90000
size1 = 0x63000
size0 = 0x90000
address1 = 0x93000
size1 = 0x66000
# compressed image must set len,normal image can left it to 0
len = 0
activeindex = 1
@ -20,8 +20,8 @@ age = 0
type = 1
name = "mfg"
device = 0
address0 = 0x90000
size0 = 0x63000
address0 = 0x93000
size0 = 0x66000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0
@ -31,10 +31,10 @@ age = 0
[[pt_entry]]
type = 2
name = "media"
name = "PSM"
device = 0
address0 = 0xF3000
size0 = 0x5000
address0 = 0xF9000
size0 = 0x2000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0
@ -44,9 +44,9 @@ age = 0
[[pt_entry]]
type = 3
name = "PSM"
name = "media"
device = 0
address0 = 0xF8000
address0 = 0xFB000
size0 = 0x4000
address1 = 0
size1 = 0
@ -59,8 +59,8 @@ age = 0
type = 4
name = "factory"
device = 0
address0 = 0xFC000
size0 = 0x4000
address0 = 0xFF000
size0 = 0x1000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0

View file

@ -8,9 +8,9 @@ type = 0
name = "FW"
device = 0
address0 = 0x3000
size0 = 0x123000
address1 = 0x126000
size1 = 0xCD000
size0 = 0x127000
address1 = 0x12A000
size1 = 0xCF000
# compressed image must set len,normal image can left it to 0
len = 0
activeindex = 0
@ -20,8 +20,8 @@ age = 0
type = 1
name = "mfg"
device = 0
address0 = 0x126000
size0 = 0xCD000
address0 = 0x12A000
size0 = 0xCF000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0
@ -31,10 +31,10 @@ age = 0
[[pt_entry]]
type = 2
name = "media"
name = "PSM"
device = 0
address0 = 0x1F3000
size0 = 0x5000
address0 = 0x1F9000
size0 = 0x2000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0
@ -44,9 +44,9 @@ age = 0
[[pt_entry]]
type = 3
name = "PSM"
name = "media"
device = 0
address0 = 0x1F8000
address0 = 0x1FB000
size0 = 0x4000
address1 = 0
size1 = 0
@ -59,8 +59,8 @@ age = 0
type = 4
name = "factory"
device = 0
address0 = 0x1FC000
size0 = 0x4000
address0 = 0x1FF000
size0 = 0x1000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0

View file

@ -8,9 +8,9 @@ type = 0
name = "FW"
device = 0
address0 = 0x3000
size0 = 0x123000
address1 = 0x126000
size1 = 0xCD000
size0 = 0x127000
address1 = 0x12A000
size1 = 0xCF000
# compressed image must set len,normal image can left it to 0
len = 0
activeindex = 1
@ -20,8 +20,8 @@ age = 0
type = 1
name = "mfg"
device = 0
address0 = 0x126000
size0 = 0xCD000
address0 = 0x12A000
size0 = 0xCF000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0
@ -31,10 +31,10 @@ age = 0
[[pt_entry]]
type = 2
name = "media"
name = "PSM"
device = 0
address0 = 0x1F3000
size0 = 0x5000
address0 = 0x1F9000
size0 = 0x2000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0
@ -44,9 +44,9 @@ age = 0
[[pt_entry]]
type = 3
name = "PSM"
name = "media"
device = 0
address0 = 0x1F8000
address0 = 0x1FB000
size0 = 0x4000
address1 = 0
size1 = 0
@ -59,8 +59,8 @@ age = 0
type = 4
name = "factory"
device = 0
address0 = 0x1FC000
size0 = 0x4000
address0 = 0x1FF000
size0 = 0x1000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0

View file

@ -8,9 +8,9 @@ type = 0
name = "FW"
device = 0
address0 = 0x3000
size0 = 0x42000
address1 = 0x45000
size1 = 0x2E000
size0 = 0x45000
address1 = 0x48000
size1 = 0x31000
# compressed image must set len,normal image can left it to 0
len = 0
activeindex = 0
@ -20,8 +20,8 @@ age = 0
type = 1
name = "mfg"
device = 0
address0 = 0x45000
size0 = 0x2E000
address0 = 0x48000
size0 = 0x31000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0
@ -31,10 +31,10 @@ age = 0
[[pt_entry]]
type = 2
name = "media"
name = "PSM"
device = 0
address0 = 0x73000
size0 = 0x5000
address0 = 0x79000
size0 = 0x2000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0
@ -44,9 +44,9 @@ age = 0
[[pt_entry]]
type = 3
name = "PSM"
name = "media"
device = 0
address0 = 0x78000
address0 = 0x7B000
size0 = 0x4000
address1 = 0
size1 = 0
@ -59,8 +59,8 @@ age = 0
type = 4
name = "factory"
device = 0
address0 = 0x7C000
size0 = 0x4000
address0 = 0x7F000
size0 = 0x1000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0

View file

@ -8,9 +8,9 @@ type = 0
name = "FW"
device = 0
address0 = 0x3000
size0 = 0x42000
address1 = 0x45000
size1 = 0x2E000
size0 = 0x45000
address1 = 0x48000
size1 = 0x31000
# compressed image must set len,normal image can left it to 0
len = 0
activeindex = 1
@ -20,8 +20,8 @@ age = 0
type = 1
name = "mfg"
device = 0
address0 = 0x45000
size0 = 0x2E000
address0 = 0x48000
size0 = 0x31000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0
@ -31,10 +31,10 @@ age = 0
[[pt_entry]]
type = 2
name = "media"
name = "PSM"
device = 0
address0 = 0x73000
size0 = 0x5000
address0 = 0x79000
size0 = 0x2000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0
@ -44,9 +44,9 @@ age = 0
[[pt_entry]]
type = 3
name = "PSM"
name = "media"
device = 0
address0 = 0x78000
address0 = 0x7B000
size0 = 0x4000
address1 = 0
size1 = 0
@ -59,8 +59,8 @@ age = 0
type = 4
name = "factory"
device = 0
address0 = 0x7C000
size0 = 0x4000
address0 = 0x7F000
size0 = 0x1000
address1 = 0
size1 = 0
# compressed image must set len,normal image can left it to 0

View file

@ -1,73 +1,73 @@
[FLASH_CFG]
exit_contread_cmd = 0xff
exit_contread_cmd_size = 3
mfg_id = 0x5e
io_mode = 4
de_burst_wrap_cmd = 0x77
de_burst_wrap_cmd_dmy_clk = 0x03
de_burst_wrap_code_mode = 2
de_burst_wrap_code = 0xF0
write_enable_cmd = 0x06
wel_reg_index = 0
wel_bit_pos = 1
wel_reg_read_len = 1
wel_reg_write_len = 2
qe_reg_index = 1
qe_bit_pos = 1
qe_reg_write_len = 1
qe_reg_read_len = 1
busy_reg_index = 0
busy_bit_pos = 0
busy_reg_read_len = 1
release_power_down = 0xab
reg_read_cmd0 = 0x05
reg_read_cmd1 = 0x35
reg_write_cmd0 = 0x01
reg_write_cmd1 = 0x31
fast_read_qio_cmd = 0xeb
fast_read_qio_dmy_clk = 2
cont_read_support = 1
cont_read_code = 0x20
burst_wrap_cmd = 0x77
burst_wrap_dmy_clk = 0x03
burst_wrap_data_mode = 2
burst_wrap_code = 0x40
chip_erase_cmd = 0xc7
sector_erase_cmd = 0x20
blk32k_erase_cmd = 0x52
blk64k_erase_cmd = 0xd8
page_prog_cmd = 0x02
qpage_prog_cmd = 0x32
qual_page_prog_addr_mode = 0
reset_en_cmd = 0x66
reset_cmd = 0x99
cont_read_exit_code = 0xff
jedecid_cmd = 0x9f
jedecid_cmd_dmy_clk = 0
qpi_jedecid_cmd = 0x9f
qpi_jedecid_dmy_clk = 0
sector_size = 4
page_size = 256
fast_read_cmd = 0x0b
fast_read_dmy_clk = 1
qpi_fast_read_cmd = 0x0b
qpi_fast_read_dmy_clk = 1
fast_read_do_cmd = 0x3b
fast_read_do_dmy_clk = 1
fast_read_dio_cmd = 0xbb
fast_read_dio_dmy_clk = 0
fast_read_qo_cmd = 0x6b
fast_read_qo_dmy_clk = 1
qpi_fast_read_qio_cmd = 0xeb
qpi_fast_read_qio_dmy_clk = 2
qpi_page_prog_cmd = 0x02
write_vreg_enable_cmd = 0x50
enter_qpi_cmd = 0x38
exit_qpi_cmd = 0xff
sector_erase_time = 300
blk32k_erase_time = 1200
blk64k_erase_time = 1200
page_prog_time = 5
chip_erase_time = 33000
power_down_delay = 8
[FLASH_CFG]
exit_contread_cmd = 0xff
exit_contread_cmd_size = 3
mfg_id = 0x5e
io_mode = 4
de_burst_wrap_cmd = 0x77
de_burst_wrap_cmd_dmy_clk = 0x03
de_burst_wrap_code_mode = 2
de_burst_wrap_code = 0xF0
write_enable_cmd = 0x06
wel_reg_index = 0
wel_bit_pos = 1
wel_reg_read_len = 1
wel_reg_write_len = 2
qe_reg_index = 1
qe_bit_pos = 1
qe_reg_write_len = 1
qe_reg_read_len = 1
busy_reg_index = 0
busy_bit_pos = 0
busy_reg_read_len = 1
release_power_down = 0xab
reg_read_cmd0 = 0x05
reg_read_cmd1 = 0x35
reg_write_cmd0 = 0x01
reg_write_cmd1 = 0x31
fast_read_qio_cmd = 0xeb
fast_read_qio_dmy_clk = 2
cont_read_support = 1
cont_read_code = 0x20
burst_wrap_cmd = 0x77
burst_wrap_dmy_clk = 0x03
burst_wrap_data_mode = 2
burst_wrap_code = 0x40
chip_erase_cmd = 0xc7
sector_erase_cmd = 0x20
blk32k_erase_cmd = 0x52
blk64k_erase_cmd = 0xd8
page_prog_cmd = 0x02
qpage_prog_cmd = 0x32
qual_page_prog_addr_mode = 0
reset_en_cmd = 0x66
reset_cmd = 0x99
cont_read_exit_code = 0xff
jedecid_cmd = 0x9f
jedecid_cmd_dmy_clk = 0
qpi_jedecid_cmd = 0x9f
qpi_jedecid_dmy_clk = 0
sector_size = 4
page_size = 256
fast_read_cmd = 0x0b
fast_read_dmy_clk = 1
qpi_fast_read_cmd = 0x0b
qpi_fast_read_dmy_clk = 1
fast_read_do_cmd = 0x3b
fast_read_do_dmy_clk = 1
fast_read_dio_cmd = 0xbb
fast_read_dio_dmy_clk = 0
fast_read_qo_cmd = 0x6b
fast_read_qo_dmy_clk = 1
qpi_fast_read_qio_cmd = 0xeb
qpi_fast_read_qio_dmy_clk = 2
qpi_page_prog_cmd = 0x02
write_vreg_enable_cmd = 0x50
enter_qpi_cmd = 0x38
exit_qpi_cmd = 0xff
sector_erase_time = 300
blk32k_erase_time = 1200
blk64k_erase_time = 1200
page_prog_time = 5
chip_erase_time = 33000
power_down_delay = 8
qe_data = 0

View file

@ -1,73 +1,73 @@
[FLASH_CFG]
exit_contread_cmd = 0xff
exit_contread_cmd_size = 3
mfg_id = 0xba
io_mode = 0x14
de_burst_wrap_cmd = 0x77
de_burst_wrap_cmd_dmy_clk = 0x03
de_burst_wrap_code_mode = 2
de_burst_wrap_code = 0xF0
write_enable_cmd = 0x06
wel_reg_index = 0
wel_bit_pos = 1
wel_reg_read_len = 1
wel_reg_write_len = 2
qe_reg_index = 1
qe_bit_pos = 1
qe_reg_write_len = 2
qe_reg_read_len = 1
busy_reg_index = 0
busy_bit_pos = 0
busy_reg_read_len = 1
release_power_down = 0xab
reg_read_cmd0 = 0x05
reg_read_cmd1 = 0x35
reg_write_cmd0 = 0x01
reg_write_cmd1 = 0x01
fast_read_qio_cmd = 0xeb
fast_read_qio_dmy_clk = 2
cont_read_support = 1
cont_read_code = 0xa0
burst_wrap_cmd = 0x77
burst_wrap_dmy_clk = 0x03
burst_wrap_data_mode = 2
burst_wrap_code = 0x40
chip_erase_cmd = 0xc7
sector_erase_cmd = 0x20
blk32k_erase_cmd = 0x52
blk64k_erase_cmd = 0xd8
page_prog_cmd = 0x02
qpage_prog_cmd = 0x32
qual_page_prog_addr_mode = 0
reset_en_cmd = 0x66
reset_cmd = 0x99
cont_read_exit_code = 0xff
jedecid_cmd = 0x9f
jedecid_cmd_dmy_clk = 0
qpi_jedecid_cmd = 0x9f
qpi_jedecid_dmy_clk = 0
sector_size = 4
page_size = 256
fast_read_cmd = 0x0b
fast_read_dmy_clk = 1
qpi_fast_read_cmd = 0x0b
qpi_fast_read_dmy_clk = 1
fast_read_do_cmd = 0x3b
fast_read_do_dmy_clk = 1
fast_read_dio_cmd = 0xbb
fast_read_dio_dmy_clk = 0
fast_read_qo_cmd = 0x6b
fast_read_qo_dmy_clk = 1
qpi_fast_read_qio_cmd = 0xeb
qpi_fast_read_qio_dmy_clk = 2
qpi_page_prog_cmd = 0x02
write_vreg_enable_cmd = 0x50
enter_qpi_cmd = 0x38
exit_qpi_cmd = 0xff
sector_erase_time = 300
blk32k_erase_time = 1200
blk64k_erase_time = 1200
page_prog_time = 5
chip_erase_time = 65535
power_down_delay = 3
[FLASH_CFG]
exit_contread_cmd = 0xff
exit_contread_cmd_size = 3
mfg_id = 0xba
io_mode = 0x14
de_burst_wrap_cmd = 0x77
de_burst_wrap_cmd_dmy_clk = 0x03
de_burst_wrap_code_mode = 2
de_burst_wrap_code = 0xF0
write_enable_cmd = 0x06
wel_reg_index = 0
wel_bit_pos = 1
wel_reg_read_len = 1
wel_reg_write_len = 2
qe_reg_index = 1
qe_bit_pos = 1
qe_reg_write_len = 2
qe_reg_read_len = 1
busy_reg_index = 0
busy_bit_pos = 0
busy_reg_read_len = 1
release_power_down = 0xab
reg_read_cmd0 = 0x05
reg_read_cmd1 = 0x35
reg_write_cmd0 = 0x01
reg_write_cmd1 = 0x01
fast_read_qio_cmd = 0xeb
fast_read_qio_dmy_clk = 2
cont_read_support = 1
cont_read_code = 0xa0
burst_wrap_cmd = 0x77
burst_wrap_dmy_clk = 0x03
burst_wrap_data_mode = 2
burst_wrap_code = 0x40
chip_erase_cmd = 0xc7
sector_erase_cmd = 0x20
blk32k_erase_cmd = 0x52
blk64k_erase_cmd = 0xd8
page_prog_cmd = 0x02
qpage_prog_cmd = 0x32
qual_page_prog_addr_mode = 0
reset_en_cmd = 0x66
reset_cmd = 0x99
cont_read_exit_code = 0xff
jedecid_cmd = 0x9f
jedecid_cmd_dmy_clk = 0
qpi_jedecid_cmd = 0x9f
qpi_jedecid_dmy_clk = 0
sector_size = 4
page_size = 256
fast_read_cmd = 0x0b
fast_read_dmy_clk = 1
qpi_fast_read_cmd = 0x0b
qpi_fast_read_dmy_clk = 1
fast_read_do_cmd = 0x3b
fast_read_do_dmy_clk = 1
fast_read_dio_cmd = 0xbb
fast_read_dio_dmy_clk = 0
fast_read_qo_cmd = 0x6b
fast_read_qo_dmy_clk = 1
qpi_fast_read_qio_cmd = 0xeb
qpi_fast_read_qio_dmy_clk = 2
qpi_page_prog_cmd = 0x02
write_vreg_enable_cmd = 0x50
enter_qpi_cmd = 0x38
exit_qpi_cmd = 0xff
sector_erase_time = 300
blk32k_erase_time = 1200
blk64k_erase_time = 1200
page_prog_time = 5
chip_erase_time = 65535
power_down_delay = 3
qe_data = 0

View file

@ -1,16 +1,16 @@
# BouffaloLab USB-JTAG/TTL adapter
adapter driver ftdi
ftdi_vid_pid 0x0403 0x6010
ftdi_channel 0
#ftdi_tdo_sample_edge falling
transport select jtag
adapter speed 4000
ftdi_layout_init 0x00f8 0x00fb
#ftdi_layout_signal nTRST -data 0x0400
#ftdi_layout_signal nSRST -ndata 0x0020
#reset_config srst_only srst_push_pull
#adapter_nsrst_delay 100
#adapter_nsrst_assert_width 100
# BouffaloLab USB-JTAG/TTL adapter
adapter driver ftdi
ftdi_vid_pid 0x0403 0x6010
ftdi_channel 0
#ftdi_tdo_sample_edge falling
transport select jtag
adapter speed 4000
ftdi_layout_init 0x00f8 0x00fb
#ftdi_layout_signal nTRST -data 0x0400
#ftdi_layout_signal nSRST -ndata 0x0020
#reset_config srst_only srst_push_pull
#adapter_nsrst_delay 100
#adapter_nsrst_assert_width 100