Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32-MINI-1 (ESP32-U4WDH) identified by ESP.getChipModel() as ESP32-PICO-D2 #10683

Closed
1 task done
mstegen opened this issue Dec 4, 2024 · 2 comments · Fixed by #10696
Closed
1 task done

ESP32-MINI-1 (ESP32-U4WDH) identified by ESP.getChipModel() as ESP32-PICO-D2 #10683

mstegen opened this issue Dec 4, 2024 · 2 comments · Fixed by #10696
Labels
Status: Awaiting triage Issue is waiting for triage

Comments

@mstegen
Copy link
Contributor

mstegen commented Dec 4, 2024

Board

ESP-MINI-1 module

Device Description

ESP module on custom hardware

Hardware Configuration

All I/O used

Version

v2.0.17

IDE Name

VSCode

Operating System

Linux and Win10

Flash frequency

40Mhz

PSRAM enabled

no

Upload speed

2000000

Description

New hardware with instead of a ESP32-WROOM-32E a ESP32-MINI-1, gives me 2 extra IO pins which come in handy.
I want the existing software to detect the new module/chip with ESP.getChipModel(), so it can configure the correct I/O based on the detected chip.
When programming, the chip is correctly identified, and everything is working fine.

esptool.py v4.5.1
Serial port COM3
Connecting.........
Chip is ESP32-U4WDH (revision v3.1)

But when i use ESP.getChipModel() in my code, the wrong Chiptype is reported: ESP32-PICO-D2
When browsing through the Arduino code (Esp.cpp) i see that there is no mention anywhere of the ESP32-U4WDH chip..

Sketch

Serial.printf("ESP32 Chip model:%s\n",ESP.getChipModel());

Debug Message

ESP32-WROOM-32 module:
ESP32 Chip model:ESP32-D0WD-V3 

ESP32-MINI-1 module:
ESP32 Chip model:ESP32-PICO-D2

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@mstegen mstegen added the Status: Awaiting triage Issue is waiting for triage label Dec 4, 2024
@lbernstone
Copy link
Contributor

Older versions of the software don't know about newer chips. What does v3.0.7 show for the chip model?

@mstegen
Copy link
Contributor Author

mstegen commented Dec 6, 2024

2.0.17 does have the correct chiptype in it's headers already.
A fix would be to replace

case EFUSE_RD_CHIP_VER_PKG_ESP32PICOD2: return "ESP32-PICO-D2";

with
case EFUSE_RD_CHIP_VER_PKG_ESP32U4WDH: return "ESP32-U4WDH";

EFUSE_RD_CHIP_VER_PKG_ESP32U4WDH is already defined here:
https://github.com/espressif/esp-idf/blob/master/components/soc/esp32/include/soc/efuse_defs.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting triage Issue is waiting for triage
Projects
None yet
2 participants