-
Notifications
You must be signed in to change notification settings - Fork 0
/
newproject.ld
28 lines (21 loc) · 1.27 KB
/
newproject.ld
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* example linker file, copy and customize for new projects.*/
/* first include your processor's MEMORY layout stuff.*/
INCLUDE cortexm/stm32/l452re.ld
STACKINCCM = 1 ; /* If STACKINCCM is defined then stack goes there and you must remember that DMA can't access that memory (this might be false for L452). The value does not matter, use comments to control this. */
/* Rowley builder likes to reference stuff that never actually gets referenced, we dummy those to map to an actual function that does nothing */
__do_debug_operation = do_nothing ;
__vfprintf = do_nothing ;
__vfscanf = do_nothing ;
__vfprintf = do_nothing ;
__vfscanf = do_nothing ;
printf = do_nothing ;
/*__putchar = do_nothing ; /* refed by vfprintf*/
/* these guys come and go! compiler sometimes seem to ignore our 'leave OS stuff out'*/
__aeabi_errno_addr = do_nothing ;
/*__aeabi_read_tp = do_nothing ; /**/
abort = do_nothing ;
/* __dso_handle = do_nothing ; /* try commenting out once you have hunted down unexpected visitors in the link map */
/* end = 0 ;/* used by _sbrk, which should not be getting called */
/* then the generic "flash only" stuff, which presently is tightly tied into cstartup.cpp */
INCLUDE cortexm/cortexm.ld
/* INCLUDE cortexm/ccmfast.ld /** build descriptor for vectors into ram */