[ESP32H2]Write/read SiP flash from firmware.

parf.nick
Posts: 5
Joined: Tue Aug 29, 2023 11:40 pm

[ESP32H2]Write/read SiP flash from firmware.

Postby parf.nick » Tue Aug 29, 2023 11:49 pm

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.

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Wed Aug 30, 2023 2:34 am

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.

MicroController
Posts: 1735
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

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

Postby MicroController » Wed Aug 30, 2023 10:41 am

Or use the NVS API if you only need to store a bunch of (configuration,...) values.

Who is online

Users browsing this forum: pmi2410 and 91 guests