Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
flash_blob.c
00001 /* Flash OS Routines (Automagically Generated) 00002 * Copyright (c) 2009-2019 ARM Limited 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #include "flash_blob.h" 00017 00018 static const uint32_t _flash_prog_blob[] = { 00019 0xE00ABE00, 0x062D780D, 0x24084068, 0xD3000040, 0x1E644058, 0x1C49D1FA, 0x2A001E52, 0x4770D1F2, 00020 0x8f4ff3bf, 0x48584770, 0x49586800, 0x0d000500, 0xd0001840, 0x47702001, 0x6a004855, 0x0fc00280, 00021 0xb5004770, 0xf7ff4602, 0x2801ffee, 0xf7ffd108, 0x2801fff3, 0x484fd104, 0xd3014282, 0xbd002001, 00022 0xbd002000, 0x4602b500, 0xffddf7ff, 0xd0022801, 0x0d8002d0, 0x4948bd00, 0x40080ad0, 0xd5f90311, 00023 0x300130ff, 0x4842bd00, 0x60814944, 0x60814944, 0x60012100, 0x61014943, 0x03c06a00, 0x4843d406, 00024 0x60014941, 0x60412106, 0x60814941, 0x47702000, 0x49372001, 0x614807c0, 0x47702000, 0x47702001, 00025 0x49384833, 0x13c16101, 0x69416141, 0x04122201, 0x61414311, 0x4a354937, 0x6011e000, 0x03db6903, 00026 0x2100d4fb, 0x46086141, 0xb5104770, 0xf7ff4604, 0x4603ffa8, 0xf7ff4620, 0x4925ffb5, 0x610c4c29, 00027 0x02d800c2, 0x43021c92, 0x6948614a, 0x04122201, 0x61484310, 0x8f4ff3bf, 0x4a244826, 0x6010e000, 00028 0x03db690b, 0x2000d4fb, 0x69086148, 0xd0014020, 0x2001610c, 0xb5f0bd10, 0x4d151dc9, 0x4f1908c9, 00029 0x612f00c9, 0x616b2300, 0xe0184c1a, 0x616b2301, 0x60036813, 0x60436853, 0x8f4ff3bf, 0xe0004b13, 00030 0x692e601c, 0xd4fb03f6, 0x616b2300, 0x423b692b, 0x612fd002, 0xbdf02001, 0x39083008, 0x29003208, 00031 0x2000d1e4, 0x0000bdf0, 0xe0042000, 0xfffffbcb, 0x40022000, 0x08080000, 0x000002ff, 0x45670123, 00032 0xcdef89ab, 0x0000c3fa, 0x00005555, 0x40003000, 0x00000fff, 0x0000aaaa, 0x00000000 00033 }; 00034 00035 // Start address of flash 00036 static const uint32_t flash_start = 0x08000000; 00037 // Size of flash 00038 static const uint32_t flash_size = 0x00100000; 00039 00040 /** 00041 * List of start and size for each size of flash sector 00042 * The size will apply to all sectors between the listed address and the next address 00043 * in the list. 00044 * The last pair in the list will have sectors starting at that address and ending 00045 * at address start + size. 00046 */ 00047 static const sector_info_t sectors_info[] = { 00048 {0x08000000, 0x00000800}, 00049 }; 00050 00051 static const program_target_t flash = { 00052 0x20000087, // Init 00053 0x200000b1, // UnInit 00054 0x200000c1, // EraseChip 00055 0x200000eb, // EraseSector 00056 0x20000137, // ProgramPage 00057 0x0, // Verify 00058 00059 // BKPT : start of blob + 1 00060 // RSB : blob start + header + rw data offset 00061 // RSP : stack pointer 00062 { 00063 0x20000001, 00064 0x200001b8, 00065 0x20000800 00066 }, 00067 00068 0x20000000 + 0x00000A00, // mem buffer location 00069 0x20000000, // location to write prog_blob in target RAM 00070 sizeof(_flash_prog_blob), // prog_blob size 00071 _flash_prog_blob, // address of prog_blob 00072 0x00000400 // ram_to_flash_bytes_to_be_written 00073 };
Generated on Tue Jul 12 2022 15:37:16 by
