Merge pull request #15279 from jeromecoutant/PR_F334

STM32F334xx wrong RAM size
pull/15281/head
Martin Kojtal 2022-05-04 14:22:17 +02:00 committed by GitHub
commit f2c9c60eb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 14 deletions

View File

@ -38,6 +38,7 @@
MEMORY
{
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
CCMRAM (rw) : ORIGIN = 0x10000000, LENGTH = 4K
RAM (rwx) : ORIGIN = MBED_RAM_START + VECTORS_SIZE, LENGTH = MBED_RAM_SIZE - VECTORS_SIZE
}
@ -113,7 +114,7 @@ SECTIONS
__etext = .;
_sidata = .;
.data : AT (__etext)
{
__data_start__ = .;
@ -161,7 +162,7 @@ SECTIONS
. = ALIGN(32);
__uninitialized_end = .;
} > RAM
.bss :
{
. = ALIGN(8);

View File

@ -30,7 +30,9 @@
#endif
#if !defined(MBED_RAM_SIZE)
#define MBED_RAM_SIZE 0x4000 // 16 KB
// 0x20000000 - 0x20002FFF 12K SRAM
// 0x10000000 - 0x20000FFF 4K CCM SRAM
#define MBED_RAM_SIZE 0x3000 // 12 KB
#endif
#define NVIC_NUM_VECTORS 98

View File

@ -370153,7 +370153,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
@ -370233,7 +370233,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
@ -370313,7 +370313,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
@ -370393,7 +370393,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
@ -370473,7 +370473,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
@ -370633,7 +370633,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
@ -370713,7 +370713,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
@ -370793,7 +370793,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
@ -370873,7 +370873,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
@ -370953,7 +370953,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
@ -371033,7 +371033,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},