Is it possible to read tech details from the MCU?

fphilip.On
Posts: 6
Joined: Sun Apr 20, 2025 5:07 pm

Is it possible to read tech details from the MCU?

Postby fphilip.On » Sun Apr 20, 2025 5:58 pm

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.

lbernstone
Posts: 1132
Joined: Mon Jul 22, 2019 3:20 pm

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

Postby lbernstone » Mon Apr 21, 2025 4:21 pm

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.

fphilip.On
Posts: 6
Joined: Sun Apr 20, 2025 5:07 pm

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

Postby fphilip.On » Tue Apr 22, 2025 1:41 pm

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

fphilip.On
Posts: 6
Joined: Sun Apr 20, 2025 5:07 pm

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

Postby fphilip.On » Tue Apr 22, 2025 2:43 pm

-> Ibernstone: Is there perhaps an example somewhere of the use of "esp.getchipmodule()" which could clone?

fphilip.On
Posts: 6
Joined: Sun Apr 20, 2025 5:07 pm

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

Postby fphilip.On » Tue Apr 22, 2025 3:23 pm

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? ;-)
Last edited by fphilip.On on Tue Apr 22, 2025 5:04 pm, edited 1 time in total.

Sprite
Espressif staff
Espressif staff
Posts: 10609
Joined: Thu Nov 26, 2015 4:08 am

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

Postby Sprite » Wed Apr 23, 2025 2:11 am

The commands are flash_id and chip_id, so with an underscore rather than a minus.

Who is online

Users browsing this forum: No registered users and 1 guest