Increse heap and stack sizes
This commit is contained in:
		@@ -36,8 +36,8 @@ ENTRY(Reset_Handler)
 | 
				
			|||||||
_estack = 0x20020000;    /* end of 128K RAM on AHB bus*/
 | 
					_estack = 0x20020000;    /* end of 128K RAM on AHB bus*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Generate a link error if heap and stack don't fit into RAM */
 | 
					/* Generate a link error if heap and stack don't fit into RAM */
 | 
				
			||||||
_Min_Heap_Size = 0x1500;      /* required amount of heap (DEFAULT 0) */
 | 
					_Min_Heap_Size = 0x2100;      /* required amount of heap (DEFAULT 0) */
 | 
				
			||||||
_Min_Stack_Size = 0x2000 ; /* required amount of stack */
 | 
					_Min_Stack_Size = 0x3000 ; /* required amount of stack */
 | 
				
			||||||
/* recommended min stack size for printf=0x2000, orig = 0x400 */
 | 
					/* recommended min stack size for printf=0x2000, orig = 0x400 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Specify the memory areas */
 | 
					/* Specify the memory areas */
 | 
				
			||||||
@@ -162,14 +162,14 @@ SECTIONS
 | 
				
			|||||||
  /* User_heap_stack section, used to check that there is enough RAM left */
 | 
					  /* User_heap_stack section, used to check that there is enough RAM left */
 | 
				
			||||||
  ._user_heap_stack (NOLOAD):
 | 
					  ._user_heap_stack (NOLOAD):
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    . = ALIGN(4);
 | 
					    . = ALIGN(8);
 | 
				
			||||||
    PROVIDE (heap_low = .); /* for _sbrk */
 | 
					    PROVIDE (heap_low = .); /* for _sbrk */
 | 
				
			||||||
    PROVIDE ( end = . );
 | 
					    PROVIDE ( end = . );
 | 
				
			||||||
    PROVIDE ( _end = . );
 | 
					    PROVIDE ( _end = . );
 | 
				
			||||||
    . = . + _Min_Heap_Size;
 | 
					    . = . + _Min_Heap_Size;
 | 
				
			||||||
    PROVIDE (heap_top = .); /* for _sbrk */
 | 
					    PROVIDE (heap_top = .); /* for _sbrk */
 | 
				
			||||||
    . = . + _Min_Stack_Size;
 | 
					    . = . + _Min_Stack_Size;
 | 
				
			||||||
    . = ALIGN(4);
 | 
					    . = ALIGN(8);
 | 
				
			||||||
  } >RAM
 | 
					  } >RAM
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* MEMORY_bank1 section, code must be located here explicitly            */
 | 
					  /* MEMORY_bank1 section, code must be located here explicitly            */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user