Compare commits
2 Commits
ebb95b902c
...
b497537a78
| Author | SHA1 | Date | |
|---|---|---|---|
| b497537a78 | |||
| 723afd9f56 |
@@ -267,7 +267,7 @@
|
||||
#define __CMSIS_GENERIC /* disable NVIC and Systick functions */
|
||||
|
||||
#if defined (ARM_MATH_CM4)
|
||||
#include "core_cm4.h"
|
||||
#include <cmsis/core_cm4.h>
|
||||
#elif defined (ARM_MATH_CM3)
|
||||
#include "core_cm3.h"
|
||||
#elif defined (ARM_MATH_CM0)
|
||||
@@ -282,8 +282,8 @@
|
||||
#endif
|
||||
|
||||
#undef __CMSIS_GENERIC /* enable NVIC and Systick functions */
|
||||
#include "string.h"
|
||||
#include "math.h"
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
|
||||
@@ -36,8 +36,8 @@ ENTRY(Reset_Handler)
|
||||
_estack = 0x20020000; /* end of 128K RAM on AHB bus*/
|
||||
|
||||
/* Generate a link error if heap and stack don't fit into RAM */
|
||||
_Min_Heap_Size = 0x1500; /* required amount of heap (DEFAULT 0) */
|
||||
_Min_Stack_Size = 0x2000 ; /* required amount of stack */
|
||||
_Min_Heap_Size = 0x2100; /* required amount of heap (DEFAULT 0) */
|
||||
_Min_Stack_Size = 0x3000 ; /* required amount of stack */
|
||||
/* recommended min stack size for printf=0x2000, orig = 0x400 */
|
||||
|
||||
/* 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 (NOLOAD):
|
||||
{
|
||||
. = ALIGN(4);
|
||||
. = ALIGN(8);
|
||||
PROVIDE (heap_low = .); /* for _sbrk */
|
||||
PROVIDE ( end = . );
|
||||
PROVIDE ( _end = . );
|
||||
. = . + _Min_Heap_Size;
|
||||
PROVIDE (heap_top = .); /* for _sbrk */
|
||||
. = . + _Min_Stack_Size;
|
||||
. = ALIGN(4);
|
||||
. = ALIGN(8);
|
||||
} >RAM
|
||||
|
||||
/* MEMORY_bank1 section, code must be located here explicitly */
|
||||
|
||||
Reference in New Issue
Block a user