FLASH_DOWNLOAD_TOOLS_v2.4_150924
1.fix the bug that tool does not show the MAC correctly for 48bit version of EFUSE.
2.update MAC reading functions
Note:
Default MAC addresses our latest chips begins with "5CCF7F",
Please do not hard-code it with "18FE34" in your code.
AP : 5E-CF-7F-xx-xx-xx
STA: 5C-CF-7F-xx-xx-xx
FLASH_DOWNLOAD_TOOLS_v2.3_150916
add efuse check function.
add an option that tool just download the original binaries without changing anything.
add RFInit mode option:(byte[114] of init_data.bin)
0: RF init no RF CAL, using all RF CAL data in flash, it takes about 2ms for RF init
1: RF init only do TX power control CAL, others using RF CAL data in flash , it takes about 20ms for RF init
3: RF init do all RF CAL, it takes about 200ms for RF init """)
#==============================================================
UPDATE: SOURCE CODE of flash_download_tool
Functionally same as FLASH_DOWNLOAD_TOOLS_v1.2_150512.
To make it runnable, you need these python modules:
1. python2.6 /python 2.7
2. wxpython3.0 or above
3. pyserial
4. xlrd
For linux, you need to replace "COM1" with "/dev/ttyS0".
FLASH_DOWNLOAD_TOOLS_v1.2_150512
Fix some hints&tips
FLASH_DOWNLOAD_TOOLS_v1.1_150511
Support new flash size.
DO NOT SUPPORT : 7:4MB-C2(2048KB+2048KB)
FLASH_DOWNLOAD_TOOLS_v1.0_150508
Pay attention to the tips and hints in this tool.
NOTE:(IMPORTANT!)
The spi settings in the flash download tool will overwrite the setting during the compile procedure(at first serveral bytes from 0x0).
Make sure the settings are accord with the compile procedure.
The original binary will not be changed.
You can find the configured binaries in FLASH_DOWNLOAD_TOOLS/bin_tmp after the download is finished.
Especially for bootvxx.bin, it will not change and keep default settings for spi mode.
Also , you can press "CombineBin" button to get a combined binary which is already set to the mode you choose.
The flash mode are defined in the 2nd and 3rd( count from 0) byte at flash address 0x0.
Bootloader will read this bytes out and changed spi mode and size mode immediately. So this is very important for your production.
Definition:
# write flash bin header
#============================
# SPI FLASH PARAMS
#-------------------
#flash_mode=
# 0: QIO
# 1: QOUT
# 2: DIO
# 3: DOUT
#-------------------
#flash_clk_div=
# 0 : 80m / 2
# 1 : 80m / 3
# 2 : 80m / 4
# 0xf: 80m / 1
#-------------------
#flash_size=
# 0 : 512 KB (256 KB + 256 KB)
# 1 : 256 KB
# 2 : 1024 KB (512 KB + 512 KB)
# 3 : 2048 KB (512 KB + 512 KB)
# 4 : 4096 KB (512 KB + 512 KB)
# 5:2048 KB (1024 KB + 1024 KB)#support in sdk 1.0.2
# 6:4096 KB (1024 KB + 1024 KB)#support in sdk 1.0.2
# 7:4096 KB (2048 KB + 2048 KB)#support in sdk 1.0.2
#-------------------
# END OF SPI FLASH PARAMS
#============================
byte2=int(flash_mode)&0xff
byte3=(((int(flash_size)<<4)| int(flash_clk_div))&0xff)
FLASH_DOWNLOAD_TOOLS_v0.9.6_150419
fix bug: Some types of flash require longer erase time, cause a erase time out in this tool.
FLASH_DOWNLOAD_TOOLS_v0.9.5_150414
1.fix error when downloading a binary that is not aligned.
2.fix error when loading default settings
NOTE:(IMPORTANT!)
The spi settings in the flash download tool will overwrite the setting during the compile procedure(at first serveral bytes from 0x0).
Make sure the settings are accord with the compile procedure.
The original binary will not be changed.
You can find the configured binaries in FLASH_DOWNLOAD_TOOLS/bin_tmp after the download is finished.
Especially for bootvxx.bin, it will not change and keep default settings for spi mode.
Also , you can press "CombineBin" button to get a combined binary which is already set to the mode you choose.
The flash mode are defined in the 2nd and 3rd( count from 0) byte at flash address 0x0.
Bootloader will read this bytes out and changed spi mode and size mode immediately. So this is very important for your production.
Definition:
# write flash bin header
#============================
# SPI FLASH PARAMS
#-------------------
#flash_mode=
# 0: QIO
# 1: QOUT
# 2: DIO
# 3: DOUT
#-------------------
#flash_clk_div=
# 0 : 80m / 2
# 1 : 80m / 3
# 2 : 80m / 4
# 0xf: 80m / 1
#-------------------
#flash_size=
# 0 : 512 KB
# 1 : 256 KB
# 2 : 1024 KB
# 3 : 2048 KB
# 4 : 4096 KB
#-------------------
# END OF SPI FLASH PARAMS
#============================
byte2=int(flash_mode)&0xff
byte3=(((int(flash_size)<<4)| int(flash_clk_div))&0xff)
FLASH_DOWNLOAD_TOOLS_v0.9.3.1_141118
release note:
1.fix the flash erase bug
2.fix the exception for w25x series flash,when using boot loader.
3.change the the download order, from low addr offset to high.
settings :
1.crystal: support 3 freq. 26m 40m 24m,choose the one you use.
2.spi speed:
spi flash read/write clk frequency.
3.spi mode :
1)QIO ,for flash that support quad r/w operation(e.g. W25Q)
2)QOUT,for flash that support quad read operation(e.g. W25Q)
3)DIO,for flash that support dual r/w operation(e.g. W25Q &W25X)
4)DOUT, for flash that support dual read operation(e.g. W25Q &W25X)
4.Flash size: effect the flash operation APIs and bootloader address.
5.combine bine button: generate the bin file of the whole size.
6.ID BIND:just provide a way that write chip id in the flash addr.Need at least 2 sector(2*4096Bytes)
==============================================================
esp_init_data_default.bin-->0x7c000
blank.bin ==> 0x7e000
devkey --> 0x3e000
eagle.app.v6.irom0text.bin-->0x40000
eagle.app.v6.flash.bin --> 0x0