Can't start REPL after success flash

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
lyell06
Posts: 1
Joined: Fri Jan 18, 2019 8:41 am

Can't start REPL after success flash

Post by lyell06 » Sat Jan 19, 2019 2:45 am

Hi
After flash my board with the latest firmware, I can't connect to the board with putty.
but when I try to connect the board with Arduino uart monitor, it show below message after power on:
------------------------------------------------------------

rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
ets Jun 8 2016 00:22:57
----------------------------------------------------------
then , if I press the reset button, it can start REPL as below:

-----------------------------------------------------------

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:4732
load:0x40078000,len:7496
load:0x40080400,len:5512
entry 0x4008114c
[0;32mI (399) cpu_start: Pro cpu up.[0m
[0;32mI (399) cpu_start: Single core mode[0m
[0;32mI (400) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (403) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM[0m
[0;32mI (409) heap_init: At 3FFC0E00 len 0001F200 (124 KiB): DRAM[0m
[0;32mI (416) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM[0m
[0;32mI (422) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM[0m
[0;32mI (428) heap_init: At 400915E0 len 0000EA20 (58 KiB): IRAM[0m
[0;32mI (435) cpu_start: Pro cpu start user code[0m
[0;32mI (5) cpu_start: Starting scheduler on PRO CPU.[0m
OSError: [Errno 2] ENOENT
MicroPython v1.9.4-779-g5064df207 on 2019-01-13; ESP32 module with ESP32
Type "help()" for more information.
>>>
-------------------------------------------------------------------------------------

is there any reason cause the board enter to boot 0x3 instead of 0x13?
by the way, the board works well with arduino IDE.

thanks

fdufnews
Posts: 76
Joined: Mon Jul 25, 2016 11:31 am

Re: Can't start REPL after success flash

Post by fdufnews » Sat Jan 19, 2019 1:12 pm

Obviously, the Arduino UART monitor puts the handshake lines in a state that makes the ESP32 boot in download mode.
Arduino UART monitor is not REPL friendly. Arduino UART monitor works in line mode. REPL expects a terminal working in character mode. You'd better use a terminal software like putty or realterm.

Post Reply