Different on-board flash memories access and use

The H7 has 2 different flash:

  • 2 MB Flash on ST SOC
  • 16 MB QSPI Flash

The SQPI Flash can be used like a USB disk as illustrated in "AccessFlashAsUSBdisk" example.

There are other ways to access the QSPI flash?
How to access/use the Processor flash?

check out
https://docs.arduino.cc/tutorials/portenta-h7/reading-writing-flash-memory/
https://docs.arduino.cc/tutorials/portenta-h7/flash-optimized-key-value-store/
https://forum.arduino.cc/t/giga-wifi-and-qspif-user-space-works/
https://forum.arduino.cc/t/no-more-eeprom-with-giga-r1-how-to-use-flash/

Which of the the two flash is used by defult to store user program? The SOC flash?
In this case the QSPI remains entirely avalable?

The MCU's internal (2MB) flash stores program code and is also used by the kvStore in its default config mode. You can also use it yourself but I'd advise against it.
The external QSPI flash (16MB) is used to store the WiFi firmware, CA cert (partition 1) and a memory-mapped image of the WiFi firmware. It is also used for OTA updates (partition 2). It can have up to 4 partitions. I use partition 3 for user data and partition 4 for tdb store data. The user partitions can be formatted FAT, littlefs or left raw.

Very precise. thank you.