my fork
Fork of mbed by
TARGET_LPC1768/TOOLCHAIN_IAR/LPC17xx.icf@65:5798e58a58b1, 2013-08-12 (annotated)
- Committer:
- bogdanm
- Date:
- Mon Aug 12 13:17:46 2013 +0300
- Revision:
- 65:5798e58a58b1
- Parent:
- 64:e3affc9e7238
- Child:
- 66:9c8f0e3462fb
New target (LPC4088), new features (interrupt chaining), bug fixes (KL25Z I2C).
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 65:5798e58a58b1 | 1 | /* [ROM] */ |
bogdanm | 65:5798e58a58b1 | 2 | define symbol __intvec_start__ = 0x00000000; |
bogdanm | 65:5798e58a58b1 | 3 | define symbol __region_ROM_start__ = 0x00000000; |
bogdanm | 65:5798e58a58b1 | 4 | define symbol __CRP_start__ = 0x000002FC; |
bogdanm | 65:5798e58a58b1 | 5 | define symbol __CRP_end__ = 0x000002FF; |
bogdanm | 65:5798e58a58b1 | 6 | define symbol __region_ROM_end__ = 0x0007FFFF; |
bogdanm | 65:5798e58a58b1 | 7 | |
bogdanm | 65:5798e58a58b1 | 8 | /* [RAM] Vector table dynamic copy: 8_byte_aligned(49 vect * 4 bytes) = 8_byte_aligned(0xC4) = 0xC8*/ |
bogdanm | 65:5798e58a58b1 | 9 | define symbol __NVIC_start__ = 0x10000000; |
bogdanm | 65:5798e58a58b1 | 10 | define symbol __NVIC_end__ = 0x100000C7; |
bogdanm | 65:5798e58a58b1 | 11 | define symbol __region_RAM_start__ = 0x100000C8; |
bogdanm | 65:5798e58a58b1 | 12 | define symbol __region_RAM_end__ = 0x1000FFDF; |
bogdanm | 65:5798e58a58b1 | 13 | define symbol _AHB_RAM_start__ = 0x2007C000; |
bogdanm | 65:5798e58a58b1 | 14 | define symbol _AHB_RAM_end__ = 0x20083FFF; |
bogdanm | 65:5798e58a58b1 | 15 | |
bogdanm | 65:5798e58a58b1 | 16 | /* Memory regions */ |
bogdanm | 65:5798e58a58b1 | 17 | define memory mem with size = 4G; |
bogdanm | 65:5798e58a58b1 | 18 | |
bogdanm | 65:5798e58a58b1 | 19 | define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__] - mem:[from __CRP_start__ to __CRP_end__]; |
bogdanm | 65:5798e58a58b1 | 20 | define region CRP_region = mem:[from __CRP_start__ to __CRP_end__]; |
bogdanm | 65:5798e58a58b1 | 21 | |
bogdanm | 65:5798e58a58b1 | 22 | define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__]; |
bogdanm | 65:5798e58a58b1 | 23 | define region AHB_RAM_region = mem:[from _AHB_RAM_start__ to _AHB_RAM_end__]; |
bogdanm | 65:5798e58a58b1 | 24 | |
bogdanm | 65:5798e58a58b1 | 25 | /* Stack and Heap */ |
bogdanm | 65:5798e58a58b1 | 26 | define symbol __size_cstack__ = 0x800; |
bogdanm | 65:5798e58a58b1 | 27 | define symbol __size_heap__ = 0x800; |
bogdanm | 65:5798e58a58b1 | 28 | define block CSTACK with alignment = 8, size = __size_cstack__ { }; |
bogdanm | 65:5798e58a58b1 | 29 | define block HEAP with alignment = 8, size = __size_heap__ { }; |
bogdanm | 65:5798e58a58b1 | 30 | define block STACKHEAP with fixed order { block HEAP, block CSTACK }; |
bogdanm | 65:5798e58a58b1 | 31 | |
bogdanm | 65:5798e58a58b1 | 32 | initialize by copy with packing = zeros { readwrite }; |
bogdanm | 65:5798e58a58b1 | 33 | do not initialize { section .noinit }; |
bogdanm | 65:5798e58a58b1 | 34 | |
bogdanm | 65:5798e58a58b1 | 35 | place at address mem:__intvec_start__ { section .intvec }; |
bogdanm | 65:5798e58a58b1 | 36 | place at address mem:0x2FC { section CRPKEY }; |
bogdanm | 65:5798e58a58b1 | 37 | place in ROM_region { readonly }; |
bogdanm | 65:5798e58a58b1 | 38 | place in RAM_region { readwrite, block STACKHEAP }; |
bogdanm | 65:5798e58a58b1 | 39 | place in AHB_RAM_region { section USB_RAM }; |
bogdanm | 65:5798e58a58b1 | 40 | place in CRP_region { section .crp }; |