Corrected the linker script selection for l0 & l1 examples.

This commit is contained in:
Piotr Esden-Tempski
2021-06-19 00:44:26 -07:00
parent 520e7523ec
commit 02f48ef616
9 changed files with 69 additions and 7 deletions

View File

@@ -19,7 +19,7 @@
BINARY = miniblink
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l0/stm32l0xx8.ld
LDSCRIPT = ../stm32l0538-discovery.ld
include ../../Makefile.include

View 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 STM32L0538DISCOVERY (STM32L053C8T6, 64K flash, 8K 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

View File

@@ -19,7 +19,7 @@
BINARY = main
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l1/stm32l15xxb.ld
LDSCRIPT = ../stm32l-discovery.ld
include ../../Makefile.include

View File

@@ -19,7 +19,7 @@
BINARY = main
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l1/stm32l15xxb.ld
LDSCRIPT = ../stm32l-discovery.ld
include ../../Makefile.include

View File

@@ -19,7 +19,7 @@
BINARY = lcd-hello
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l1/stm32l15xxb.ld
LDSCRIPT = ../stm32l-discovery.ld
include ../../Makefile.include

View File

@@ -19,7 +19,7 @@
BINARY = miniblink
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l1/stm32l15xxb.ld
LDSCRIPT = ../stm32l-discovery.ld
include ../../Makefile.include

View 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

View File

@@ -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

View File

@@ -19,7 +19,7 @@
BINARY = usart
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l1/stm32l15xxb.ld
LDSCRIPT = ../stm32l-discovery.ld
include ../../Makefile.include