ESP32 boot from SPI flash error, and Console input funcion

wziy520
Posts: 42
Joined: Thu Nov 10, 2016 7:58 am

ESP32 boot from SPI flash error, and Console input funcion

Postby wziy520 » Tue Dec 20, 2016 6:12 am

rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
Falling back to built-in command interpreter.
OK
>ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
Falling back to built-in command interpreter.


Q1:my ESP32 module boot from ESP32 error?, how to fixed it?
ino@ino-VB:~/esp/esp32/esp-idf/examples/01_hello_world$ make flash
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000)...
esptool.py v2.0-dev
Connecting...
Uploading stub...
Running stub...
Stub running...
Attaching SPI flash...
Configuring flash size...
Compressed 5616 bytes to 3329...

A fatal error occurred: Timed out waiting for packet content
make: *** [flash] Error 2


and Bootloader have a console read input function, Why this function not open to esp_idf SDK?

Q2:
help
A very Basic ROM console. Available commands/functions:
LIST
NEW
RUN
NEXT
LET
IF
GOTO
GOSUB
RETURN
REM
FOR
INPUT
PRINT
PHEX
POKE
STOP
BYE
MEM
?
'
DELAY
END
RSEED
HELP
ABOUT
IOSET
IODIR
PEEK
ABS
RND
IOGET
USR


>aBOUT
ESP32 ROM Basic (c) 2016 Espressif Shanghai
Derived from TinyBasic Plus by Mike Field and Scott Lawrence
>

wziy520
Posts: 42
Joined: Thu Nov 10, 2016 7:58 am

Re: ESP32 boot from SPI flash error, and Console input funcion

Postby wziy520 » Tue Dec 20, 2016 9:24 am

module auto recovered after a power cycle , I have no idea why it happen!

ESP_Sprite
Posts: 9833
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 boot from SPI flash error, and Console input funcion

Postby ESP_Sprite » Tue Dec 20, 2016 9:28 am

Q1: No idea. You don't really give us much to go on.
Q2: Because the console method is pretty specific to the Basic-interpreter; it also does some more things than just check the console. Also, the Basic-interpreter is unpacked to RAM before use; you can't just call its routines from ROM.

wziy520
Posts: 42
Joined: Thu Nov 10, 2016 7:58 am

Re: ESP32 boot from SPI flash error, and Console input funcion

Postby wziy520 » Mon Dec 26, 2016 6:28 am

@ESP_Sprite,

I got Q1 issue again,
when attached JTAG & UART both, UART log work abnormal.

ESP_Sprite
Posts: 9833
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 boot from SPI flash error, and Console input funcion

Postby ESP_Sprite » Mon Dec 26, 2016 6:52 am

Check your esp32.cfg; you should configure the right flash voltage there. Also please keep OpenOCD running while JTAG is connected. The problem you may be running into is that GPIO12, which is also TDI, on bootup sets the flash voltage. OpenOCD should normally take care of setting that toi the right voltage level, if so configured, but it can only do that while it's running.

Who is online

Users browsing this forum: No registered users and 93 guests