Skip to content

Commit f89291a

Browse files
committed
[G0] Workaround for mass storage upload
Current ST-Link firmware limits the RAM size to 32k while 36k is available if parity check is disabled. This could be revert when ST-Link firmware properly handle this. Signed-off-by: Frederic.Pillon <[email protected]>
1 parent d061489 commit f89291a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

boards.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ Nucleo_64.menu.pnum.NUCLEO_F446RE.build.cmsis_lib_gcc=arm_cortexM4l_math
246246
Nucleo_64.menu.pnum.NUCLEO_G071RB=Nucleo G071RB
247247
Nucleo_64.menu.pnum.NUCLEO_G071RB.node=NODE_G071RB
248248
Nucleo_64.menu.pnum.NUCLEO_G071RB.upload.maximum_size=131072
249-
Nucleo_64.menu.pnum.NUCLEO_G071RB.upload.maximum_data_size=36864
249+
Nucleo_64.menu.pnum.NUCLEO_G071RB.upload.maximum_data_size=32768
250250
Nucleo_64.menu.pnum.NUCLEO_G071RB.build.mcu=cortex-m0plus
251251
Nucleo_64.menu.pnum.NUCLEO_G071RB.build.board=NUCLEO_G071RB
252252
Nucleo_64.menu.pnum.NUCLEO_G071RB.build.series=STM32G0xx

variants/NUCLEO_G071RB/ldscript.ld

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
ENTRY(Reset_Handler)
3333

3434
/* Highest address of the user mode stack */
35-
_estack = 0x20009000; /* end of RAM */
35+
_estack = 0x20008000; /* end of RAM */
3636
/* Generate a link error if heap and stack don't fit into RAM */
3737
_Min_Heap_Size = 0x200; /* required amount of heap */
3838
_Min_Stack_Size = 0x400; /* required amount of stack */
3939

4040
/* Specify the memory areas */
4141
MEMORY
4242
{
43-
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 36K
43+
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 32K
4444
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 128K
4545
}
4646

0 commit comments

Comments
 (0)