Merge pull request #11756 from JammuKekkonen/add_ccmram_section_for_f303re

Add option to use CCMRAM on F303xE.
pull/11775/head
Martin Kojtal 2019-10-30 09:10:42 +01:00 committed by GitHub
commit a07286676b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 1 deletions

View File

@ -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)
}
}

View File

@ -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
}

View File

@ -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 };