Flash Download Tool

costaud
Posts: 138
Joined: Fri Oct 24, 2014 7:40 pm

Flash Download Tool

Postby costaud » Fri May 08, 2015 8:49 pm

Download ESP8266 Getting Started Guide EN
下载 ESP8266 Getting Started Guide 中文版

UPDATE on 2016.11.14
Download the latest Flash Download Tool.

UPDATE on 150916:
1.fix the bug that tool does not show the MAC correctly for 48bit version of EFUSE.
2.update MAC reading functions

FLASH_DOWNLOAD_TOOLS_v2.4_150924.rar
(5.44 MiB) Downloaded 154812 times


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

=================================================
UPDATE on 150916:
FLASH_DOWNLOAD_TOOLS_v2.3
FLASH_DOWNLOAD_TOOLS_v2.3_150916.rar
(5.65 MiB) Downloaded 35505 times


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".



=====================================
Tool name:Flash download tool
Vsersion:v1.2:

Fix some hints&tips
FLASH_DOWNLOAD_TOOLS_v1.2_150512.rar
(5.45 MiB) Downloaded 30988 times


=====================================
Vsersion:v1.1:
Support new flash size.

DO NOT SUPPORT : 7:4MB-C2(2048KB+2048KB)

FLASH_DOWNLOAD_TOOLS_v1.1_150511.rar
(5.43 MiB) Downloaded 3898 times


===============================================
Version: v1.0
Function:
1. Download firmware to flash chip of esp8266 module.
2. Read chip MAC
3. Read SPI Flash INFO
4. Load,Configure and generate init_data.bin(tx power,crystal freq, tout pin function...)
FLASH_DOWNLOAD_TOOLS_v1.0_150508.rar
(5.7 MiB) Downloaded 5352 times

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)

Other info about download tool:
viewtopic.php?f=7&t=25
FLASH_DOWNLOAD_TOOLS_v2.3_150916.rar
(5.65 MiB) Downloaded 35505 times

Who is online

Users browsing this forum: No registered users and 0 guests