cancel
Showing results for 
Search instead for 
Did you mean: 

Recommended usage of built-in flash memory

whitehorsesoft
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Andrew Neil
Super User

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.

View solution in original post

1 REPLY 1
Andrew Neil
Super User

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.