mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #11756 from JammuKekkonen/add_ccmram_section_for_f303re
Add option to use CCMRAM on F303xE.pull/11775/head
commit
a07286676b
|
@ -42,7 +42,7 @@
|
|||
|
||||
#define Stack_Size MBED_BOOT_STACK_SIZE
|
||||
|
||||
; STM32F303RE: 512KB FLASH (0x80000) + 64KB SRAM (0x10000)
|
||||
; STM32F303RE: 512KB FLASH (0x80000) + 64KB SRAM (0x10000) + 16KB CCMRAM (0x4000)
|
||||
LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
|
||||
|
||||
ER_IROM1 MBED_APP_START MBED_APP_SIZE { ; load address = execution address
|
||||
|
@ -58,5 +58,9 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
|
|||
|
||||
ARM_LIB_STACK (0x20000000+0x10000) EMPTY -Stack_Size { ; stack
|
||||
}
|
||||
|
||||
CCMRAM (0x10000000) (0x4000) {
|
||||
.ANY (CCMRAM)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -168,5 +168,12 @@ SECTIONS
|
|||
|
||||
/* Check if data + heap + stack exceeds RAM limit */
|
||||
ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
|
||||
|
||||
.CCMRAM (NOLOAD):
|
||||
{
|
||||
Image$$RW_IRAM2$$Base = . ;
|
||||
*(CCMRAM)
|
||||
Image$$RW_IRAM2$$ZI$$Limit = .;
|
||||
} > CCM
|
||||
}
|
||||
|
||||
|
|
|
@ -33,8 +33,10 @@ define block STACKHEAP with fixed order { block HEAP, block CSTACK };
|
|||
|
||||
initialize by copy with packing = zeros { readwrite };
|
||||
do not initialize { section .noinit };
|
||||
do not initialize { section CCMRAM };
|
||||
|
||||
place at address mem:__intvec_start__ { readonly section .intvec };
|
||||
|
||||
place in ROM_region { readonly };
|
||||
place in RAM_region { readwrite, block STACKHEAP };
|
||||
place in CCMRAM_region { section CCMRAM };
|
||||
|
|
Loading…
Reference in New Issue