Skip to content

Commit

Permalink
Merge pull request ARMmbed#15279 from jeromecoutant/PR_F334
Browse files Browse the repository at this point in the history
STM32F334xx wrong RAM size
  • Loading branch information
0xc0170 authored May 4, 2022
2 parents 2026861 + de4ea6e commit f2c9c60
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 11 additions & 11 deletions tools/arm_pack_manager/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -370153,7 +370153,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
Expand Down Expand Up @@ -370233,7 +370233,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
Expand Down Expand Up @@ -370313,7 +370313,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
Expand Down Expand Up @@ -370393,7 +370393,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
Expand Down Expand Up @@ -370473,7 +370473,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
Expand Down Expand Up @@ -370633,7 +370633,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
Expand Down Expand Up @@ -370713,7 +370713,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
Expand Down Expand Up @@ -370793,7 +370793,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
Expand Down Expand Up @@ -370873,7 +370873,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
Expand Down Expand Up @@ -370953,7 +370953,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
Expand Down Expand Up @@ -371033,7 +371033,7 @@
"write": true
},
"default": true,
"size": 16384,
"size": 12288,
"start": 536870912,
"startup": false
},
Expand Down

0 comments on commit f2c9c60

Please sign in to comment.