Skip to content

Add option to use CCMRAM on F303xE. #11756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Original file line number Diff line number Diff line change
Expand Up @@ -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 };