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 /* 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 M251_AP_256_flash_prog_blob[] = {
Pawel Zarembski 0:01f31e923fe2 18 0xE00ABE00, 0x062D780D, 0x24084068, 0xD3000040, 0x1E644058, 0x1C49D1FA, 0x2A001E52, 0x4770D1F2,
Pawel Zarembski 0:01f31e923fe2 19 0xb088b5b0, 0x460c4613, 0x90064605, 0x92049105, 0x90032064, 0x1000f240, 0x0000f2c4, 0x60012159,
Pawel Zarembski 0:01f31e923fe2 20 0x60012116, 0x60012188, 0x21016800, 0x93024208, 0x95009401, 0xe7ffd103, 0x90072001, 0xf240e038,
Pawel Zarembski 0:01f31e923fe2 21 0xf2c42000, 0x68010000, 0x43112204, 0xf2406001, 0xf2c42004, 0x68010000, 0x60014311, 0x9803e7ff,
Pawel Zarembski 0:01f31e923fe2 22 0x91031e41, 0xd0012800, 0xe7f8e7ff, 0x0000f24c, 0x0000f2c4, 0x222d6801, 0x60014311, 0x011cf24c,
Pawel Zarembski 0:01f31e923fe2 23 0x0100f2c4, 0x2301680a, 0x600a431a, 0x42186800, 0xe7ffd103, 0x90072001, 0xf24ce00a, 0xf2c40000,
Pawel Zarembski 0:01f31e923fe2 24 0x68010000, 0x43112240, 0x20006001, 0xe7ff9007, 0xb0089807, 0xb082bdb0, 0x90014601, 0xe7ff9100,
Pawel Zarembski 0:01f31e923fe2 25 0x0010f24c, 0x0000f2c4, 0x21016800, 0xd0014208, 0xe7f5e7ff, 0x0000f24c, 0x0000f2c4, 0x222d6801,
Pawel Zarembski 0:01f31e923fe2 26 0x60014391, 0x001cf24c, 0x0000f2c4, 0x22016801, 0x60014391, 0xb0022000, 0xb0854770, 0x4603460a,
Pawel Zarembski 0:01f31e923fe2 27 0xa8029003, 0x92017001, 0xe7ff9300, 0x0010f24c, 0x0000f2c4, 0x21016800, 0xd0014208, 0xe7f5e7ff,
Pawel Zarembski 0:01f31e923fe2 28 0x0000f24c, 0x0000f2c4, 0x22406801, 0x60014311, 0x000cf24c, 0x0000f2c4, 0x60012122, 0xf24c9803,
Pawel Zarembski 0:01f31e923fe2 29 0xf2c40104, 0x60080100, 0x7800a802, 0xd1082800, 0x2000e7ff, 0xf24c43c0, 0xf2c40108, 0x60080100,
Pawel Zarembski 0:01f31e923fe2 30 0xf24ce009, 0xf2c40008, 0xf64a0000, 0xf2c02103, 0x60010155, 0xf24ce7ff, 0xf2c40010, 0x21010000,
Pawel Zarembski 0:01f31e923fe2 31 0xf3bf6001, 0xe7ff8f6f, 0x0010f24c, 0x0000f2c4, 0x21016800, 0xd0014208, 0xe7f5e7ff, 0x0000f24c,
Pawel Zarembski 0:01f31e923fe2 32 0x0000f2c4, 0x21406800, 0xd00b4208, 0xf24ce7ff, 0xf2c40000, 0x68010000, 0x43112240, 0x20016001,
Pawel Zarembski 0:01f31e923fe2 33 0xe0029004, 0x90042000, 0x9804e7ff, 0x4770b005, 0xb084b580, 0x90024601, 0x220f9802, 0x40100512,
Pawel Zarembski 0:01f31e923fe2 34 0x05522201, 0x91014290, 0xe7ffd10b, 0xf2409802, 0xf6cf0100, 0x184071e0, 0xf7ff2101, 0x9003ff7e,
Pawel Zarembski 0:01f31e923fe2 35 0x9802e005, 0xf7ff2100, 0x9003ff78, 0x9803e7ff, 0xbd80b004, 0xb088b580, 0x4603460a, 0x91059006,
Pawel Zarembski 0:01f31e923fe2 36 0x90042000, 0x93019202, 0x9804e7ff, 0x42889905, 0xe7ffd210, 0x99049806, 0x92041c4a, 0x58400089,
Pawel Zarembski 0:01f31e923fe2 37 0xffc6f7ff, 0x28009003, 0xe7ffd003, 0x90079803, 0xe7eae003, 0x90072000, 0x9807e7ff, 0xbd80b008,
Pawel Zarembski 0:01f31e923fe2 38 0xb08ab5b0, 0x460c4613, 0x90084605, 0x92069107, 0x90042000, 0x93029003, 0x95009401, 0xf24ce7ff,
Pawel Zarembski 0:01f31e923fe2 39 0xf2c40010, 0x68000000, 0x42082101, 0xe7ffd001, 0xf24ce7f5, 0xf2c40000, 0x68010000, 0x43112240,
Pawel Zarembski 0:01f31e923fe2 40 0x98076001, 0x21031cc0, 0x90074388, 0x9807e7ff, 0xd04c2800, 0xa808e7ff, 0x06407800, 0xd10f2800,
Pawel Zarembski 0:01f31e923fe2 41 0x9807e7ff, 0xd30b2880, 0x2080e7ff, 0x98089005, 0x9a069905, 0x18d29b04, 0xf83ff000, 0xe0229003,
Pawel Zarembski 0:01f31e923fe2 42 0x7800a808, 0x28000640, 0xe7ffd111, 0x28109807, 0xe7ffd30d, 0x210f9807, 0x90054388, 0x99059808,
Pawel Zarembski 0:01f31e923fe2 43 0x9b049a06, 0xf00018d2, 0x9003f828, 0x9807e00a, 0x98089005, 0x9a069905, 0x18d29b04, 0xf8e0f000,
Pawel Zarembski 0:01f31e923fe2 44 0xe7ff9003, 0x9805e7ff, 0x18089908, 0x98059008, 0x18089904, 0x98059004, 0x1a089907, 0x98039007,
Pawel Zarembski 0:01f31e923fe2 45 0xd0032800, 0x2001e7ff, 0xe0039009, 0x2000e7af, 0xe7ff9009, 0xb00a9809, 0xb5b0bdb0, 0x4613b088,
Pawel Zarembski 0:01f31e923fe2 46 0x4605460c, 0x91069007, 0x20009205, 0x98059003, 0x98069004, 0x210f300f, 0x90064388, 0x94019302,
Pawel Zarembski 0:01f31e923fe2 47 0xe7ff9500, 0x0010f24c, 0x0000f2c4, 0x21016800, 0xd0014208, 0xe7f5e7ff, 0x0000f24c, 0x0000f2c4,
Pawel Zarembski 0:01f31e923fe2 48 0x22406801, 0x60014311, 0x210f9807, 0xf24c4388, 0xf2c40104, 0x60080100, 0x000cf24c, 0x0000f2c4,
Pawel Zarembski 0:01f31e923fe2 49 0x60012127, 0x99039804, 0x92031c4a, 0x58400089, 0x0180f24c, 0x0100f2c4, 0x98046008, 0x1c4a9903,
Pawel Zarembski 0:01f31e923fe2 50 0x00899203, 0xf24c5840, 0xf2c40184, 0x60080100, 0x99039804, 0x92031c4a, 0x58400089, 0x0188f24c,
Pawel Zarembski 0:01f31e923fe2 51 0x0100f2c4, 0x98046008, 0x1c4a9903, 0x00899203, 0xf24c5840, 0xf2c4018c, 0x60080100, 0x0010f24c,
Pawel Zarembski 0:01f31e923fe2 52 0x0000f2c4, 0x60012101, 0x38109806, 0xe7ff9006, 0x28009806, 0xe7ffd046, 0xf24ce7ff, 0xf2c400c0,
Pawel Zarembski 0:01f31e923fe2 53 0x68000000, 0x42082130, 0xe7ffd001, 0x9804e7f5, 0x1c4a9903, 0x00899203, 0xf24c5840, 0xf2c40180,
Pawel Zarembski 0:01f31e923fe2 54 0x60080100, 0x99039804, 0x92031c4a, 0x58400089, 0x0184f24c, 0x0100f2c4, 0xe7ff6008, 0x00c0f24c,
Pawel Zarembski 0:01f31e923fe2 55 0x0000f2c4, 0x21c06800, 0xd0014208, 0xe7f5e7ff, 0x99039804, 0x92031c4a, 0x58400089, 0x0188f24c,
Pawel Zarembski 0:01f31e923fe2 56 0x0100f2c4, 0x98046008, 0x1c4a9903, 0x00899203, 0xf24c5840, 0xf2c4018c, 0x60080100, 0x38109806,
Pawel Zarembski 0:01f31e923fe2 57 0xe7b59006, 0xf24ce7ff, 0xf2c40010, 0x68000000, 0x42082101, 0xe7ffd001, 0x2000e7f5, 0xbdb0b008,
Pawel Zarembski 0:01f31e923fe2 58 0xb087b5b0, 0x460c4613, 0x90054605, 0x92039104, 0x1cc09804, 0x43882103, 0x93029004, 0x95009401,
Pawel Zarembski 0:01f31e923fe2 59 0xf24ce7ff, 0xf2c40010, 0x68000000, 0x42082101, 0xe7ffd001, 0xf24ce7f5, 0xf2c40000, 0x68010000,
Pawel Zarembski 0:01f31e923fe2 60 0x43112240, 0xf24c6001, 0xf2c4000c, 0x21210000, 0xe7ff6001, 0x28009804, 0xe7ffd040, 0x21039805,
Pawel Zarembski 0:01f31e923fe2 61 0xf24c4388, 0xf2c40104, 0x60080100, 0x68009803, 0x0108f24c, 0x0100f2c4, 0xf24c6008, 0xf2c40010,
Pawel Zarembski 0:01f31e923fe2 62 0x21010000, 0xf3bf6001, 0xe7ff8f6f, 0x0010f24c, 0x0000f2c4, 0x21016800, 0xd0014208, 0xe7f5e7ff,
Pawel Zarembski 0:01f31e923fe2 63 0x0000f24c, 0x0000f2c4, 0x21406800, 0xd00b4208, 0xf24ce7ff, 0xf2c40000, 0x68010000, 0x43112240,
Pawel Zarembski 0:01f31e923fe2 64 0x20016001, 0xe00c9006, 0x1d009805, 0x98039005, 0x90031d00, 0x1f009804, 0xe7bb9004, 0x90062000,
Pawel Zarembski 0:01f31e923fe2 65 0x9806e7ff, 0xbdb0b007, 0xb087b5b0, 0x460c4613, 0x90054605, 0x92039104, 0x1cc09804, 0x43882103,
Pawel Zarembski 0:01f31e923fe2 66 0x93029004, 0x95009401, 0xf24ce7ff, 0xf2c40010, 0x68000000, 0x42082101, 0xe7ffd001, 0xf24ce7f5,
Pawel Zarembski 0:01f31e923fe2 67 0xf2c40000, 0x68010000, 0x43112240, 0xf24c6001, 0xf2c4000c, 0x21000000, 0xe7ff6001, 0x28009804,
Pawel Zarembski 0:01f31e923fe2 68 0xe7ffd04c, 0x21039805, 0xf24c4388, 0xf2c40104, 0x60080100, 0x0008f24c, 0x0000f2c4, 0x60012100,
Pawel Zarembski 0:01f31e923fe2 69 0x0010f24c, 0x0000f2c4, 0x60012101, 0x8f6ff3bf, 0xf24ce7ff, 0xf2c40010, 0x68000000, 0x42082101,
Pawel Zarembski 0:01f31e923fe2 70 0xe7ffd001, 0xf24ce7f5, 0xf2c40000, 0x68000000, 0x42082140, 0xe7ffd00b, 0x0000f24c, 0x0000f2c4,
Pawel Zarembski 0:01f31e923fe2 71 0x22406801, 0x60014311, 0x90062001, 0xf24ce019, 0xf2c40008, 0x68000000, 0x68099903, 0xd0034288,
Pawel Zarembski 0:01f31e923fe2 72 0x2001e7ff, 0xe00c9006, 0x1d009805, 0x98039005, 0x90031d00, 0x1f009804, 0xe7af9004, 0x90062000,
Pawel Zarembski 0:01f31e923fe2 73 0x9806e7ff, 0xbdb0b007, 0x00000000
Pawel Zarembski 0:01f31e923fe2 74 };
Pawel Zarembski 0:01f31e923fe2 75
Pawel Zarembski 0:01f31e923fe2 76 static const uint32_t M251_LD_4_flash_prog_blob[] = {
Pawel Zarembski 0:01f31e923fe2 77 0xE00ABE00, 0x062D780D, 0x24084068, 0xD3000040, 0x1E644058, 0x1C49D1FA, 0x2A001E52, 0x4770D1F2,
Pawel Zarembski 0:01f31e923fe2 78 0xb089b5b0, 0x460c4613, 0x90074605, 0x92059106, 0x90032064, 0x1000f240, 0x0000f2c4, 0x60012159,
Pawel Zarembski 0:01f31e923fe2 79 0x60012116, 0x60012188, 0x21016800, 0x93024208, 0x95009401, 0xe7ffd103, 0x90082001, 0xf240e044,
Pawel Zarembski 0:01f31e923fe2 80 0xf2c42000, 0x68010000, 0x43112204, 0xf2406001, 0xf2c42004, 0x68010000, 0x60014311, 0x9803e7ff,
Pawel Zarembski 0:01f31e923fe2 81 0x91031e41, 0xd0012800, 0xe7f8e7ff, 0x0000f24c, 0x0000f2c4, 0x222d6801, 0x60014311, 0x011cf24c,
Pawel Zarembski 0:01f31e923fe2 82 0x0100f2c4, 0x2301680a, 0x600a431a, 0x42186800, 0xe7ffd103, 0x90082001, 0xf24ce016, 0xf2c40000,
Pawel Zarembski 0:01f31e923fe2 83 0x68000000, 0x42082120, 0xe7ffd103, 0x90082001, 0xf24ce00a, 0xf2c40000, 0x68010000, 0x43112240,
Pawel Zarembski 0:01f31e923fe2 84 0x20006001, 0xe7ff9008, 0xb0099808, 0xb082bdb0, 0x90014601, 0xe7ff9100, 0x0010f24c, 0x0000f2c4,
Pawel Zarembski 0:01f31e923fe2 85 0x21016800, 0xd0014208, 0xe7f5e7ff, 0x0000f24c, 0x0000f2c4, 0x222d6801, 0x60014391, 0x001cf24c,
Pawel Zarembski 0:01f31e923fe2 86 0x0000f2c4, 0x22016801, 0x60014391, 0xb0022000, 0xb5b04770, 0x4613b086, 0x4605460c, 0x91049005,
Pawel Zarembski 0:01f31e923fe2 87 0x7002a803, 0x93022001, 0x95009401, 0xbdb0b006, 0x460ab085, 0x90034603, 0x7001a802, 0x93009201,
Pawel Zarembski 0:01f31e923fe2 88 0xf24ce7ff, 0xf2c40010, 0x68000000, 0x42082101, 0xe7ffd001, 0xf24ce7f5, 0xf2c40000, 0x68010000,
Pawel Zarembski 0:01f31e923fe2 89 0x43112240, 0xf24c6001, 0xf2c4000c, 0x21220000, 0x98036001, 0x0104f24c, 0x0100f2c4, 0xa8026008,
Pawel Zarembski 0:01f31e923fe2 90 0x28007800, 0xe7ffd108, 0x43c02000, 0x0108f24c, 0x0100f2c4, 0xe0096008, 0x0008f24c, 0x0000f2c4,
Pawel Zarembski 0:01f31e923fe2 91 0x2103f64a, 0x0155f2c0, 0xe7ff6001, 0x0010f24c, 0x0000f2c4, 0x60012101, 0x8f6ff3bf, 0xf24ce7ff,
Pawel Zarembski 0:01f31e923fe2 92 0xf2c40010, 0x68000000, 0x42082101, 0xe7ffd001, 0xf24ce7f5, 0xf2c40000, 0x68000000, 0x42082140,
Pawel Zarembski 0:01f31e923fe2 93 0xe7ffd00b, 0x0000f24c, 0x0000f2c4, 0x22406801, 0x60014311, 0x90042001, 0x2000e002, 0xe7ff9004,
Pawel Zarembski 0:01f31e923fe2 94 0xb0059804, 0xb5804770, 0x4601b084, 0x98029002, 0x0512220f, 0x22014010, 0x42900552, 0xd10b9101,
Pawel Zarembski 0:01f31e923fe2 95 0x9802e7ff, 0x0100f240, 0x71e0f6cf, 0x21011840, 0xff7ef7ff, 0xe0059003, 0x21009802, 0xff78f7ff,
Pawel Zarembski 0:01f31e923fe2 96 0xe7ff9003, 0xb0049803, 0xb580bd80, 0x460ab088, 0x90064603, 0x20009105, 0x92029004, 0xe7ff9301,
Pawel Zarembski 0:01f31e923fe2 97 0x99059804, 0xd2104288, 0x9806e7ff, 0x1c4a9904, 0x00899204, 0xf7ff5840, 0x9003ffc6, 0xd0032800,
Pawel Zarembski 0:01f31e923fe2 98 0x9803e7ff, 0xe0039007, 0x2000e7ea, 0xe7ff9007, 0xb0089807, 0xb5b0bd80, 0x4613b08a, 0x4605460c,
Pawel Zarembski 0:01f31e923fe2 99 0x91079008, 0x20009206, 0x90039004, 0x94019302, 0xe7ff9500, 0x0010f24c, 0x0000f2c4, 0x21016800,
Pawel Zarembski 0:01f31e923fe2 100 0xd0014208, 0xe7f5e7ff, 0x0000f24c, 0x0000f2c4, 0x22406801, 0x60014311, 0x1cc09807, 0x43882103,
Pawel Zarembski 0:01f31e923fe2 101 0xe7ff9007, 0x28009807, 0xe7ffd04c, 0x7800a808, 0x28000640, 0xe7ffd10f, 0x28809807, 0xe7ffd30b,
Pawel Zarembski 0:01f31e923fe2 102 0x90052080, 0x99059808, 0x9b049a06, 0xf00018d2, 0x9003f83f, 0xa808e022, 0x06407800, 0xd1112800,
Pawel Zarembski 0:01f31e923fe2 103 0x9807e7ff, 0xd30d2810, 0x9807e7ff, 0x4388210f, 0x98089005, 0x9a069905, 0x18d29b04, 0xf828f000,
Pawel Zarembski 0:01f31e923fe2 104 0xe00a9003, 0x90059807, 0x99059808, 0x9b049a06, 0xf00018d2, 0x9003f8e0, 0xe7ffe7ff, 0x99089805,
Pawel Zarembski 0:01f31e923fe2 105 0x90081808, 0x99049805, 0x90041808, 0x99079805, 0x90071a08, 0x28009803, 0xe7ffd003, 0x90092001,
Pawel Zarembski 0:01f31e923fe2 106 0xe7afe003, 0x90092000, 0x9809e7ff, 0xbdb0b00a, 0xb088b5b0, 0x460c4613, 0x90074605, 0x92059106,
Pawel Zarembski 0:01f31e923fe2 107 0x90032000, 0x90049805, 0x300f9806, 0x4388210f, 0x93029006, 0x95009401, 0xf24ce7ff, 0xf2c40010,
Pawel Zarembski 0:01f31e923fe2 108 0x68000000, 0x42082101, 0xe7ffd001, 0xf24ce7f5, 0xf2c40000, 0x68010000, 0x43112240, 0x98076001,
Pawel Zarembski 0:01f31e923fe2 109 0x4388210f, 0x0104f24c, 0x0100f2c4, 0xf24c6008, 0xf2c4000c, 0x21270000, 0x98046001, 0x1c4a9903,
Pawel Zarembski 0:01f31e923fe2 110 0x00899203, 0xf24c5840, 0xf2c40180, 0x60080100, 0x99039804, 0x92031c4a, 0x58400089, 0x0184f24c,
Pawel Zarembski 0:01f31e923fe2 111 0x0100f2c4, 0x98046008, 0x1c4a9903, 0x00899203, 0xf24c5840, 0xf2c40188, 0x60080100, 0x99039804,
Pawel Zarembski 0:01f31e923fe2 112 0x92031c4a, 0x58400089, 0x018cf24c, 0x0100f2c4, 0xf24c6008, 0xf2c40010, 0x21010000, 0x98066001,
Pawel Zarembski 0:01f31e923fe2 113 0x90063810, 0x9806e7ff, 0xd0462800, 0xe7ffe7ff, 0x00c0f24c, 0x0000f2c4, 0x21306800, 0xd0014208,
Pawel Zarembski 0:01f31e923fe2 114 0xe7f5e7ff, 0x99039804, 0x92031c4a, 0x58400089, 0x0180f24c, 0x0100f2c4, 0x98046008, 0x1c4a9903,
Pawel Zarembski 0:01f31e923fe2 115 0x00899203, 0xf24c5840, 0xf2c40184, 0x60080100, 0xf24ce7ff, 0xf2c400c0, 0x68000000, 0x420821c0,
Pawel Zarembski 0:01f31e923fe2 116 0xe7ffd001, 0x9804e7f5, 0x1c4a9903, 0x00899203, 0xf24c5840, 0xf2c40188, 0x60080100, 0x99039804,
Pawel Zarembski 0:01f31e923fe2 117 0x92031c4a, 0x58400089, 0x018cf24c, 0x0100f2c4, 0x98066008, 0x90063810, 0xe7ffe7b5, 0x0010f24c,
Pawel Zarembski 0:01f31e923fe2 118 0x0000f2c4, 0x21016800, 0xd0014208, 0xe7f5e7ff, 0xb0082000, 0xb5b0bdb0, 0x4613b087, 0x4605460c,
Pawel Zarembski 0:01f31e923fe2 119 0x91049005, 0x98049203, 0x21031cc0, 0x90044388, 0x94019302, 0xe7ff9500, 0x0010f24c, 0x0000f2c4,
Pawel Zarembski 0:01f31e923fe2 120 0x21016800, 0xd0014208, 0xe7f5e7ff, 0x0000f24c, 0x0000f2c4, 0x22406801, 0x60014311, 0x000cf24c,
Pawel Zarembski 0:01f31e923fe2 121 0x0000f2c4, 0x60012121, 0x9804e7ff, 0xd0402800, 0x9805e7ff, 0x43882103, 0x0104f24c, 0x0100f2c4,
Pawel Zarembski 0:01f31e923fe2 122 0x98036008, 0xf24c6800, 0xf2c40108, 0x60080100, 0x0010f24c, 0x0000f2c4, 0x60012101, 0x8f6ff3bf,
Pawel Zarembski 0:01f31e923fe2 123 0xf24ce7ff, 0xf2c40010, 0x68000000, 0x42082101, 0xe7ffd001, 0xf24ce7f5, 0xf2c40000, 0x68000000,
Pawel Zarembski 0:01f31e923fe2 124 0x42082140, 0xe7ffd00b, 0x0000f24c, 0x0000f2c4, 0x22406801, 0x60014311, 0x90062001, 0x9805e00c,
Pawel Zarembski 0:01f31e923fe2 125 0x90051d00, 0x1d009803, 0x98049003, 0x90041f00, 0x2000e7bb, 0xe7ff9006, 0xb0079806, 0xb5b0bdb0,
Pawel Zarembski 0:01f31e923fe2 126 0x4613b087, 0x4605460c, 0x91049005, 0x98049203, 0x21031cc0, 0x90044388, 0x94019302, 0xe7ff9500,
Pawel Zarembski 0:01f31e923fe2 127 0x0010f24c, 0x0000f2c4, 0x21016800, 0xd0014208, 0xe7f5e7ff, 0x0000f24c, 0x0000f2c4, 0x22406801,
Pawel Zarembski 0:01f31e923fe2 128 0x60014311, 0x000cf24c, 0x0000f2c4, 0x60012100, 0x9804e7ff, 0xd04c2800, 0x9805e7ff, 0x43882103,
Pawel Zarembski 0:01f31e923fe2 129 0x0104f24c, 0x0100f2c4, 0xf24c6008, 0xf2c40008, 0x21000000, 0xf24c6001, 0xf2c40010, 0x21010000,
Pawel Zarembski 0:01f31e923fe2 130 0xf3bf6001, 0xe7ff8f6f, 0x0010f24c, 0x0000f2c4, 0x21016800, 0xd0014208, 0xe7f5e7ff, 0x0000f24c,
Pawel Zarembski 0:01f31e923fe2 131 0x0000f2c4, 0x21406800, 0xd00b4208, 0xf24ce7ff, 0xf2c40000, 0x68010000, 0x43112240, 0x20016001,
Pawel Zarembski 0:01f31e923fe2 132 0xe0199006, 0x0008f24c, 0x0000f2c4, 0x99036800, 0x42886809, 0xe7ffd003, 0x90062001, 0x9805e00c,
Pawel Zarembski 0:01f31e923fe2 133 0x90051d00, 0x1d009803, 0x98049003, 0x90041f00, 0x2000e7af, 0xe7ff9006, 0xb0079806, 0x0000bdb0,
Pawel Zarembski 0:01f31e923fe2 134 0x00000000
Pawel Zarembski 0:01f31e923fe2 135 };
Pawel Zarembski 0:01f31e923fe2 136
Pawel Zarembski 0:01f31e923fe2 137 /**
Pawel Zarembski 0:01f31e923fe2 138 * List of start and size for each size of flash sector - even indexes are start, odd are size
Pawel Zarembski 0:01f31e923fe2 139 * The size will apply to all sectors between the listed address and the next address
Pawel Zarembski 0:01f31e923fe2 140 * in the list.
Pawel Zarembski 0:01f31e923fe2 141 * The last pair in the list will have sectors starting at that address and ending
Pawel Zarembski 0:01f31e923fe2 142 * at address flash_start + flash_size.
Pawel Zarembski 0:01f31e923fe2 143 */
Pawel Zarembski 0:01f31e923fe2 144 static const sector_info_t sectors_info[] = {
Pawel Zarembski 0:01f31e923fe2 145 { 0x00000000, 0x00000200 },
Pawel Zarembski 0:01f31e923fe2 146 { 0x00100000, 0x00000200 },
Pawel Zarembski 0:01f31e923fe2 147 };
Pawel Zarembski 0:01f31e923fe2 148
Pawel Zarembski 0:01f31e923fe2 149 static const program_target_t M251_AP_256_flash = {
Pawel Zarembski 0:01f31e923fe2 150 0x20000021, // Init
Pawel Zarembski 0:01f31e923fe2 151 0x200000d7, // UnInit
Pawel Zarembski 0:01f31e923fe2 152 0x0, // EraseChip
Pawel Zarembski 0:01f31e923fe2 153 0x200001f1, // EraseSector
Pawel Zarembski 0:01f31e923fe2 154 0x20000281, // ProgramPage
Pawel Zarembski 0:01f31e923fe2 155 0x200005e9, // Verify
Pawel Zarembski 0:01f31e923fe2 156
Pawel Zarembski 0:01f31e923fe2 157 // BKPT : start of blob + 1
Pawel Zarembski 0:01f31e923fe2 158 // RSB : blob start + header + rw data offset
Pawel Zarembski 0:01f31e923fe2 159 // RSP : stack pointer
Pawel Zarembski 0:01f31e923fe2 160 {
Pawel Zarembski 0:01f31e923fe2 161 0x20000001,
Pawel Zarembski 0:01f31e923fe2 162 0x200006e8,
Pawel Zarembski 0:01f31e923fe2 163 0x20000900
Pawel Zarembski 0:01f31e923fe2 164 },
Pawel Zarembski 0:01f31e923fe2 165
Pawel Zarembski 0:01f31e923fe2 166 0x20000000 + 0x00000A00, // mem buffer location
Pawel Zarembski 0:01f31e923fe2 167 0x20000000, // location to write prog_blob in target RAM
Pawel Zarembski 0:01f31e923fe2 168 sizeof(M251_AP_256_flash_prog_blob), // prog_blob size
Pawel Zarembski 0:01f31e923fe2 169 M251_AP_256_flash_prog_blob, // address of prog_blob
Pawel Zarembski 0:01f31e923fe2 170 0x00000200 // ram_to_flash_bytes_to_be_written
Pawel Zarembski 0:01f31e923fe2 171 };
Pawel Zarembski 0:01f31e923fe2 172
Pawel Zarembski 0:01f31e923fe2 173 static const program_target_t M251_LD_4_flash = {
Pawel Zarembski 0:01f31e923fe2 174 0x20000021, // Init
Pawel Zarembski 0:01f31e923fe2 175 0x200000ef, // UnInit
Pawel Zarembski 0:01f31e923fe2 176 0x0, // EraseChip
Pawel Zarembski 0:01f31e923fe2 177 0x20000227, // EraseSector
Pawel Zarembski 0:01f31e923fe2 178 0x200002b7, // ProgramPage
Pawel Zarembski 0:01f31e923fe2 179 0x2000061f, // Verify
Pawel Zarembski 0:01f31e923fe2 180
Pawel Zarembski 0:01f31e923fe2 181 // BKPT : start of blob + 1
Pawel Zarembski 0:01f31e923fe2 182 // RSB : blob start + header + rw data offset
Pawel Zarembski 0:01f31e923fe2 183 // RSP : stack pointer
Pawel Zarembski 0:01f31e923fe2 184 {
Pawel Zarembski 0:01f31e923fe2 185 0x20000001,
Pawel Zarembski 0:01f31e923fe2 186 0x20000720,
Pawel Zarembski 0:01f31e923fe2 187 0x20000a00
Pawel Zarembski 0:01f31e923fe2 188 },
Pawel Zarembski 0:01f31e923fe2 189
Pawel Zarembski 0:01f31e923fe2 190 0x20000000 + 0x00000A00, // mem buffer location
Pawel Zarembski 0:01f31e923fe2 191 0x20000000, // location to write prog_blob in target RAM
Pawel Zarembski 0:01f31e923fe2 192 sizeof(M251_LD_4_flash_prog_blob), // prog_blob size
Pawel Zarembski 0:01f31e923fe2 193 M251_LD_4_flash_prog_blob, // address of prog_blob
Pawel Zarembski 0:01f31e923fe2 194 0x00000200 // ram_to_flash_bytes_to_be_written
Pawel Zarembski 0:01f31e923fe2 195 };