I know to readout flash manufacturer with esptool.py:
Code: Select all
esptool.py flash_id
Code: Select all
Manufacturer: 20
Device: 4016
Detected flash size: 4MB
Code: Select all
esptool.py flash_id
Code: Select all
Manufacturer: 20
Device: 4016
Detected flash size: 4MB
Code: Select all
#include <esp_flash.h>
uint32_t chipid;
esp_flash_read_id(NULL, &chipid);
Serial.printf("chipid: %6x", chipid);
Code: Select all
#include <rom/spi_flash.h>
Serial.begin(115200);
uint32_t chipid = g_rom_flashchip.device_id;
Serial.printf("chipid: %6x\n", chipid);
Users browsing this forum: No registered users and 103 guests