bsp/tms570: Add linkcmds.memory

Remove obsolete tms570ls3137_hdk_with_loader BSP variant.  With the new
memory origin/size build options this variant is no longer required.

Update #4982.
This commit is contained in:
Sebastian Huber
2024-01-15 10:33:13 +01:00
parent 1b7a8af575
commit 437da01f80
19 changed files with 172 additions and 111 deletions
@@ -1,21 +0,0 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
arch: arm
bsp: tms570ls3137_hdk_with_loader
build-type: bsp
cflags: []
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
cppflags: []
enabled-by: true
family: tms570
includes: []
install: []
links:
- role: build-dependency
uid: ../../opto2
- role: build-dependency
uid: ../../tstsmallmem
- role: build-dependency
uid: grp
source: []
type: build
+14
View File
@@ -42,6 +42,20 @@ links:
uid: optscibaud
- role: build-dependency
uid: optlinkflags
- role: build-dependency
uid: optmemflashorigin
- role: build-dependency
uid: optmemflashsize
- role: build-dependency
uid: optmemsdramorigin
- role: build-dependency
uid: optmemsdramsize
- role: build-dependency
uid: optmemsramorigin
- role: build-dependency
uid: optmemsramsize
- role: build-dependency
uid: linkcmdsmemory
- role: build-dependency
uid: ../../linkcmds
- role: build-dependency
@@ -0,0 +1,27 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
build-type: config-file
content: |
MEMORY {
ROM_INT : ORIGIN = ${TMS570_MEMORY_FLASH_ORIGIN:#010x}, LENGTH = ${TMS570_MEMORY_FLASH_SIZE:#010x}
RAM_INT : ORIGIN = ${TMS570_MEMORY_SRAM_ORIGIN:#010x}, LENGTH = ${TMS570_MEMORY_SRAM_SIZE:#010x}
RAM_EXT : ORIGIN = ${TMS570_MEMORY_SDRAM_ORIGIN:#010x}, LENGTH = ${TMS570_MEMORY_SDRAM_SIZE:#010x}
}
tms570_memory_flash_begin = ORIGIN (ROM_INT);
tms570_memory_flash_end = ORIGIN (ROM_INT) + LENGTH (ROM_INT);
tms570_memory_flash_size = LENGTH (ROM_INT);
tms570_memory_sram_begin = ORIGIN (RAM_INT);
tms570_memory_sram_end = ORIGIN (RAM_INT) + LENGTH (RAM_INT);
tms570_memory_sram_size = LENGTH (RAM_INT);
tms570_memory_sdram_begin = ORIGIN (RAM_EXT);
tms570_memory_sdram_end = ORIGIN (RAM_EXT) + LENGTH (RAM_EXT);
tms570_memory_sdram_size = LENGTH (RAM_EXT);
copyrights:
- Copyright (C) 2023 embedded brains GmbH & Co. KG
enabled-by: true
install-path: ${BSP_LIBDIR}
links: []
target: linkcmds.memory
type: build
-1
View File
@@ -68,7 +68,6 @@ install:
- bsps/arm/tms570/start/linkcmds.tms570ls3137_hdk
- bsps/arm/tms570/start/linkcmds.tms570ls3137_hdk_intram
- bsps/arm/tms570/start/linkcmds.tms570ls3137_hdk_sdram
- bsps/arm/tms570/start/linkcmds.tms570ls3137_hdk_with_loader
links: []
source:
- bsps/arm/shared/cp15/arm-cp15-set-exception-handler.c
@@ -0,0 +1,18 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
actions:
- get-integer: null
- env-assign: null
- format-and-define: TMS570_MEMORY_FLASH_ORIGIN
build-type: option
copyrights:
- Copyright (C) 2023 embedded brains GmbH & Co. KG
default:
- enabled-by: true
value: 0x00000000
description: |
Origin of the internal flash memory.
enabled-by: true
format: '{:#010x}'
links: []
name: TMS570_MEMORY_FLASH_ORIGIN
type: build
@@ -0,0 +1,20 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
actions:
- get-integer: null
- env-assign: null
- format-and-define: TMS570_MEMORY_FLASH_SIZE
build-type: option
copyrights:
- Copyright (C) 2023 embedded brains GmbH & Co. KG
default:
- enabled-by: TMS570_VARIANT_4357
value: 0x00400000
- enabled-by: true
value: 0x00300000
description: |
Size in bytes of the internal flash memory.
enabled-by: true
format: '{:#010x}'
links: []
name: TMS570_MEMORY_FLASH_SIZE
type: build
@@ -0,0 +1,18 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
actions:
- get-integer: null
- env-assign: null
- format-and-define: TMS570_MEMORY_SDRAM_ORIGIN
build-type: option
copyrights:
- Copyright (C) 2023 embedded brains GmbH & Co. KG
default:
- enabled-by: true
value: 0x80000000
description: |
Origin of the external SDRAM memory.
enabled-by: true
format: '{:#010x}'
links: []
name: TMS570_MEMORY_SDRAM_ORIGIN
type: build
@@ -0,0 +1,18 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
actions:
- get-integer: null
- env-assign: null
- format-and-define: TMS570_MEMORY_SDRAM_SIZE
build-type: option
copyrights:
- Copyright (C) 2023 embedded brains GmbH & Co. KG
default:
- enabled-by: true
value: 0x00800000
description: |
Size in bytes of the external SDRAM memory.
enabled-by: true
format: '{:#010x}'
links: []
name: TMS570_MEMORY_SDRAM_SIZE
type: build
@@ -0,0 +1,18 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
actions:
- get-integer: null
- env-assign: null
- format-and-define: TMS570_MEMORY_SRAM_ORIGIN
build-type: option
copyrights:
- Copyright (C) 2023 embedded brains GmbH & Co. KG
default:
- enabled-by: true
value: 0x08000000
description: |
Origin of the internal SRAM memory.
enabled-by: true
format: '{:#010x}'
links: []
name: TMS570_MEMORY_SRAM_ORIGIN
type: build
@@ -0,0 +1,20 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
actions:
- get-integer: null
- env-assign: null
- format-and-define: TMS570_MEMORY_SRAM_SIZE
build-type: option
copyrights:
- Copyright (C) 2023 embedded brains GmbH & Co. KG
default:
- enabled-by: TMS570_VARIANT_4357
value: 0x00080000
- enabled-by: true
value: 0x00040000
description: |
Size in bytes of the internal SRAM memory.
enabled-by: true
format: '{:#010x}'
links: []
name: TMS570_MEMORY_SRAM_SIZE
type: build