Statistics: Posted by ESP_Faye — Mon May 09, 2016 9:46 am
Code:
esptool.py --port /dev/ttyUSB0 write_flash 0x00000 ESP8266_RTOS_SDK-master/bin/boot_v1.5.bin 0x3FC000 ESP8266_RTOS_SDK-master/bin/esp_init_data_default.bin 0x3FE000 ESP8266_RTOS_SDK-master/bin/blank.bin 0x01000 ESP8266_RTOS_SDK-master/bin/upgrade/user1.4096.new.4.bin
Code:
void ICACHE_FLASH_ATTR
user_init(void)
{
printf("In blinkenTask ...\n");
printf("Flash map value : %d\n",system_get_flash_size_map());
enum flash_size_map
{
FLASH_SIZE_4M_MAP_256_256 Flash size : 4Mbits. Map : 256KBytes + 256KBytes -- 0
FLASH_SIZE_2M Flash size : 2Mbits. Map : 256KBytes
FLASH_SIZE_8M_MAP_512_512 Flash size : 8Mbits. Map : 512KBytes + 512KBytes
FLASH_SIZE_16M_MAP_512_512 Flash size : 16Mbits. Map : 512KBytes + 512KBytes
FLASH_SIZE_32M_MAP_512_512 Flash size : 32Mbits. Map : 512KBytes + 512KBytes
FLASH_SIZE_16M_MAP_1024_1024 Flash size : 16Mbits. Map : 1024KBytes + 1024KBytes
FLASH_SIZE_32M_MAP_1024_1024 Flash size : 32Mbits. Map : 1024KBytes + 1024KBytes
}
bin crc: 767d457e
Support boot_v1.2 and +
Generate user1.4096.new.4.bin successully in BIN_PATH
boot.bin------------>0x00000
user1.4096.new.4.bin--->0x01000
!!!
Statistics: Posted by Rutharesh — Fri May 06, 2016 10:13 pm