Skip to content

Commit dbfd8d6

Browse files
committed
[PRNTR Vx] Fix RAM size
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 1b46e5f commit dbfd8d6

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

Diff for: boards.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,7 @@ LoRa.menu.upload_method.dfuMethod.upload.tool=stm32CubeProg
16131613
# PRNTR_F407_V1 board
16141614
3dprinter.menu.pnum.PRNTR_F407_V1=PRNTR F407 v1
16151615
3dprinter.menu.pnum.PRNTR_F407_V1.upload.maximum_size=524288
1616-
3dprinter.menu.pnum.PRNTR_F407_V1.upload.maximum_data_size=196608
1616+
3dprinter.menu.pnum.PRNTR_F407_V1.upload.maximum_data_size=131072
16171617
3dprinter.menu.pnum.PRNTR_F407_V1.build.mcu=cortex-m4
16181618
3dprinter.menu.pnum.PRNTR_F407_V1.build.flags.fp=-mfpu=fpv4-sp-d16 -mfloat-abi=hard
16191619
3dprinter.menu.pnum.PRNTR_F407_V1.build.board=PRNTR_F407_V1
@@ -1625,7 +1625,7 @@ LoRa.menu.upload_method.dfuMethod.upload.tool=stm32CubeProg
16251625
# PRNTR_V2 board
16261626
3dprinter.menu.pnum.PRNTR_V2=PRNTR v2
16271627
3dprinter.menu.pnum.PRNTR_V2.upload.maximum_size=524288
1628-
3dprinter.menu.pnum.PRNTR_V2.upload.maximum_data_size=196608
1628+
3dprinter.menu.pnum.PRNTR_V2.upload.maximum_data_size=131072
16291629
3dprinter.menu.pnum.PRNTR_V2.build.mcu=cortex-m4
16301630
3dprinter.menu.pnum.PRNTR_V2.build.flags.fp=-mfpu=fpv4-sp-d16 -mfloat-abi=hard
16311631
3dprinter.menu.pnum.PRNTR_V2.build.board=PRNTR_V2

Diff for: variants/PRNTR_Vx/ldscript.ld

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
*****************************************************************************
2+
******************************************************************************
33
**
44

55
** File : LinkerScript.ld
@@ -14,14 +14,13 @@
1414
**
1515
** Target : STMicroelectronics STM32
1616
**
17-
**
18-
** Distribution: The file is distributed as is, without any warranty
17+
** Distribution: The file is distributed “as is,” without any warranty
1918
** of any kind.
2019
**
2120
*****************************************************************************
2221
** @attention
2322
**
24-
** <h2><center>&copy; COPYRIGHT(c) 2014 Ac6</center></h2>
23+
** <h2><center>&copy; COPYRIGHT(c) 2019 STMicroelectronics</center></h2>
2524
**
2625
** Redistribution and use in source and binary forms, with or without modification,
2726
** are permitted provided that the following conditions are met:
@@ -30,7 +29,7 @@
3029
** 2. Redistributions in binary form must reproduce the above copyright notice,
3130
** this list of conditions and the following disclaimer in the documentation
3231
** and/or other materials provided with the distribution.
33-
** 3. Neither the name of Ac6 nor the names of its contributors
32+
** 3. Neither the name of STMicroelectronics nor the names of its contributors
3433
** may be used to endorse or promote products derived from this software
3534
** without specific prior written permission.
3635
**
@@ -61,7 +60,7 @@ _Min_Stack_Size = 0x400; /* required amount of stack */
6160
MEMORY
6261
{
6362
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
64-
CCMRAM (rw) : ORIGIN = 0x10000000, LENGTH = 64K
63+
CCMRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 64K
6564
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 512K
6665
}
6766

@@ -77,7 +76,7 @@ SECTIONS
7776
} >FLASH
7877

7978
/* The program code and other data goes into FLASH */
80-
.text ALIGN(8):
79+
.text :
8180
{
8281
. = ALIGN(4);
8382
*(.text) /* .text sections (code) */
@@ -94,7 +93,7 @@ SECTIONS
9493
} >FLASH
9594

9695
/* Constant data goes into FLASH */
97-
.rodata ALIGN(4):
96+
.rodata :
9897
{
9998
. = ALIGN(4);
10099
*(.rodata) /* .rodata sections (constants, strings, etc.) */

0 commit comments

Comments
 (0)