Repostiory containing DAPLink source code with Reset Pin workaround for HANI_IOT board.

Upstream: https://github.com/ARMmbed/DAPLink

Committer:
Pawel Zarembski
Date:
Tue Apr 07 12:55:42 2020 +0200
Revision:
0:01f31e923fe2
hani: DAPLink with reset workaround

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Pawel Zarembski 0:01f31e923fe2 1 #! armcc -E
Pawel Zarembski 0:01f31e923fe2 2 ;/**
Pawel Zarembski 0:01f31e923fe2 3 ; * @file daplink.sct
Pawel Zarembski 0:01f31e923fe2 4 ; * @brief Memory layout for DAPLink Interface Firmware
Pawel Zarembski 0:01f31e923fe2 5 ; *
Pawel Zarembski 0:01f31e923fe2 6 ; * DAPLink Interface Firmware
Pawel Zarembski 0:01f31e923fe2 7 ; * Copyright (c) 2009-2016, ARM Limited, All Rights Reserved
Pawel Zarembski 0:01f31e923fe2 8 ; * SPDX-License-Identifier: Apache-2.0
Pawel Zarembski 0:01f31e923fe2 9 ; *
Pawel Zarembski 0:01f31e923fe2 10 ; * Licensed under the Apache License, Version 2.0 (the "License"); you may
Pawel Zarembski 0:01f31e923fe2 11 ; * not use this file except in compliance with the License.
Pawel Zarembski 0:01f31e923fe2 12 ; * You may obtain a copy of the License at
Pawel Zarembski 0:01f31e923fe2 13 ; *
Pawel Zarembski 0:01f31e923fe2 14 ; * http://www.apache.org/licenses/LICENSE-2.0
Pawel Zarembski 0:01f31e923fe2 15 ; *
Pawel Zarembski 0:01f31e923fe2 16 ; * Unless required by applicable law or agreed to in writing, software
Pawel Zarembski 0:01f31e923fe2 17 ; * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
Pawel Zarembski 0:01f31e923fe2 18 ; * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Pawel Zarembski 0:01f31e923fe2 19 ; * See the License for the specific language governing permissions and
Pawel Zarembski 0:01f31e923fe2 20 ; * limitations under the License.
Pawel Zarembski 0:01f31e923fe2 21 ; */
Pawel Zarembski 0:01f31e923fe2 22
Pawel Zarembski 0:01f31e923fe2 23 #include "daplink_addr.h"
Pawel Zarembski 0:01f31e923fe2 24
Pawel Zarembski 0:01f31e923fe2 25 LR_IROM1 DAPLINK_ROM_APP_START DAPLINK_ROM_APP_SIZE {
Pawel Zarembski 0:01f31e923fe2 26
Pawel Zarembski 0:01f31e923fe2 27 ER_IROM1 DAPLINK_ROM_APP_START DAPLINK_ROM_APP_SIZE {
Pawel Zarembski 0:01f31e923fe2 28 *.o (RESET, +First)
Pawel Zarembski 0:01f31e923fe2 29 *(InRoot$$Sections)
Pawel Zarembski 0:01f31e923fe2 30 .ANY (+RO)
Pawel Zarembski 0:01f31e923fe2 31 }
Pawel Zarembski 0:01f31e923fe2 32
Pawel Zarembski 0:01f31e923fe2 33 RW_IRAM1 DAPLINK_RAM_APP_START DAPLINK_RAM_APP_SIZE { ; RW data
Pawel Zarembski 0:01f31e923fe2 34 .ANY (ram_func)
Pawel Zarembski 0:01f31e923fe2 35 .ANY (+RW +ZI)
Pawel Zarembski 0:01f31e923fe2 36 .ANY (RAM1)
Pawel Zarembski 0:01f31e923fe2 37 }
Pawel Zarembski 0:01f31e923fe2 38
Pawel Zarembski 0:01f31e923fe2 39 #if defined(DAPLINK_RAM_APP2_START)
Pawel Zarembski 0:01f31e923fe2 40 RW_IRAM2 DAPLINK_RAM_APP2_START DAPLINK_RAM_APP2_SIZE { ; RW data
Pawel Zarembski 0:01f31e923fe2 41 .ANY (+RW +ZI)
Pawel Zarembski 0:01f31e923fe2 42 .ANY (RAM2)
Pawel Zarembski 0:01f31e923fe2 43 }
Pawel Zarembski 0:01f31e923fe2 44 #endif
Pawel Zarembski 0:01f31e923fe2 45
Pawel Zarembski 0:01f31e923fe2 46 RW_CONFIG DAPLINK_RAM_SHARED_START UNINIT DAPLINK_RAM_SHARED_SIZE {
Pawel Zarembski 0:01f31e923fe2 47 .ANY (cfgram)
Pawel Zarembski 0:01f31e923fe2 48 }
Pawel Zarembski 0:01f31e923fe2 49
Pawel Zarembski 0:01f31e923fe2 50 ER_IROM1_CRC (DAPLINK_ROM_APP_START + DAPLINK_ROM_APP_SIZE - 4) FIXED FILL 0xFFFFFFFF 4 {
Pawel Zarembski 0:01f31e923fe2 51 ; reserve space for the CRC
Pawel Zarembski 0:01f31e923fe2 52 }
Pawel Zarembski 0:01f31e923fe2 53 }
Pawel Zarembski 0:01f31e923fe2 54
Pawel Zarembski 0:01f31e923fe2 55 LR_CONFIG DAPLINK_ROM_CONFIG_USER_START DAPLINK_ROM_CONFIG_USER_SIZE { ; reserve last sector for config data
Pawel Zarembski 0:01f31e923fe2 56 ER_CONFIG DAPLINK_ROM_CONFIG_USER_START UNINIT DAPLINK_ROM_CONFIG_USER_SIZE {
Pawel Zarembski 0:01f31e923fe2 57 .ANY (cfgrom)
Pawel Zarembski 0:01f31e923fe2 58 }
Pawel Zarembski 0:01f31e923fe2 59 }