Repostiory containing DAPLink source code with Reset Pin workaround for HANI_IOT board.
Upstream: https://github.com/ARMmbed/DAPLink
source/family/toshiba/tz10xx/tz10xx_prog_blob.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 | /* Flash OS Routines (Automagically Generated) |
Pawel Zarembski |
0:01f31e923fe2 | 2 | * Copyright (c) 2009-2019 ARM Limited |
Pawel Zarembski |
0:01f31e923fe2 | 3 | * |
Pawel Zarembski |
0:01f31e923fe2 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Pawel Zarembski |
0:01f31e923fe2 | 5 | * you may not use this file except in compliance with the License. |
Pawel Zarembski |
0:01f31e923fe2 | 6 | * You may obtain a copy of the License at |
Pawel Zarembski |
0:01f31e923fe2 | 7 | * |
Pawel Zarembski |
0:01f31e923fe2 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Pawel Zarembski |
0:01f31e923fe2 | 9 | * |
Pawel Zarembski |
0:01f31e923fe2 | 10 | * Unless required by applicable law or agreed to in writing, software |
Pawel Zarembski |
0:01f31e923fe2 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Pawel Zarembski |
0:01f31e923fe2 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Pawel Zarembski |
0:01f31e923fe2 | 13 | * See the License for the specific language governing permissions and |
Pawel Zarembski |
0:01f31e923fe2 | 14 | * limitations under the License. |
Pawel Zarembski |
0:01f31e923fe2 | 15 | */ |
Pawel Zarembski |
0:01f31e923fe2 | 16 | |
Pawel Zarembski |
0:01f31e923fe2 | 17 | static const uint32_t tz10xx_flash_prog_blob[] = { |
Pawel Zarembski |
0:01f31e923fe2 | 18 | 0xE00ABE00, 0x062D780D, 0x24084068, 0xD3000040, 0x1E644058, 0x1C49D1FA, 0x2A001E52, 0x4770D1F2, |
Pawel Zarembski |
0:01f31e923fe2 | 19 | 0x43f8e92d, 0xf44f2206, 0xf44f7144, 0xf0007080, 0xbb20f938, 0x7480f44f, 0xf44f00a5, 0xf44f52fa, |
Pawel Zarembski |
0:01f31e923fe2 | 20 | 0xf04f760c, 0xf04f0c01, 0xf04f0800, 0x270f2340, 0x629c2005, 0x631e62dd, 0x0100f8c3, 0xc034f8c3, |
Pawel Zarembski |
0:01f31e923fe2 | 21 | 0x50faf44f, 0x10a0f8d3, 0x0f01f011, 0xb158d00a, 0x70a0f8c3, 0x0200f8d3, 0x46409000, 0x2001b130, |
Pawel Zarembski |
0:01f31e923fe2 | 22 | 0x83f8e8bd, 0xd1ed1e40, 0xe7f74660, 0xf0109800, 0xd1010f02, 0xd1db1e52, 0xe8bd2000, 0x49ad83f8, |
Pawel Zarembski |
0:01f31e923fe2 | 23 | 0xf8c12000, 0x2a030154, 0xf04fd103, 0x20012140, 0x20006508, 0x20004770, 0xe92d4770, 0xf7ff45f8, |
Pawel Zarembski |
0:01f31e923fe2 | 24 | 0x2800ffaf, 0x2060bf08, 0xbf00d12f, 0xd1fc1e40, 0xf44f22c7, 0xf44f7144, 0xf0007080, 0xbb20f8e2, |
Pawel Zarembski |
0:01f31e923fe2 | 25 | 0xf44f2200, 0x00a57480, 0x760cf44f, 0x0c01f04f, 0xf04f4692, 0x270f2340, 0x7810f242, 0x629c2005, |
Pawel Zarembski |
0:01f31e923fe2 | 26 | 0x631e62dd, 0x0100f8c3, 0xc034f8c3, 0x50faf44f, 0x10a0f8d3, 0x0f01f011, 0xb158d00a, 0x70a0f8c3, |
Pawel Zarembski |
0:01f31e923fe2 | 27 | 0x0200f8d3, 0x46509000, 0x2001b130, 0x85f8e8bd, 0xd1ed1e40, 0xe7f74660, 0xf0109800, 0xbf180f01, |
Pawel Zarembski |
0:01f31e923fe2 | 28 | 0x60e0f642, 0xbf00d005, 0xd1fc1e40, 0x45421c52, 0x2000dbd4, 0x85f8e8bd, 0x4604b510, 0xff60f7ff, |
Pawel Zarembski |
0:01f31e923fe2 | 29 | 0xbf082800, 0xd1102160, 0x1e49bf00, 0xba20d1fc, 0x0220f040, 0xf44f4978, 0xf0007080, 0xb920f892, |
Pawel Zarembski |
0:01f31e923fe2 | 30 | 0xf8aaf000, 0xbf082800, 0x2001bd10, 0xe92dbd10, 0x461543f8, 0x4606460c, 0xff42f7ff, 0xd17a2800, |
Pawel Zarembski |
0:01f31e923fe2 | 31 | 0x2c40f04f, 0x7780f44f, 0xf8cc2135, 0x00b87028, 0x002cf8cc, 0x720cf44f, 0x2030f8cc, 0x1100f8cc, |
Pawel Zarembski |
0:01f31e923fe2 | 32 | 0xf8cc2201, 0xf44f2034, 0xf8dc51fa, 0xf01330a0, 0xd00a0f01, 0x210fb159, 0x10a0f8cc, 0x1200f8dc, |
Pawel Zarembski |
0:01f31e923fe2 | 33 | 0x21009100, 0xd1562900, 0x1e49e003, 0x4611d1ed, 0x9900e7f8, 0x8164f8df, 0x0f02f011, 0x0101f1a4, |
Pawel Zarembski |
0:01f31e923fe2 | 34 | 0x6101ea48, 0xf44fd00b, 0xf8cc7381, 0xf8cc3028, 0xf8cc002c, 0xba301030, 0x0032f040, 0xf8cce008, |
Pawel Zarembski |
0:01f31e923fe2 | 35 | 0xf8cc7028, 0xf8cc002c, 0xba301030, 0x0002f040, 0x0100f8cc, 0xf0242000, 0x2c000103, 0xf020d907, |
Pawel Zarembski |
0:01f31e923fe2 | 36 | 0x4e470303, 0x503358eb, 0x42841d00, 0x42a1d8f7, 0xf021d006, 0xf1010003, 0x58282140, 0x0200f8c1, |
Pawel Zarembski |
0:01f31e923fe2 | 37 | 0xd2082ce0, 0xeba02008, 0xeb001054, 0x00800040, 0x1e40bf00, 0xf8ccd1fc, 0xf44f2034, 0xf8dc50fa, |
Pawel Zarembski |
0:01f31e923fe2 | 38 | 0xf01110a0, 0xd0090f02, 0xf000b128, 0x2800f825, 0xe8bdbf08, 0x200183f8, 0x83f8e8bd, 0xd1ee1e40, |
Pawel Zarembski |
0:01f31e923fe2 | 39 | 0xf04fe7f9, 0x62982340, 0x62d81518, 0xf8c36319, 0x20012100, 0xf44f6358, 0xf8d350fa, 0xf01110a0, |
Pawel Zarembski |
0:01f31e923fe2 | 40 | 0xd0050f02, 0x200fb130, 0x00a0f8c3, 0x47702000, 0xd1f21e40, 0x47702001, 0x01f8e92d, 0x7480f44f, |
Pawel Zarembski |
0:01f31e923fe2 | 41 | 0xf44f00a5, 0xf44f52fa, 0xf04f760c, 0xf04f0c01, 0xf04f0800, 0x270f2340, 0x629c2005, 0x631e62dd, |
Pawel Zarembski |
0:01f31e923fe2 | 42 | 0x0100f8c3, 0xc034f8c3, 0x50faf44f, 0x10a0f8d3, 0x0f01f011, 0xb160d00b, 0x70a0f8c3, 0x0200f8d3, |
Pawel Zarembski |
0:01f31e923fe2 | 43 | 0x46409000, 0xe8bdb138, 0x200101f8, 0x1e404770, 0x4660d1ec, 0x9800e7f6, 0x0f01f010, 0x2000bf18, |
Pawel Zarembski |
0:01f31e923fe2 | 44 | 0x1c40d004, 0xdbfc2864, 0xd1d51e52, 0x01f8e8bd, 0x47702000, 0x4004a000, 0x00030310, 0x00030330, |
Pawel Zarembski |
0:01f31e923fe2 | 45 | 0x40004200, 0x00000000, |
Pawel Zarembski |
0:01f31e923fe2 | 46 | }; |
Pawel Zarembski |
0:01f31e923fe2 | 47 | |
Pawel Zarembski |
0:01f31e923fe2 | 48 | /** |
Pawel Zarembski |
0:01f31e923fe2 | 49 | * List of start and size for each size of flash sector |
Pawel Zarembski |
0:01f31e923fe2 | 50 | * The size will apply to all sectors between the listed address and the next address |
Pawel Zarembski |
0:01f31e923fe2 | 51 | * in the list. |
Pawel Zarembski |
0:01f31e923fe2 | 52 | * The last pair in the list will have sectors starting at that address and ending |
Pawel Zarembski |
0:01f31e923fe2 | 53 | * at address start + size. |
Pawel Zarembski |
0:01f31e923fe2 | 54 | */ |
Pawel Zarembski |
0:01f31e923fe2 | 55 | static const sector_info_t sectors_info[] = { |
Pawel Zarembski |
0:01f31e923fe2 | 56 | {0, 1024}, |
Pawel Zarembski |
0:01f31e923fe2 | 57 | }; |
Pawel Zarembski |
0:01f31e923fe2 | 58 | |
Pawel Zarembski |
0:01f31e923fe2 | 59 | static const program_target_t flash = { |
Pawel Zarembski |
0:01f31e923fe2 | 60 | 0x2000009F, // Init |
Pawel Zarembski |
0:01f31e923fe2 | 61 | 0x200000B7, // UnInit |
Pawel Zarembski |
0:01f31e923fe2 | 62 | 0x200000BB, // EraseChip |
Pawel Zarembski |
0:01f31e923fe2 | 63 | 0x20000159, // EraseSector |
Pawel Zarembski |
0:01f31e923fe2 | 64 | 0x2000018F, // ProgramPage |
Pawel Zarembski |
0:01f31e923fe2 | 65 | 0x0, // Verify |
Pawel Zarembski |
0:01f31e923fe2 | 66 | |
Pawel Zarembski |
0:01f31e923fe2 | 67 | // BKPT : start of blob + 1 |
Pawel Zarembski |
0:01f31e923fe2 | 68 | // RSB : blob start + header + rw data offset |
Pawel Zarembski |
0:01f31e923fe2 | 69 | // RSP : stack pointer |
Pawel Zarembski |
0:01f31e923fe2 | 70 | { |
Pawel Zarembski |
0:01f31e923fe2 | 71 | 0x20000000 + 0x00000001, |
Pawel Zarembski |
0:01f31e923fe2 | 72 | 0x20000000 + 0x00000020 + 0x00000344, |
Pawel Zarembski |
0:01f31e923fe2 | 73 | 0x20000800 |
Pawel Zarembski |
0:01f31e923fe2 | 74 | }, |
Pawel Zarembski |
0:01f31e923fe2 | 75 | |
Pawel Zarembski |
0:01f31e923fe2 | 76 | 0x20000000 + 0x00000A00, // mem buffer location |
Pawel Zarembski |
0:01f31e923fe2 | 77 | 0x20000000, // location to write prog_blob in target RAM |
Pawel Zarembski |
0:01f31e923fe2 | 78 | sizeof(tz10xx_flash_prog_blob), // prog_blob size |
Pawel Zarembski |
0:01f31e923fe2 | 79 | tz10xx_flash_prog_blob, // address of prog_blob |
Pawel Zarembski |
0:01f31e923fe2 | 80 | 0x00000100 // ram_to_flash_bytes_to_be_written |
Pawel Zarembski |
0:01f31e923fe2 | 81 | }; |