Hello everyone,
I've followed the guide at https://docs.espressif.com/projects/esp ... usage.html in order to recover some RAM in a project.
I am confused about the part that talks about flash chip drivers. I can find a bunch of enabled drivers in the "Auto-detect Flash chips" submenu of the menuconfig, but I don't understand which flash chip my module is using and whether I can permanently remove those drivers safely.
Removing them all doesn't seem to cause any issue and gives me about 2KB of additional RAM.
For reference, this is some information about the module I'm using:
```
$ esptool.py flash_id
esptool.py v3.3.4-dev
Found 1 serial ports
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Detecting chip type... ESP32-S2
Chip is ESP32-S2FH4 (revision v0.0)
Features: WiFi, Embedded Flash 4MB, No Embedded PSRAM, ADC and temperature sensor calibration in BLK2 of efuse V1
Crystal is 40MHz
MAC: 84:f7:03:d0:f4:90
Uploading stub...
Running stub...
Stub running...
Manufacturer: 20
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...
```
I guess I could find out the chip type from the "Manufacturer" line, but even looking at https://github.com/flashrom/flashrom/bl ... ashchips.h I can't wrap my head around it. The code 20 (assuming it's hexadecimal) is repeated across multiple manufacturers.
What chip is installed in my module? Can I remove other drivers and be sure this won't cause issues in the future (e.g. the same module being sold with a different flash chip)?
How to understand which flash chip drivers can be safely removed
Who is online
Users browsing this forum: Google [Bot] and 22 guests