Skip to content

Commit 10e198e

Browse files
askuricfpistm
andauthored
Apply suggestions from code review
Co-authored-by: Frederic Pillon <frederic.pillon@st.com> Signed-off-by: Antun Skuric <36178713+askuric@users.noreply.github.com>
1 parent a96f357 commit 10e198e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

variants/STM32L4xx/L412RB(I-T)xP/ldscript.ld

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ _Min_Stack_Size = 0x400; /* required amount of stack */
6060
/* Specify the memory areas */
6161
MEMORY
6262
{
63-
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 32K
63+
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = LD_MAX_DATA_SIZE
6464
RAM2 (xrw) : ORIGIN = 0x10000000, LENGTH = 8K
65-
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 128K
65+
FLASH (rx) : ORIGIN = 0x8000000 + LD_FLASH_OFFSET, LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET
6666
}
6767

6868
/* Define output sections */
@@ -170,7 +170,7 @@ SECTIONS
170170
. = ALIGN(4);
171171
.bss :
172172
{
173-
/* This is used by the startup in order to initialize the .bss secion */
173+
/* This is used by the startup in order to initialize the .bss section */
174174
_sbss = .; /* define a global symbol at bss start */
175175
__bss_start__ = _sbss;
176176
*(.bss)

variants/STM32L4xx/L412RB(I-T)xP/variant_NUCLEO_L412RB_P.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
#define TIMER_TONE TIM6
110110
#endif
111111
#ifndef TIMER_SERVO
112-
#define TIMER_SERVO TIM7
112+
#define TIMER_SERVO TIM16
113113
#endif
114114

115115
// UART Definitions

0 commit comments

Comments
 (0)