Merge pull request #15378 from jeromecoutant/PR_F303

STM32F303xC: correct RAM size
pull/15383/head
Martin Kojtal 2023-01-26 08:48:09 +00:00 committed by GitHub
commit 0ca0db47c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 309218 additions and 309209 deletions

View File

@ -39,6 +39,7 @@ 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
RAM_CCM (rwx) : ORIGIN = MBED_RAM1_START, LENGTH = MBED_RAM1_SIZE
}
/* Linker script to place sections and symbol values. Should be used together
@ -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 */

View File

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

View File

@ -368139,7 +368139,7 @@
"write": true
},
"default": true,
"size": 49152,
"size": 40960,
"start": 536870912,
"startup": false
},
@ -368809,7 +368809,7 @@
"write": true
},
"default": true,
"size": 49152,
"size": 40960,
"start": 536870912,
"startup": false
},
@ -369159,7 +369159,7 @@
"write": true
},
"default": true,
"size": 49152,
"size": 40960,
"start": 536870912,
"startup": false
},
@ -369254,7 +369254,7 @@
"write": true
},
"default": true,
"size": 49152,
"size": 40960,
"start": 536870912,
"startup": false
},