Hardware allocation memory (as an example in STM32F429IGT6)

Memory return on hardware three categories:

heap heap

stack stack

SRAM static storage area (called the Static Random Access Memory)

Flash memory

SRAM: From the start compiling there, running the entire program period there has been, for storing local variables global, static variables static

Flash: generally used to store program code, power-down does not disappear, can also be used to save data, there is a power failure EEPROM data memory is not disappear, but EEPROM memory is generally small, only a few hundred Byte, and Flash are generally MB level is, Flash is the smallest unit of sectors exist, EEPROM data can be modified to a single address.

stack: used to store local variables, when the variable where the function is run after immediate release

heap:, released by the malloc function pointer or a new function or free delect allocated by operators, there has been (caution, small hardware system easy to collapse) during

In STM32F429IGT6, SRAM chip itself has 256KB, Flash has 1024KB, the size of the heap and stack I do not know, but you can see when CUBEMX generation projects: 

But if you run UI interface or algorithm, SRAM memory is unable to meet the huge demand, so the general development board will help you develop a static memory, I use the family's punctuality atomic core embedded board on a piece of W9825G6KH, a 32MB of SDRAM (synchronous dynamic random access memory) synchronous dynamic memory.

These are some of my discussions memory hardware systems, we have welcome supplement or correct me in the comments area.

 

Guess you like

Origin www.cnblogs.com/showtime20190824/p/11415584.html