ESP32-S3 WROOM-1 Flash Success but WROOM-2 Reboots with TG1WDT_SYS_RST

milan pipaliya
Posts: 21
Joined: Fri Oct 11, 2024 4:14 am

ESP32-S3 WROOM-1 Flash Success but WROOM-2 Reboots with TG1WDT_SYS_RST

Postby milan pipaliya » Sat Mar 29, 2025 5:52 am

Description:
I am working on an ESP32-S3 project using ESP-IDF v5.4-dev. The same code flashes and runs successfully on the ESP32-S3 WROOM-1 module, but when I try it on the WROOM-2 module, it reboots with the following error:

E (793) app_driver: Failed to read serial number
E (795) i2c: i2c_master_cmd_begin(1436): Timeout waiting for I2C bus
E (800) app_sensor: Sensor initialization failed
E (803) gpio: gpio_install_isr_service(502): GPIO isr service already installed
E (810) spi_flash: Detected Octal Flash chip, enabling Octal mode
E (815) esp_image: Image at 0x10000 has invalid chip ID, expected 0, found 2
E (820) esp_image: Image validation failed, attempting to reboot
rst:0x8 (TG1WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)

Observations:

The I2C scan completes successfully, but reading the serial number of the SHT40 sensor fails.

I2C bus timeout errors are present, suggesting communication issues.

The GPIO ISR service reports an error, indicating it is already installed.

The reboot is caused by a Watchdog Timer (WDT) reset (TG1WDT_SYS_RST).

The WROOM-2 module is using an Octal Flash chip with automatic mode switching.

ESP logs indicate an invalid chip ID in the firmware image.

The ESP logs show deprecated driver warnings for RMT, I2C, and ADC.

The issue persists even after using idf.py erase_flash before flashing.

Troubleshooting Steps Taken:

Verified the power supply and ensured stable voltage.

Checked GPIO assignments for conflicts.

Ensured that I2C and other peripherals are correctly initialized and deinitialized.

Attempted using different SPI flash modes.

Disabled watchdog timer for debugging.

Flashed with different partition tables.

Verified bootloader and partition alignment with WROOM-2 specifications.

Checked sdkconfig for potential Octal Flash compatibility settings.

Questions:

Why does the same firmware work on WROOM-1 but not on WROOM-2?

Could the issue be related to the Octal Flash chip detected in WROOM-2?

What modifications should be made to prevent the watchdog reset?

Are there specific SDK configuration changes required for WROOM-2's Octal Flash?

Any insights or suggestions would be greatly appreciated!

adokitkat
Espressif staff
Espressif staff
Posts: 77
Joined: Thu Jun 22, 2023 12:50 pm

Re: ESP32-S3 WROOM-1 Flash Success but WROOM-2 Reboots with TG1WDT_SYS_RST

Postby adokitkat » Tue Apr 01, 2025 2:08 pm

Hello. WROOM-2 is using octal SPI flash, which is a different from what WROOM-1 uses (quad SPI flash).

Have you tried to change the setting in `idf.py menuconfig:` "(Top) → Serial flasher config → Enable Octal Flash"?

milan pipaliya
Posts: 21
Joined: Fri Oct 11, 2024 4:14 am

Re: ESP32-S3 WROOM-1 Flash Success but WROOM-2 Reboots with TG1WDT_SYS_RST

Postby milan pipaliya » Mon Apr 07, 2025 6:18 am

yes i tried it but showing same problem

in my code when i2c scan function call then after reboot

Who is online

Users browsing this forum: Amazon [Bot], YisouSpider and 3 guests