[SOLVED]Flashing chip in 32MBit(1024K+1024K) mode

pieceofsummer
Posts: 3
Joined: Fri Dec 04, 2015 9:47 pm

[SOLVED]Flashing chip in 32MBit(1024K+1024K) mode

Postby pieceofsummer » Fri Dec 04, 2015 10:03 pm

Hello.

I've compiled a firmware with SPI_MODE_MAP=6, and it works fine after flashing it at 0x01000 address in 32Mbit flashing mode, but loader (1.4b1) shows it is 32Mbit(512K+512K) mode (I've also tried 16Mbit(1024K+1024K), and the firmware works fine as well).

Now I'm trying to flash it in 32Mbit-C1 mode, and after flashing loader shows it correctly as 32Mbit(1024K+1024K), but it never gets to user code. It prints:

Code: Select all

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

load 0x40100000, len 1396, room 16
tail 4
chksum 0x89
load 0x3ffe8000, len 776, room 4
tail 4
chksum 0xe8
load 0x3ffe8308, len 540, room 4
tail 8
chksum 0xc0
csum 0xc0

2nd boot version : 1.4(b1)
  SPI Speed      : 80MHz
  SPI Mode       : QIO
  SPI Flash Size & Map: 32Mbit(1024KB+1024KB)
jump to run user1 @ 1000


and never gets any further.
I've tried to download firmware both with Firmware Download Tools on Windows and esptool on Linux, and outcome is the same, so I believe it must be some bootloader issue.
Or am I doing something wrong specific to this mode?

Thanks,
Alex.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Flashing chip in 32MBit(1024K+1024K) mode

Postby ESP_Faye » Sat Dec 05, 2015 3:23 pm

Hi,

Have you downloaded blank.bin to 0xFE000 and 0x3FE000 for initialization ?

pieceofsummer
Posts: 3
Joined: Fri Dec 04, 2015 9:47 pm

Re: Flashing chip in 32MBit(1024K+1024K) mode

Postby pieceofsummer » Sat Dec 05, 2015 6:40 pm

Oh, I've flashed it only to 0xFE000. After flashing it to 0x3FE000 as well it started working, thanks!

I wonder, how it worked fine before in 16M(1024+1024) and 32M(512+512) modes without flashing blank.bin?

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Flashing chip in 32MBit(1024K+1024K) mode

Postby ESP_Faye » Mon Dec 07, 2015 2:25 pm

Hi,

If you did not initialize (burn blank.bin), it will be random value. So it maybe can work,maybe not. It is not safe.

So please always download blank.bin for initialization.

SpenZerX
Posts: 41
Joined: Thu Apr 16, 2015 9:30 pm
Location: Germany
Contact:

Re: [SOLVED]Flashing chip in 32MBit(1024K+1024K) mode

Postby SpenZerX » Sun Jan 24, 2016 8:31 pm

Strange,

my SDK has no 1024+1024 mode!

or we are talking about 512+512?
eagle.app.v6.new.1024.app1+2.ld ?

Who is online

Users browsing this forum: No registered users and 4 guests