Repostiory containing DAPLink source code with Reset Pin workaround for HANI_IOT board.
Upstream: https://github.com/ARMmbed/DAPLink
source/hic_hal/stm32/stm32f103xb/daplink_addr.h@0:01f31e923fe2, 2020-04-07 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
Pawel Zarembski |
0:01f31e923fe2 | 1 | /** |
Pawel Zarembski |
0:01f31e923fe2 | 2 | * @file daplink_addr.h |
Pawel Zarembski |
0:01f31e923fe2 | 3 | * @brief |
Pawel Zarembski |
0:01f31e923fe2 | 4 | * |
Pawel Zarembski |
0:01f31e923fe2 | 5 | * DAPLink Interface Firmware |
Pawel Zarembski |
0:01f31e923fe2 | 6 | * Copyright (c) 2009-2016, ARM Limited, All Rights Reserved |
Pawel Zarembski |
0:01f31e923fe2 | 7 | * SPDX-License-Identifier: Apache-2.0 |
Pawel Zarembski |
0:01f31e923fe2 | 8 | * |
Pawel Zarembski |
0:01f31e923fe2 | 9 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
Pawel Zarembski |
0:01f31e923fe2 | 10 | * not use this file except in compliance with the License. |
Pawel Zarembski |
0:01f31e923fe2 | 11 | * You may obtain a copy of the License at |
Pawel Zarembski |
0:01f31e923fe2 | 12 | * |
Pawel Zarembski |
0:01f31e923fe2 | 13 | * http://www.apache.org/licenses/LICENSE-2.0 |
Pawel Zarembski |
0:01f31e923fe2 | 14 | * |
Pawel Zarembski |
0:01f31e923fe2 | 15 | * Unless required by applicable law or agreed to in writing, software |
Pawel Zarembski |
0:01f31e923fe2 | 16 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
Pawel Zarembski |
0:01f31e923fe2 | 17 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Pawel Zarembski |
0:01f31e923fe2 | 18 | * See the License for the specific language governing permissions and |
Pawel Zarembski |
0:01f31e923fe2 | 19 | * limitations under the License. |
Pawel Zarembski |
0:01f31e923fe2 | 20 | */ |
Pawel Zarembski |
0:01f31e923fe2 | 21 | |
Pawel Zarembski |
0:01f31e923fe2 | 22 | #ifndef DAPLINK_ADDR_H |
Pawel Zarembski |
0:01f31e923fe2 | 23 | #define DAPLINK_ADDR_H |
Pawel Zarembski |
0:01f31e923fe2 | 24 | |
Pawel Zarembski |
0:01f31e923fe2 | 25 | /* Device sizes */ |
Pawel Zarembski |
0:01f31e923fe2 | 26 | |
Pawel Zarembski |
0:01f31e923fe2 | 27 | #define DAPLINK_ROM_START 0x08000000 |
Pawel Zarembski |
0:01f31e923fe2 | 28 | #define DAPLINK_ROM_SIZE 0x00020000 |
Pawel Zarembski |
0:01f31e923fe2 | 29 | |
Pawel Zarembski |
0:01f31e923fe2 | 30 | #define DAPLINK_RAM_START 0x20000000 |
Pawel Zarembski |
0:01f31e923fe2 | 31 | #define DAPLINK_RAM_SIZE 0x00005000 |
Pawel Zarembski |
0:01f31e923fe2 | 32 | |
Pawel Zarembski |
0:01f31e923fe2 | 33 | /* ROM sizes */ |
Pawel Zarembski |
0:01f31e923fe2 | 34 | |
Pawel Zarembski |
0:01f31e923fe2 | 35 | #define DAPLINK_ROM_BL_START 0x08000000 |
Pawel Zarembski |
0:01f31e923fe2 | 36 | #define DAPLINK_ROM_BL_SIZE 0x0000BC00 |
Pawel Zarembski |
0:01f31e923fe2 | 37 | |
Pawel Zarembski |
0:01f31e923fe2 | 38 | #define DAPLINK_ROM_CONFIG_ADMIN_START 0x0800BC00 |
Pawel Zarembski |
0:01f31e923fe2 | 39 | #define DAPLINK_ROM_CONFIG_ADMIN_SIZE 0x00000400 |
Pawel Zarembski |
0:01f31e923fe2 | 40 | |
Pawel Zarembski |
0:01f31e923fe2 | 41 | #define DAPLINK_ROM_IF_START 0x0800C000 |
Pawel Zarembski |
0:01f31e923fe2 | 42 | #define DAPLINK_ROM_IF_SIZE 0x00013C00 |
Pawel Zarembski |
0:01f31e923fe2 | 43 | |
Pawel Zarembski |
0:01f31e923fe2 | 44 | #define DAPLINK_ROM_CONFIG_USER_START 0x0801FC00 |
Pawel Zarembski |
0:01f31e923fe2 | 45 | #define DAPLINK_ROM_CONFIG_USER_SIZE 0x00000400 |
Pawel Zarembski |
0:01f31e923fe2 | 46 | |
Pawel Zarembski |
0:01f31e923fe2 | 47 | /* RAM sizes */ |
Pawel Zarembski |
0:01f31e923fe2 | 48 | |
Pawel Zarembski |
0:01f31e923fe2 | 49 | #define DAPLINK_RAM_APP_START 0x20000000 |
Pawel Zarembski |
0:01f31e923fe2 | 50 | #define DAPLINK_RAM_APP_SIZE 0x00004F00 |
Pawel Zarembski |
0:01f31e923fe2 | 51 | |
Pawel Zarembski |
0:01f31e923fe2 | 52 | #define DAPLINK_RAM_SHARED_START 0x20004F00 |
Pawel Zarembski |
0:01f31e923fe2 | 53 | #define DAPLINK_RAM_SHARED_SIZE 0x00000100 |
Pawel Zarembski |
0:01f31e923fe2 | 54 | |
Pawel Zarembski |
0:01f31e923fe2 | 55 | /* Flash Programming Info */ |
Pawel Zarembski |
0:01f31e923fe2 | 56 | |
Pawel Zarembski |
0:01f31e923fe2 | 57 | #define DAPLINK_SECTOR_SIZE 0x00000400 |
Pawel Zarembski |
0:01f31e923fe2 | 58 | #define DAPLINK_MIN_WRITE_SIZE 0x00000400 |
Pawel Zarembski |
0:01f31e923fe2 | 59 | |
Pawel Zarembski |
0:01f31e923fe2 | 60 | /* Current build */ |
Pawel Zarembski |
0:01f31e923fe2 | 61 | |
Pawel Zarembski |
0:01f31e923fe2 | 62 | #if defined(DAPLINK_BL) |
Pawel Zarembski |
0:01f31e923fe2 | 63 | |
Pawel Zarembski |
0:01f31e923fe2 | 64 | #define DAPLINK_ROM_APP_START DAPLINK_ROM_BL_START |
Pawel Zarembski |
0:01f31e923fe2 | 65 | #define DAPLINK_ROM_APP_SIZE DAPLINK_ROM_BL_SIZE |
Pawel Zarembski |
0:01f31e923fe2 | 66 | #define DAPLINK_ROM_UPDATE_START DAPLINK_ROM_IF_START |
Pawel Zarembski |
0:01f31e923fe2 | 67 | #define DAPLINK_ROM_UPDATE_SIZE DAPLINK_ROM_IF_SIZE |
Pawel Zarembski |
0:01f31e923fe2 | 68 | |
Pawel Zarembski |
0:01f31e923fe2 | 69 | #elif defined(DAPLINK_IF) |
Pawel Zarembski |
0:01f31e923fe2 | 70 | |
Pawel Zarembski |
0:01f31e923fe2 | 71 | #define DAPLINK_ROM_APP_START DAPLINK_ROM_IF_START |
Pawel Zarembski |
0:01f31e923fe2 | 72 | #define DAPLINK_ROM_APP_SIZE DAPLINK_ROM_IF_SIZE |
Pawel Zarembski |
0:01f31e923fe2 | 73 | #define DAPLINK_ROM_UPDATE_START DAPLINK_ROM_BL_START |
Pawel Zarembski |
0:01f31e923fe2 | 74 | #define DAPLINK_ROM_UPDATE_SIZE DAPLINK_ROM_BL_SIZE |
Pawel Zarembski |
0:01f31e923fe2 | 75 | |
Pawel Zarembski |
0:01f31e923fe2 | 76 | #else |
Pawel Zarembski |
0:01f31e923fe2 | 77 | |
Pawel Zarembski |
0:01f31e923fe2 | 78 | #error "Build must be either bootloader or interface" |
Pawel Zarembski |
0:01f31e923fe2 | 79 | |
Pawel Zarembski |
0:01f31e923fe2 | 80 | #endif |
Pawel Zarembski |
0:01f31e923fe2 | 81 | |
Pawel Zarembski |
0:01f31e923fe2 | 82 | #endif |