Skip to content
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

STM32F303xC: correct RAM size #15378

Merged
merged 3 commits into from
Jan 26, 2023
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 @@ -37,8 +37,9 @@

MEMORY
{
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
RAM (rwx) : ORIGIN = MBED_RAM_START + VECTORS_SIZE, LENGTH = MBED_RAM_SIZE - VECTORS_SIZE
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
RAM (rwx) : ORIGIN = MBED_RAM_START + VECTORS_SIZE, LENGTH = MBED_RAM_SIZE - VECTORS_SIZE
RAM_CCM (rwx) : ORIGIN = MBED_RAM1_START, LENGTH = MBED_RAM1_SIZE
}

/* Linker script to place sections and symbol values. Should be used together
Expand Down Expand Up @@ -113,7 +114,7 @@ SECTIONS

__etext = .;
_sidata = .;

.data : AT (__etext)
{
__data_start__ = .;
Expand Down Expand Up @@ -161,7 +162,7 @@ SECTIONS
. = ALIGN(32);
__uninitialized_end = .;
} > RAM

.bss :
{
. = ALIGN(8);
Expand All @@ -183,6 +184,14 @@ SECTIONS
__HeapLimit = .;
} > RAM

.ram_ccm_section (NOLOAD):
{
__ram_ccm_start__ = .;
*(.RAM_CCM_section)
. = ORIGIN(RAM_CCM) + LENGTH(RAM_CCM);
__ram_ccm_end__ = .;
} >RAM_CCM

/* .stack_dummy section doesn't contains any symbols. It is only
* used for linker to calculate size of stack sections, and assign
* values to stack symbols later */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#endif

#if !defined(MBED_RAM_SIZE)
#define MBED_RAM_SIZE 0xc000 // 48 KB
#define MBED_RAM_SIZE 0xa000 // 40 KB
#endif

#if !defined(MBED_RAM1_START)
Expand Down
Loading