Corrected the linker script selection for l0 & l1 examples.
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
BINARY = main
|
||||
|
||||
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l1/stm32l15xxb.ld
|
||||
LDSCRIPT = ../stm32l-discovery.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
BINARY = main
|
||||
|
||||
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l1/stm32l15xxb.ld
|
||||
LDSCRIPT = ../stm32l-discovery.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
BINARY = lcd-hello
|
||||
|
||||
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l1/stm32l15xxb.ld
|
||||
LDSCRIPT = ../stm32l-discovery.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
BINARY = miniblink
|
||||
|
||||
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l1/stm32l15xxb.ld
|
||||
LDSCRIPT = ../stm32l-discovery.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
|
||||
31
examples/stm32/l1/stm32l-discovery/stm32l-discovery.ld
Normal file
31
examples/stm32/l1/stm32l-discovery/stm32l-discovery.ld
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* This file is part of the libopencm3 project.
|
||||
*
|
||||
* Copyright (C) 2021 Piotr Esden-Tempski <piotr@esden.net>
|
||||
*
|
||||
* This library is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* Linker script for ST STM32L-DISCOVERY (STM32L152RCT6, 256K flash, 32K RAM). */
|
||||
|
||||
/* Define memory regions. */
|
||||
MEMORY
|
||||
{
|
||||
rom (rx) : ORIGIN = 0x08000000, LENGTH = 64K
|
||||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 8K
|
||||
}
|
||||
|
||||
/* Include the common ld script. */
|
||||
INCLUDE cortex-m-generic.ld
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
BINARY = usart-semihosting
|
||||
|
||||
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l1/stm32l15xxb.ld
|
||||
LDSCRIPT = ../stm32l-discovery.ld
|
||||
|
||||
# To disable, run "make ENABLE_SEMIHOSTING=0" or comment next line out
|
||||
ENABLE_SEMIHOSTING ?= 1
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
BINARY = usart
|
||||
|
||||
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l1/stm32l15xxb.ld
|
||||
LDSCRIPT = ../stm32l-discovery.ld
|
||||
|
||||
include ../../Makefile.include
|
||||
|
||||
|
||||
Reference in New Issue
Block a user