Falling back to built-in command interpreter ??

jumjum123
Posts: 199
Joined: Mon Oct 17, 2016 3:11 pm

Falling back to built-in command interpreter ??

Postby jumjum123 » Thu Feb 16, 2017 3:46 pm

If i have a resistor (tested with 1k and 10k) between GPIO12 and VCC and click EN button, I get this:

>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.
OK

Before click EN button, GPIO12 was defined as SCLK for SPI1

What is this built-in command interpreter, and any idea what happens ?

Update, just found, its a very Basic Rom Console (?)

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Falling back to built-in command interpreter ??

Postby WiFive » Thu Feb 16, 2017 4:00 pm

Gpio12 is a strapping pin to set flash voltage. When pulled high voltage is 1.8 which your flash chip doesnt work. You can force setting in efuse.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: Falling back to built-in command interpreter ??

Postby kolban » Thu Feb 16, 2017 4:03 pm

If we look at the ESP32 data sheet, we find that a set of pins are defined as strapping pins. What this means is that the signals present on these pins at boot time affects the operation of the device. Think of these as operational flags that are read only at boot time. The pins are:

GPIO0
GPIO2
GPIO05
GPIO12 - MTDI
GPIO15 - MTDO

GPIO12 (MTDI) - seems to control the voltage used for SDIO. The default is low.

What this means is that if GPIO12 is high at boot time, you will be affecting the operation of the device. From your description, that seems to prevent the ability to access the module flash memory. Since the ESP32 then can't reach flash memory, what is it to do? The answer is that it runs a basic interpreter that is built into ROM that, I'm guessing, will be of little value to you. I suspect the command interpreter might give you "enough" function to do some very basic debugging.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

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

Re: Falling back to built-in command interpreter ??

Postby ESP_Sprite » Tue Feb 21, 2017 11:48 am

Also, in case this is an issue in production, it's actually possible to program an efuse to force the ESP32 to use a certain flash voltage and ignore GPIO12.

BuddyCasino
Posts: 263
Joined: Sun Jun 19, 2016 12:00 am

Re: Falling back to built-in command interpreter ??

Postby BuddyCasino » Sat Feb 25, 2017 12:38 pm

Behold the BASIC interpreter: http://hackaday.com/2016/10/27/basic-in ... 2-silicon/
Someone needs to get GORILLA.BAS running on this.

Who is online

Users browsing this forum: No registered users and 26 guests