Skip to main content
whitehorsesoft
Associate III
February 10, 2026
Solved

Recommended usage of built-in flash memory

  • February 10, 2026
  • 1 reply
  • 147 views

Greetings, I am looking for pointers to material describing recommended ways to interact with built-in flash memory for general data reading and writing.

DS9716 indicates there are several memory-mapped regions that could suffice, but maybe block 6 (starting at 0xC000 0000) seems like a safe bet, since it is "Not used"?

Since this is for data storage and retrieval only, not instruction storage and retrieval, is there any need to mark the region of memory in some way in the loader script?

Also, I noticed the HAL functions have some flash-based functions (UM1725) - there is some good info in there but again I'm not sure what memory target would be best for these functions.

Apologies if this has been written up somewhere already. I see several "lab" type resources on the web for demonstrating how to do this, but I haven't seen a recommended practice in the official documentation or the knowledge bases here.

Best answer by Andrew Neil

For STM32F4, have you seen AN3969 ?

See this thread.

Also this thread - which links to some alternatives ...

1 reply

Andrew Neil
Andrew NeilBest answer
Super User
February 10, 2026

For STM32F4, have you seen AN3969 ?

See this thread.

Also this thread - which links to some alternatives ...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.