Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] What does heap size in micro stm32f10x start up mean?

Status
Not open for further replies.

stackprogramer

Full Member level 2
Joined
Jul 22, 2015
Messages
149
Helped
0
Reputation
0
Reaction score
0
Trophy points
16
Activity points
1,177
whats mens heap size in micro stm32f10x start up?

i use keil for stm32f10x,in start up there is some words.
whats menas Heap_Size Heapbase in startup micro stm32f10x??


a part of start up files

Heap_Size EQU 0x00000200

AREA HEAP, NOINIT, READWRITE, ALIGN=3
__heap_base
Heap_Mem SPACE Heap_Size
__heap_limit

PRESERVE8
THUMB

thanks for reply
 

alexxx

Advanced Member level 4
Joined
Apr 17, 2011
Messages
1,013
Helped
273
Reputation
552
Reaction score
270
Trophy points
1,383
Location
Greece
Activity points
7,938
Re: whats mens heap size in micro stm32f10x start up?

Heap is a region of memory to be used for memory allocation, when malloc() or calloc() is used. If memory allocation will not be used by the application, then it is not important. My compiler stores by default 10 bytes for the heap, and I leave it like this. If memory allocation will be used, then you must make sure that the heap size will be larger compared to the size you will allocate from the software. I don't use Keil, but I'm pretty sure that "base" is the start address of the heap inside RAM and "size" is how may bytes the heap will be. If you don't know what to do, then edit the size from Keil settings and let the linker decide on base address.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top