Error running ver 1.15 on ESP32-S2

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
jimwims
Posts: 7
Joined: Wed Nov 01, 2017 1:28 pm

Error running ver 1.15 on ESP32-S2

Post by jimwims » Sat Apr 24, 2021 3:38 pm

I am trying to run ver 1.15 on my Espressif ESP32-S2-Saola dev board. I am able to load esp32spiram-20210418-v1.15.bin onto the board, but the output from serial monitor is a continuing repetition of:

ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x10 (RTCWDT_RTC_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Invalid chip id. Expected 2 read 0. Bootloader for wrong chip?
ets_main.c 386

I have also tried esp32-20210418-v1.15.bin and esp32spiram-20210424-unstable-v1.15-13-g530c76f6c.bin. Same result for both.

Can anyone tell me where I have gone wrong?

Jim

rpr
Posts: 99
Joined: Sat Oct 27, 2018 5:17 pm

Re: Error running ver 1.15 on ESP32-S2

Post by rpr » Sat Apr 24, 2021 4:58 pm

I don't think micropython has been ported yet to the ESP32-S2.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Error running ver 1.15 on ESP32-S2

Post by Roberthh » Sat Apr 24, 2021 5:10 pm

There is a GENERIC-S2 board definition. So you can build a version. Besides that you can try circuitpython, eve if I do not favour it.

rpr
Posts: 99
Joined: Sat Oct 27, 2018 5:17 pm

Re: Error running ver 1.15 on ESP32-S2

Post by rpr » Sat Apr 24, 2021 5:21 pm

I don't have any of the ESP32-S2 boards but does micropython work if you build it with the generic board def.

ETA: Looks like support was added 10 days ago. I will order one of these boards to play around.

jimwims
Posts: 7
Joined: Wed Nov 01, 2017 1:28 pm

Re: Error running ver 1.15 on ESP32-S2

Post by jimwims » Sat Apr 24, 2021 6:53 pm

Thank you for your responses.

I'm not sure I understand them. Each of the three files I mentioned were for the generic ESP32 module.

Jim

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Error running ver 1.15 on ESP32-S2

Post by Roberthh » Sat Apr 24, 2021 7:23 pm

The GENERIC module is different from the GENERIC_S2 module. There are no pre-built images for the S2 yet, and the support is pretty basic, as far as I understand. I was able to build that firmware, but I have no board yet to test it. It's in the mail (or to be precise: at the customs office of Liege airport, where it will stick for another two weeks).
The built firmware is at https://github.com/robert-hh/Shared-Stu ... RIC_S2.bin.
You may try it.

jimwims
Posts: 7
Joined: Wed Nov 01, 2017 1:28 pm

Re: Error running ver 1.15 on ESP32-S2

Post by jimwims » Sun Apr 25, 2021 6:13 pm

Roberthh--

Thank you very much for your response and the firmware build. And, best of all, the build works! I did have one stumble before I got to a serial REPL prompt. My board has two UARTs. One is accessed through the USB connector and the other through pins D19 and D20. I flashed your build through the USB port with no problems. When I tried to get a REPL prompt through the USB port, no joy. When I switched to the D19/D20 port, I got the prompt was once agin reminded that 2+2 = 4.

For the benefit of anyone else reading this, I accessed the D19/D20 port using an Adafruit USB breakout cable https://www.adafruit.com/product/4448. Green connects to D+ data positive, pin D20. White connects to D- data negative, pin D19.

Thanks again.

Jim

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Error running ver 1.15 on ESP32-S2

Post by Roberthh » Sun Apr 25, 2021 6:19 pm

I do not have a S2 device yet, but the port is told to have REPL through UART. I'll check when I have a S2 board.

jimwims
Posts: 7
Joined: Wed Nov 01, 2017 1:28 pm

Re: Error running ver 1.15 on ESP32-S2

Post by jimwims » Mon Apr 26, 2021 4:17 pm

Roberthh -- Did you use the ESP-IDF to build your firmware?

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Error running ver 1.15 on ESP32-S2

Post by Roberthh » Mon Apr 26, 2021 4:30 pm

Sure, what else. Branch ESP-IDF release/v4.3

Post Reply