Page 1 of 1

[ESP32H2]Write/read SiP flash from firmware.

Posted: Tue Aug 29, 2023 11:49 pm
by parf.nick
Hello.
H2 model has in-package 2/4MB flash memory.
Can i read and write it from firmware or i only can connect externally via “SPI pins”.?
I want to :
1. Receive data from BT and store it in SiP flash.
2. Read data from SiP flash and send via BT.

Thank you.

Re: [ESP32H2]Write/read SiP flash from firmware.

Posted: Wed Aug 30, 2023 2:34 am
by ESP_Sprite
You can. The cleanest way is to create a custom partition table with a partition for the data, then either use the partition API to access the data 'raw', or put any of the available filesystems (fat, spiffs, littlefs) on it to access the data as files.

Re: [ESP32H2]Write/read SiP flash from firmware.

Posted: Wed Aug 30, 2023 10:41 am
by MicroController
Or use the NVS API if you only need to store a bunch of (configuration,...) values.