################################################################################ # \file cy8c6xx5_cm4.mk # \version 2.90.1 # # \brief # Specifies the starting address and the size of the segments in the output # file. # # \note The section definitions in this file are generic and handle all common # use cases. # ################################################################################ # \copyright # Copyright 2018-2020 Cypress Semiconductor Corporation # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ################################################################################ ### CM4 ### export HEAP_SIZE_CM4 := 0x400 export VECT_BASE_CM4 := 0x10000000 export RAM_VECT_BASE_CM4 := 0x08000000 export VECT_SIZE_CM4 := 0x000002F8 export TEXT_BASE_CM4 := 0x100002F8 export TEXT_SIZE_CM4 := 0x00080000 export RAM_BASE_CM4 := 0x080002F8 export RAM_SIZE_CM4 := 0x0003F780 export CYMETA_BASE_CM4 := 0x90500000 export STACK_SIZE_CM4 := 0x2000 STACK_ADDRESS_TOP_CM4 := $(shell printf "0x%x" $$(($(RAM_BASE_CM4) + $(RAM_SIZE_CM4)))) STACK_ADDRESS_BOTTOM_CM4 := $(shell printf "0x%x" $$(($(STACK_ADDRESS_TOP_CM4) - $(STACK_SIZE_CM4)))) TOOLCHAIN_VECT_BASE_CM4 := $(VECT_BASE_CM4) SECTIONS_CM4 := \ -segaddr __VECT $(VECT_BASE_CM4) \ -segaddr __TEXT $(TEXT_BASE_CM4) \ -segaddr __DATA $(RAM_BASE_CM4) \ -segaddr __RAMVECTORS $(RAM_VECT_BASE_CM4) \ -segaddr __CYMETA $(CYMETA_BASE_CM4) \ -segaddr __STACK $(STACK_ADDRESS_TOP_CM4) # Pass section addresses to the linker ifeq ($(CORE),CM4) LDFLAGS += \ -segalign 4 \ $(SECTIONS_CM4) endif # EOF