summaryrefslogtreecommitdiff
path: root/bsp/tm4c129x
diff options
context:
space:
mode:
authorarmink <[email protected]>2017-07-27 13:58:07 +0800
committerarmink <[email protected]>2017-07-27 13:58:07 +0800
commit573c294216e37268d5387296c760527d2f5eab7d (patch)
tree8ab70b99c5c23b1fbd714b1b422f18e4415e68c2 /bsp/tm4c129x
parent763d7456e31e8188c0b9848d8b6eab01f884c265 (diff)
[BSP] Fix component initialization functions may be not sequential storage on ROM when used for IAR linker.
Diffstat (limited to 'bsp/tm4c129x')
-rw-r--r--bsp/tm4c129x/tm4c_rom.icf7
1 files changed, 6 insertions, 1 deletions
diff --git a/bsp/tm4c129x/tm4c_rom.icf b/bsp/tm4c129x/tm4c_rom.icf
index a07b00da91..6b4fde42e1 100644
--- a/bsp/tm4c129x/tm4c_rom.icf
+++ b/bsp/tm4c129x/tm4c_rom.icf
@@ -45,10 +45,15 @@ define region SRAM = mem:[from 0x20000000 to 0x2003ffff];
define block HEAP with alignment = 8, size = 0x00000000 { };
//
+// Define a block for RT-Thread components initialization
+//
+define block RTT_INIT_FUNC with fixed order { readonly section .rti_fn* };
+
+//
// Indicate that the read/write values should be initialized by copying from
// flash.
//
-initialize by copy { readwrite };
+initialize by copy { readwrite , RTT_INIT_FUNC };
//
// Indicate that the noinit values should be left alone. This includes the