Page 1 of 1

Is it possible to read tech details from the MCU?

Posted: Sun Apr 20, 2025 5:58 pm
by fphilip.On
Hello,

I'm wondering, is it possible to read some identification details from the MCU through a sketch?
I have a board that is labelled "ESP32-WROOM-32" but I can't perform a Wi-Fi scan.
I'm assuming that I haven't selected the correct board in the Arduino IDE.
But which one is the correct one?
I'm desperate at the moment.
Thanks for any help.

Re: Is it possible to read tech details from the MCU?

Posted: Mon Apr 21, 2025 4:21 pm
by lbernstone
Certainly. You can see how arduino-esp32 does it using esp_chip_info.h in ESP.getChipModel(). Esptool can also show you this info, and won't let you upload code written for a different variant onto a device.

Re: Is it possible to read tech details from the MCU?

Posted: Tue Apr 22, 2025 1:41 pm
by fphilip.On
That is very interesting - TY.
Sounds worth looking into it.

Is it advisable to add the ESP-IDF extension to my Code/PlatformIO and test it there?
(I think the extension is very space hungry) :o

Re: Is it possible to read tech details from the MCU?

Posted: Tue Apr 22, 2025 2:43 pm
by fphilip.On
-> Ibernstone: Is there perhaps an example somewhere of the use of "esp.getchipmodule()" which could clone?

Re: Is it possible to read tech details from the MCU?

Posted: Tue Apr 22, 2025 3:23 pm
by fphilip.On
I installed the esptool on Linuix Mint through

Code: Select all

sudo apt install esptool
After the installation was complete, I tried to get some information from the ESP; but wasn't able to get anything.
e.g.

Code: Select all

esptool -p /dev/ttyUSB0 flash-id
or

Code: Select all

esptool -p /dev/ttyUSB0 chip-id
.
Every time I get an explanation message how to use esptool.

I following the online documentation https://docs.espressif.com/projects/esp ... index.html without any success.
Am I too stupid to use this tool? ;-)

Re: Is it possible to read tech details from the MCU?

Posted: Wed Apr 23, 2025 2:11 am
by Sprite
The commands are flash_id and chip_id, so with an underscore rather than a minus.