Closed
Description
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.
Activity
lbernstone commentedon Dec 5, 2024
Older versions of the software don't know about newer chips. What does v3.0.7 show for the chip model?
mstegen commentedon Dec 6, 2024
2.0.17 does have the correct chiptype in it's headers already.
A fix would be to replace
arduino-esp32/cores/esp32/Esp.cpp
Line 277 in c7022ca
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
>sigh< espressif/arduino-esp32#10683