Notice of upcoming change: ESP-IDF will disable ROM BASIC console

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Notice of upcoming change: ESP-IDF will disable ROM BASIC console

Postby ESP_igrr » Thu Aug 24, 2017 3:34 am

We are planning to roll out a change which automatically disables ROM BASIC console by burning respective Efuse, when the application starts up. Newly produced ESP32 chips will also come with ROM BASIC console disabled.

If you wish to preserve this function for your chips/modules, please use `espefuse.py` tool to write-protect respective Efuse.

cmorgan
Posts: 89
Joined: Thu Aug 24, 2017 12:52 am

Re: Notice of upcoming change: ESP-IDF will disable ROM BASIC console

Postby cmorgan » Thu Aug 24, 2017 11:19 pm

Could you share why this ROM BASIC console is being disabled?

Chris

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: Notice of upcoming change: ESP-IDF will disable ROM BASIC console

Postby ESP_igrr » Fri Aug 25, 2017 12:55 am

This is related to the issue that upon exit from deep sleep, ESP32 may try to read code from flash before flash has powered on. When this happens, it will consider going into built-in BASIC console. If nothing is received from UART before watchdog timer expires, the chip is reset by the watchdog, and boot process is restarted. If any character is received from UART, ROM code disables the watchdog and enters the console.

The issue which some of our customers have encountered is that there is a chance that UART may receive stray characters when there is another MCU connected to the UART. Once ESP32 enters ROM console, it can no longer be restarted by the watchdog, and requires an external reset to be applied.

Given that ROM console is very rarely used, we decided that it is safer to disable ROM console.

User avatar
rudi ;-)
Posts: 1729
Joined: Fri Nov 13, 2015 3:25 pm

Re: Notice of upcoming change: ESP-IDF will disable ROM BASIC console

Postby rudi ;-) » Fri Aug 25, 2017 8:09 am

ESP_igrr wrote:
Given that ROM console is very rarely used, we decided that it is safer to disable ROM console.

Can we enable it again?
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: Notice of upcoming change: ESP-IDF will disable ROM BASIC console

Postby ESP_igrr » Fri Aug 25, 2017 10:34 am

Efuses are single use, so once they are burned, they can not be reversed. If you want to keep ROM console working, use espefuse.py tool to write-protect the efuse.

User avatar
rudi ;-)
Posts: 1729
Joined: Fri Nov 13, 2015 3:25 pm

Re: Notice of upcoming change: ESP-IDF will disable ROM BASIC console

Postby rudi ;-) » Fri Aug 25, 2017 10:49 am

ESP_igrr wrote:Efuses are single use, so once they are burned, they can not be reversed. If you want to keep ROM console working, use espefuse.py tool to write-protect the efuse.
ah - perhabs i missunderstood your first post,
the SoC itself ( on sales ) is not burn efuse to disable the ROM console by manufacturer right?
only the next ESP-IDF then the first "flash" will disable this by efuse?

and if i want not this - i must write-protect before the first flash the efuse.

can you point perhabs please to this step ivan, i think there are more people not informed about the steps to do this,
perhabs a note in the datasheet? esp32 technical docu?

thank you!
best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Who is online

Users browsing this forum: No registered users and 120 guests