Arduino ide - which board for DFROBOT ESP32-S2-DevKitM-1

I just purchased a DFROBOT ESP32-S2-DevKitM-1 Development board. I setup as per Arduino IDE Setup | Adafruit Metro ESP32-S2 | Adafruit Learning System.
I am using the arduino ide version 2.0.0 rc8 and selected Adafruit Metro ESP32-S2 as the board.

I can download code but it does not run:I have tried blink and wifiscan

I see the following in the serial monitor.

14:41:07.946 → e[0;32mI (668) boot: Loaded app from partition at offset 0x10000e[0m
14:41:07.946 → e[0;32mI (668) boot: Disabling RNG early entropy source…e[0m
14:41:07.984 → E (695) psram: PSRAM ID read error: 0x00ffffff

I also tried “ESP32S2 Dev Module” as the board. The wifiscan program runs but I see the following in the serial monitor:

15:1:22.515 → SHA-256 comparison failed:
15:1:22.515 → Calculated: 8dce998efc3eb6dc43f3799a489dbcfbd5ada9828beadf71017c05c4a8d32bc3
15:1:22.515 → Expected: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
15:1:22.515 → Attempting to boot anyway…

So this does not seem right either. What board should I select?

1 Like

According to Adafruit’s guideline, we’re supposed to select Adafruit Metro ESP32-S2. But it failed in your case. May be a bad board. Let’s see what the Core team says.

1 Like

I have copied the serial monitor output from loading the wifiscan program and the output from reset. I note that the image segments reported by load and reset are significantly different. This seems weird but I’m a complete novice with this device. The program does not run after either load or reset. This is using the Adafruit Metro ESP32-S2 board in the arduino ide.

8:12:11.429 → ESP-ROM:esp32s2-rc4-20191025
8:12:11.429 → Build:Oct 25 2019
8:12:11.429 → rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
8:12:11.429 → SPIWP:0xee
8:12:11.429 → mode:DIO, clock div:1
8:12:11.429 → load:0x3ffe6100,len:0x1698
8:12:11.429 → load:0x4004c000,len:0x107c
8:12:11.429 → load:0x40050000,len:0x2f04
8:12:11.429 → entry 0x4004c358
8:12:11.429 → e[0;32mI (21) boot: ESP-IDF v4.4.1-149-g009e66e625 2nd stage bootloadere[0m
8:12:11.429 → e[0;32mI (21) boot: compile time 06:33:24e[0m
8:12:11.429 → e[0;32mI (22) boot: chip revision: 0e[0m
8:12:11.429 → e[0;32mI (25) qio_mode: Enabling default flash chip QIOe[0m
8:12:11.429 → e[0;32mI (31) boot.esp32s2: SPI Speed : 80MHze[0m
8:12:11.429 → e[0;32mI (35) boot.esp32s2: SPI Mode : QIOe[0m
8:12:11.429 → e[0;32mI (40) boot.esp32s2: SPI Flash Size : 4MBe[0m
8:12:11.429 → e[0;32mI (45) boot: Enabling RNG early entropy source…e[0m
8:12:11.429 → e[0;32mI (50) boot: Partition Table:e[0m
8:12:11.429 → e[0;32mI (54) boot: ## Label Usage Type ST Offset Lengthe[0m
8:12:11.429 → e[0;32mI (61) boot: 0 nvs WiFi data 01 02 00009000 00005000e[0m
8:12:11.429 → e[0;32mI (69) boot: 1 otadata OTA data 01 00 0000e000 00002000e[0m
8:12:11.429 → e[0;32mI (76) boot: 2 ota_0 OTA app 00 10 00010000 00160000e[0m
8:12:11.429 → e[0;32mI (83) boot: 3 ota_1 OTA app 00 11 00170000 00160000e[0m
8:12:11.462 → e[0;32mI (91) boot: 4 uf2 factory app 00 00 002d0000 00040000e[0m
8:12:11.462 → e[0;32mI (98) boot: 5 ffat Unknown data 01 81 00310000 000f0000e[0m
8:12:11.462 → e[0;32mI (106) boot: End of partition tablee[0m
8:12:11.462 → e[0;32mI (110) boot: Detect double reset using RC on GPIO 38 to enter UF2 bootloadere[0m
8:12:11.462 → e[0;32mI (118) esp_image: segment 0: paddr=002d0020 vaddr=3f000020 size=074f0h ( 29936) mape[0m
8:12:11.495 → e[0;32mI (132) esp_image: segment 1: paddr=002d7518 vaddr=3ffbc630 size=01364h ( 4964) loade[0m
8:12:11.495 → e[0;32mI (136) esp_image: segment 2: paddr=002d8884 vaddr=40022000 size=07794h ( 30612) loade[0m
8:12:11.495 → e[0;32mI (150) esp_image: segment 3: paddr=002e0020 vaddr=40080020 size=12038h ( 73784) mape[0m
8:12:11.529 → e[0;32mI (165) esp_image: segment 4: paddr=002f2060 vaddr=40029794 size=02e98h ( 11928) loade[0m
8:12:11.529 → e[0;32mI (167) esp_image: segment 5: paddr=002f4f00 vaddr=50000000 size=00010h ( 16) loade[0m
8:12:11.529 → e[0;32mI (176) boot: Loaded app from partition at offset 0x2d0000e[0m
8:12:11.529 → e[0;32mI (177) boot: Disabling RNG early entropy source…e[0m
8:12:11.565 → e[0;32mI (194) c���f�~������Սѥ���cache : size 8KB, 4Ways, cache line size 32Bytee[0m
8:12:11.565 → e[0;32mI (195) cpu_start: Pro cpu up.e[0m
8:12:11.565 → e[0;32mI (208) cpu_start: Pro cpu start user codee[0m
8:12:11.565 → e[0;32mI (208) cpu_start: cpu freq: 160000000e[0m
8:12:11.565 → e[0;32mI (208) cpu_start: Application information:e[0m
8:12:11.565 → e[0;32mI (213) cpu_start: Project name: tinyuf2e[0m
8:12:11.565 → e[0;32mI (218) cpu_start: App version: 0.9.4e[0m
8:12:11.599 → e[0;32mI (222) cpu_start: Compile time: May 30 2022 06:33:18e[0m
8:12:11.599 → e[0;32mI (228) cpu_start: ELF file SHA256: 224b0b15ddbd546e…e[0m
8:12:11.599 → e[0;32mI (234) cpu_start: ESP-IDF: v4.4.1-149-g009e66e625e[0m
8:12:11.599 → e[0;32mI (241) heap_init: Initializing. RAM available for dynamic allocation:e[0m
8:12:11.599 → e[0;32mI (248) heap_init: At 3FFD0F20 len 0002B0E0 (172 KiB): DRAMe[0m
8:12:11.634 → e[0;32mI (254) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAMe[0m
8:12:11.634 → e[0;32mI (260) heap_init: At 3FF9E000 len 00002000 (8 KiB): RTCRAMe[0m
8:12:11.634 → e[0;32mI (267) spi_flash: detected chip: generice[0m
8:12:11.634 → e[0;32mI (271) spi_flash: flash io: qioe[0m
8:12:11.634 → e[0;32mI (275) cpu_start: Starting scheduler on PRO CPU.e[0m

8:13:39.386 → ESP-ROM:esp32s2-rc4-20191025
8:13:39.386 → Build:Oct 25 2019
8:13:39.386 → rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
8:13:39.386 → SPIWP:0xee
8:13:39.386 → mode:DIO, clock div:1
8:13:39.421 → load:0x3ffe6100,len:0x1698
8:13:39.421 → load:0x4004c000,len:0x107c
8:13:39.421 → load:0x40050000,len:0x2f04
8:13:39.421 → entry 0x4004c358
8:13:39.421 → e[0;32mI (21) boot: ESP-IDF v4.4.1-149-g009e66e625 2nd stage bootloadere[0m
8:13:39.421 → e[0;32mI (21) boot: compile time 06:33:24e[0m
8:13:39.421 → e[0;32mI (22) boot: chip revision: 0e[0m
8:13:39.421 → e[0;32mI (25) qio_mode: Enabling default flash chip QIOe[0m
8:13:39.421 → e[0;32mI (31) boot.esp32s2: SPI Speed : 80MHze[0m
8:13:39.454 → e[0;32mI (35) boot.esp32s2: SPI Mode : QIOe[0m
8:13:39.454 → e[0;32mI (40) boot.esp32s2: SPI Flash Size : 4MBe[0m
8:13:39.454 → e[0;32mI (45) boot: Enabling RNG early entropy source…e[0m
8:13:39.454 → e[0;32mI (50) boot: Partition Table:e[0m
8:13:39.454 → e[0;32mI (54) boot: ## Label Usage Type ST Offset Lengthe[0m
8:13:39.454 → e[0;32mI (61) boot: 0 nvs WiFi data 01 02 00009000 00005000e[0m
8:13:39.487 → e[0;32mI (69) boot: 1 otadata OTA data 01 00 0000e000 00002000e[0m
8:13:39.487 → e[0;32mI (76) boot: 2 ota_0 OTA app 00 10 00010000 00160000e[0m
8:13:39.487 → e[0;32mI (83) boot: 3 ota_1 OTA app 00 11 00170000 00160000e[0m
8:13:39.487 → e[0;32mI (91) boot: 4 uf2 factory app 00 00 002d0000 00040000e[0m
8:13:39.487 → e[0;32mI (98) boot: 5 ffat Unknown data 01 81 00310000 000f0000e[0m
8:13:39.525 → e[0;32mI (106) boot: End of partition tablee[0m
8:13:40.016 → e[0;32mI (610) esp_image: segment 0: paddr=00010020 vaddr=3f000020 size=13d8ch ( 81292) mape[0m
8:13:40.016 → e[0;32mI (624) esp_image: segment 1: paddr=00023db4 vaddr=3ffc1d50 size=03704h ( 14084) loade[0m
8:13:40.016 → e[0;32mI (627) esp_image: segment 2: paddr=000274c0 vaddr=40024000 size=08b58h ( 35672) loade[0m
8:13:40.057 → e[0;32mI (638) esp_image: segment 3: paddr=00030020 vaddr=40080020 size=72334h (467764) mape[0m
8:13:40.120 → e[0;32mI (719) esp_image: segment 4: paddr=000a235c vaddr=4002cb58 size=051f4h ( 20980) loade[0m
8:13:40.120 → e[0;32mI (723) esp_image: segment 5: paddr=000a7558 vaddr=50000000 size=00010h ( 16) loade[0m
8:13:40.120 → e[0;32mI (731) boot: Loaded app from partition at offset 0x10000e[0m
8:13:40.120 → e[0;32mI (732) boot: Disabling RNG early entropy source…e[0m
8:13:40.166 → E (761) psram: PSRAM ID read error: 0x00ffffff

1 Like

Hi Russell,

Sorry for the delay in getting back to you!

Starting from the base page of Arduino IDE nagivate to Files > Preferences.

Then add https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json to the ‘Additional boards manager’

Then head to Tools > Board > Boards Manager > And search ‘esp32’
Wait for the menu to load and select the latest version, you’ll have all of the latest dev-kits available in the menu there!

Sorry for leading you astray with the Adafruit Metro board, that board features PSRAM so it wont compile correctly.

Liam

1 Like

Hi Liam,
Sorry, I didn’t see your post because Outlook assigned it to junk.
I have been using “ESP32S2 Dev Module” as the board and ignoring the SHA warning.
Everything seems to be working as expected. So I presume that my selection is close enough.
Russell

2 Likes