You can chat about native SDK questions and issues here.

User avatar
By espako
#78154 Hi folks,

I'm using an ESP-12F with 4MB Flash.
However I compile my application, 'spi_size_map'
always returns 4.
The created firmware looks okay, fourth byte is
'60'.

hd /tmp/firmware/upgrade/user1.4096.new.6.bin|more
00000000 ea 04 02 60 04 00 10 40 00 00 00 00 60 3f 08 00 |...`...@....`?..|

I flashed the 'firmware' with the following call
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_freq 40m \
--flash_mode dio --flash_size 32m \
0x1000 /tmp/firmware/upgrade/user1.4096.new.6.bin

The application runs without a problem.

Here is the output form the appliction:

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 2592, room 16
tail 0
chksum 0xf3
load 0x3ffe8000, len 764, room 8
tail 4
chksum 0x92
load 0x3ffe82fc, len 676, room 4
tail 0
chksum 0x22
csum 0x22

2nd boot version : 1.7(5d6f877)
SPI Speed : 40MHz
SPI Mode : DIO
SPI Flash Size & Map: 32Mbit(512KB+512KB)
jump to run user1 @ 1000
SDK version: 2.0.0(e271380)
spi_size_map = 4
system_upgrade_userbin_check returns '0'
data : 0x3ffe8000 ~ 0x3ffe8968, len: 2408
rodata: 0x3ffe8970 ~ 0x3ffe97dc, len: 3692
bss : 0x3ffe97e0 ~ 0x3fff0740, len: 28512
heap : 0x3fff0740 ~ 0x40000000, len: 63680

Any idea?