diff --git a/tools/bflb_flash_tool/bflb_iot_tool b/tools/bflb_flash_tool/bflb_iot_tool index 267e0acd..9cfeb780 100644 Binary files a/tools/bflb_flash_tool/bflb_iot_tool and b/tools/bflb_flash_tool/bflb_iot_tool differ diff --git a/tools/bflb_flash_tool/bflb_iot_tool.exe b/tools/bflb_flash_tool/bflb_iot_tool.exe index ad0f90ae..ede15284 100644 Binary files a/tools/bflb_flash_tool/bflb_iot_tool.exe and b/tools/bflb_flash_tool/bflb_iot_tool.exe differ diff --git a/tools/bflb_flash_tool/bflb_iot_tool命令行工具说明.txt b/tools/bflb_flash_tool/bflb_iot_tool命令行工具说明.txt index b327341e..9b622d5c 100644 --- a/tools/bflb_flash_tool/bflb_iot_tool命令行工具说明.txt +++ b/tools/bflb_flash_tool/bflb_iot_tool命令行工具说明.txt @@ -17,5 +17,5 @@ bflb_iot_tool.exe --chipname=bl602 --port=COM9 --xtal=40M --firmware="D:\\bouffa --single:单文件烧写 --addr:烧写地址默认0 --config:eflash_loader_cfg.ini - +--ota:Haier ota文件输出路径 diff --git a/tools/bflb_flash_tool/bflb_mcu_tool b/tools/bflb_flash_tool/bflb_mcu_tool index b55af60d..41c69413 100644 Binary files a/tools/bflb_flash_tool/bflb_mcu_tool and b/tools/bflb_flash_tool/bflb_mcu_tool differ diff --git a/tools/bflb_flash_tool/bflb_mcu_tool.exe b/tools/bflb_flash_tool/bflb_mcu_tool.exe index 0acf663a..12c32ec7 100644 Binary files a/tools/bflb_flash_tool/bflb_mcu_tool.exe and b/tools/bflb_flash_tool/bflb_mcu_tool.exe differ diff --git a/tools/bflb_flash_tool/chips/bl702/eflash_loader/eflash_loader_cfg.conf b/tools/bflb_flash_tool/chips/bl702/eflash_loader/eflash_loader_cfg.conf index 9453d49e..4cdb0204 100644 --- a/tools/bflb_flash_tool/chips/bl702/eflash_loader/eflash_loader_cfg.conf +++ b/tools/bflb_flash_tool/chips/bl702/eflash_loader/eflash_loader_cfg.conf @@ -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 diff --git a/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_1M.toml b/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_1M.toml index d0f334bd..56dbbee8 100644 --- a/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_1M.toml +++ b/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_1M.toml @@ -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 diff --git a/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_1M_FW1.toml b/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_1M_FW1.toml index 8a81e904..aad96e0a 100644 --- a/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_1M_FW1.toml +++ b/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_1M_FW1.toml @@ -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 diff --git a/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_2M.toml b/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_2M.toml index fe211b60..aca38dcd 100644 --- a/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_2M.toml +++ b/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_2M.toml @@ -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 diff --git a/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_2M_FW1.toml b/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_2M_FW1.toml index e8a3ab5e..be35c6fa 100644 --- a/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_2M_FW1.toml +++ b/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_2M_FW1.toml @@ -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 diff --git a/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_512K.toml b/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_512K.toml index c5da66f6..5f781bee 100644 --- a/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_512K.toml +++ b/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_512K.toml @@ -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 diff --git a/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_512K_FW1.toml b/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_512K_FW1.toml index bb09fbb6..4789a45a 100644 --- a/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_512K_FW1.toml +++ b/tools/bflb_flash_tool/chips/bl702/partition/partition_cfg_512K_FW1.toml @@ -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 diff --git a/tools/bflb_flash_tool/utils/flash-conf/bl602/ZB25Q32B_5e4016.conf b/tools/bflb_flash_tool/utils/flash-conf/bl602/ZB25Q32B_5e4016.conf index 8f3e289a..90756fed 100644 --- a/tools/bflb_flash_tool/utils/flash-conf/bl602/ZB25Q32B_5e4016.conf +++ b/tools/bflb_flash_tool/utils/flash-conf/bl602/ZB25Q32B_5e4016.conf @@ -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 \ No newline at end of file diff --git a/tools/bflb_flash_tool/utils/flash-conf/bl602/ZD25Q16B_ba6015.conf b/tools/bflb_flash_tool/utils/flash-conf/bl602/ZD25Q16B_ba6015.conf index b561cfe0..2a434aef 100644 --- a/tools/bflb_flash_tool/utils/flash-conf/bl602/ZD25Q16B_ba6015.conf +++ b/tools/bflb_flash_tool/utils/flash-conf/bl602/ZD25Q16B_ba6015.conf @@ -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 \ No newline at end of file diff --git a/tools/bflb_flash_tool/utils/openocd/if_rv_dbg_plus.cfg b/tools/bflb_flash_tool/utils/openocd/if_rv_dbg_plus.cfg index aa60aa84..7f37b2ed 100644 --- a/tools/bflb_flash_tool/utils/openocd/if_rv_dbg_plus.cfg +++ b/tools/bflb_flash_tool/utils/openocd/if_rv_dbg_plus.cfg @@ -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