ESP8266 Developer Zone The Official ESP8266 Forum 2018-06-20T05:41:16+08:00 https://bbs.espressif.com:443/feed.php?f=6&t=6278 2018-06-20T05:41:16+08:00 2018-06-20T05:41:16+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6278&p=20820#p20820 <![CDATA[Custom board Cant flash]]>
Im using the Windows CE BSP for the AT91SAM9263-EK on a custom board. This board allows the NAND flash and UART2 to be used.

My question is how can I enable UART2 NAND flash is used in my OS design?

Thanks for your time.
- raygloria

Statistics: Posted by andreysnug — Wed Jun 20, 2018 5:41 am


]]>
2017-09-27T00:28:55+08:00 2017-09-27T00:28:55+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6278&p=16041#p16041 <![CDATA[Re: Custom board. Can't flash.]]> Statistics: Posted by almaz1c — Wed Sep 27, 2017 12:28 am


]]>
2017-09-19T23:53:54+08:00 2017-09-19T23:53:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6278&p=15865#p15865 <![CDATA[Re: Custom board. Can't flash.]]>
x = sampled from pins of (mtdo io0 io2)
y = sampled from pins of (sd3 sd2 sd0)

x=0 y=don't care -> remapping
x=1 y=don't care -> uart boot (note: flash burn tools use this bootmode for burning)
x=2 y=don't care -> jump boot
x=3 y=don't care -> flash boot(note: normally we use this bootmode if image stored in spi flash)
x=4-7 y!=2 -> SDIO boot modes

Hope it would be helpful.

Statistics: Posted by Guest — Tue Sep 19, 2017 11:53 pm


]]>
2017-09-19T02:55:21+08:00 2017-09-19T02:55:21+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6278&p=15842#p15842 <![CDATA[Re: Custom board. Can't flash.]]> y in "boot mode" ?
I am able to get correct x digit in (x,y)
I added capacitor to NRST pin. Replaced flash IC to new empty IC.
Now when I try flash it using UART boot mode I get following:

Code:

rst cause:1, boot mode:(1,0)

It is normal boot from UART, but

Code:

esptool.exe -p COM3 -b 115200 write_flash -ff 40m -fm qio -fs 4m 0x00000 firmware/0x00000.bin 0x10000 firmware/0x10000.bin

Shows me nothing:

Code:

Connecting...
Traceback (most recent call last):
  File "esptool.py", line 567, in <module>
  File "esptool.py", line 160, in connect
Exception: Failed to connect

C:\Espressif\examples\ESP8266\blinky\firmware>

Statistics: Posted by almaz1c — Tue Sep 19, 2017 2:55 am


]]>
2017-09-18T06:20:26+08:00 2017-09-18T06:20:26+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6278&p=15834#p15834 <![CDATA[Re: Custom board. Can't flash.]]>

Code:

ets Jan  8 2013,rst cause:2, boot mode:(1,5) and

Code:

ets Jan  8 2013,rst cause:2, boot mode:(1,4)

Statistics: Posted by almaz1c — Mon Sep 18, 2017 6:20 am


]]>
2017-09-18T05:59:31+08:00 2017-09-18T05:59:31+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6278&p=15833#p15833 <![CDATA[Re: Custom board. Can't flash.]]> Here is logs from UART during bootup:

Code:

 ets Jan  8 2013,rst cause:2, boot mode:(1,7)

What does that mean?

Statistics: Posted by almaz1c — Mon Sep 18, 2017 5:59 am


]]>
2017-09-16T18:17:02+08:00 2017-09-16T18:17:02+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6278&p=15802#p15802 <![CDATA[Re: Custom board. Can't flash.]]>
almaz1c wrote:
Hi!
I designed custom board based on ESP8266EX and W25Q32.
ESP8266EX drives by another MCU that is responsible for boot mode selection for ESP8266EX.
Hardware setup to put ESP8266EX to boot mode via UART:
VCC = 3V.
GPIO15 (MTDO) connected directly to the GND all time.

Procedure of flashing is following:
1. RESET pin to low
2. GPIO2 to high
3. GPIO0 to low
4. CH_EN to high5. RESET pin to high
That pins drives another MCU.

The problem is that I can flash only 2 of 5 boards.
I checked voltage levels on all pins using oscilloscope and they all in expected state
excluding GPIO0 which is oscillating continously.

What can be an issue of that?
Does oscillating means that ESP8266EX IC is alive?
Does it can help to flash W25Q32 flash memory IC directly using FlashCAT SPI programmer?



Hi,

it seems that your bootup sequence for burning is OK. But experiences tell us that the GPOIO had better be kept stable low during burning even though that it is theoratically to be low only neccessary upon reset exit and don't care after reset, since the on-chip bootup code might need time to sample the pin so that to enter boot-from-uart mode for burning. Meanwhile, the nRESET might goes high unexpected if the GPIO0 is not stable. I suggest you ties the GPIO0 to GND always and then have a try.

Secondly, if you can, you may please also try to slow down the uart speed when you burn.

Meanwhile, we have one-press burning tools for ESP8266 modules which is very helpful for batch burning. With the burning tool, you only have to have one press on the button of the software to start the burning, and then the burning process will be completed automatically with the help of UART flow control. If you feel interested, you may please get more about it at http://www.ebay.com/itm/282286419729. It is ready with pin connectors for ESP-01, ESP-12 etc. If your module does not have a matched connector here, you may please using 5 flying wires connecting to a connector which is matched with the connector on your module.

Hope it would be helpful.

Yiming

Statistics: Posted by Guest — Sat Sep 16, 2017 6:17 pm


]]>
2017-09-08T13:31:57+08:00 2017-09-08T13:31:57+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6278&p=15630#p15630 <![CDATA[Re: Custom board. Can't flash.]]> Also, I cannot help without taking a look at the boot log.
When you put ESP into programming mode, it will output something on UART at 74880 bauds. I will need to see that to help.

Statistics: Posted by Guest — Fri Sep 08, 2017 1:31 pm


]]>
2017-09-07T14:55:06+08:00 2017-09-07T14:55:06+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6278&p=15600#p15600 <![CDATA[Custom board. Can't flash.]]> I designed custom board based on ESP8266EX and W25Q32.
ESP8266EX drives by another MCU that is responsible for boot mode selection for ESP8266EX.
Hardware setup to put ESP8266EX to boot mode via UART:
VCC = 3V.
GPIO15 (MTDO) connected directly to the GND all time.

Procedure of flashing is following:
1. RESET pin to low
2. GPIO2 to high
3. GPIO0 to low
4. CH_EN to high5. RESET pin to high
That pins drives another MCU.

The problem is that I can flash only 2 of 5 boards.
I checked voltage levels on all pins using oscilloscope and they all in expected state
excluding GPIO0 which is oscillating continously.

What can be an issue of that?
Does oscillating means that ESP8266EX IC is alive?
Does it can help to flash W25Q32 flash memory IC directly using FlashCAT SPI programmer?

Statistics: Posted by almaz1c — Thu Sep 07, 2017 2:55 pm


]]>