Skip to content

Commit f2c9c60

Browse files
authored
Merge pull request ARMmbed#15279 from jeromecoutant/PR_F334
STM32F334xx wrong RAM size
2 parents 2026861 + de4ea6e commit f2c9c60

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F334x8/TOOLCHAIN_GCC_ARM/STM32F334X8.ld

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
MEMORY
3939
{
4040
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
41+
CCMRAM (rw) : ORIGIN = 0x10000000, LENGTH = 4K
4142
RAM (rwx) : ORIGIN = MBED_RAM_START + VECTORS_SIZE, LENGTH = MBED_RAM_SIZE - VECTORS_SIZE
4243
}
4344

@@ -113,7 +114,7 @@ SECTIONS
113114

114115
__etext = .;
115116
_sidata = .;
116-
117+
117118
.data : AT (__etext)
118119
{
119120
__data_start__ = .;
@@ -161,7 +162,7 @@ SECTIONS
161162
. = ALIGN(32);
162163
__uninitialized_end = .;
163164
} > RAM
164-
165+
165166
.bss :
166167
{
167168
. = ALIGN(8);

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F334x8/cmsis_nvic.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
#endif
3131

3232
#if !defined(MBED_RAM_SIZE)
33-
#define MBED_RAM_SIZE 0x4000 // 16 KB
33+
// 0x20000000 - 0x20002FFF 12K SRAM
34+
// 0x10000000 - 0x20000FFF 4K CCM SRAM
35+
#define MBED_RAM_SIZE 0x3000 // 12 KB
3436
#endif
3537

3638
#define NVIC_NUM_VECTORS 98

tools/arm_pack_manager/index.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -370153,7 +370153,7 @@
370153370153
"write": true
370154370154
},
370155370155
"default": true,
370156-
"size": 16384,
370156+
"size": 12288,
370157370157
"start": 536870912,
370158370158
"startup": false
370159370159
},
@@ -370233,7 +370233,7 @@
370233370233
"write": true
370234370234
},
370235370235
"default": true,
370236-
"size": 16384,
370236+
"size": 12288,
370237370237
"start": 536870912,
370238370238
"startup": false
370239370239
},
@@ -370313,7 +370313,7 @@
370313370313
"write": true
370314370314
},
370315370315
"default": true,
370316-
"size": 16384,
370316+
"size": 12288,
370317370317
"start": 536870912,
370318370318
"startup": false
370319370319
},
@@ -370393,7 +370393,7 @@
370393370393
"write": true
370394370394
},
370395370395
"default": true,
370396-
"size": 16384,
370396+
"size": 12288,
370397370397
"start": 536870912,
370398370398
"startup": false
370399370399
},
@@ -370473,7 +370473,7 @@
370473370473
"write": true
370474370474
},
370475370475
"default": true,
370476-
"size": 16384,
370476+
"size": 12288,
370477370477
"start": 536870912,
370478370478
"startup": false
370479370479
},
@@ -370633,7 +370633,7 @@
370633370633
"write": true
370634370634
},
370635370635
"default": true,
370636-
"size": 16384,
370636+
"size": 12288,
370637370637
"start": 536870912,
370638370638
"startup": false
370639370639
},
@@ -370713,7 +370713,7 @@
370713370713
"write": true
370714370714
},
370715370715
"default": true,
370716-
"size": 16384,
370716+
"size": 12288,
370717370717
"start": 536870912,
370718370718
"startup": false
370719370719
},
@@ -370793,7 +370793,7 @@
370793370793
"write": true
370794370794
},
370795370795
"default": true,
370796-
"size": 16384,
370796+
"size": 12288,
370797370797
"start": 536870912,
370798370798
"startup": false
370799370799
},
@@ -370873,7 +370873,7 @@
370873370873
"write": true
370874370874
},
370875370875
"default": true,
370876-
"size": 16384,
370876+
"size": 12288,
370877370877
"start": 536870912,
370878370878
"startup": false
370879370879
},
@@ -370953,7 +370953,7 @@
370953370953
"write": true
370954370954
},
370955370955
"default": true,
370956-
"size": 16384,
370956+
"size": 12288,
370957370957
"start": 536870912,
370958370958
"startup": false
370959370959
},
@@ -371033,7 +371033,7 @@
371033371033
"write": true
371034371034
},
371035371035
"default": true,
371036-
"size": 16384,
371036+
"size": 12288,
371037371037
"start": 536870912,
371038371038
"startup": false
371039371039
},

0 commit comments

Comments
 (0)