From f2d0507cddedd071a39f5f60e0b478cb4324b6d2 Mon Sep 17 00:00:00 2001 From: Mathias Brossard Date: Sat, 5 Aug 2023 17:46:06 -0500 Subject: [PATCH] NXP: Remove FRDM-K32W042 --- projects.yaml | 4 - records/board/frdmk32w042.yaml | 7 - source/board/frdmk32w042.c | 36 --- source/family/freescale/k32w042/flash_blob.c | 321 ------------------- source/family/freescale/k32w042/target.c | 42 --- test/info.py | 4 - 6 files changed, 414 deletions(-) delete mode 100644 records/board/frdmk32w042.yaml delete mode 100644 source/board/frdmk32w042.c delete mode 100644 source/family/freescale/k32w042/flash_blob.c delete mode 100644 source/family/freescale/k32w042/target.c diff --git a/projects.yaml b/projects.yaml index b0e630bb8..58de0b43a 100644 --- a/projects.yaml +++ b/projects.yaml @@ -330,10 +330,6 @@ projects: - *module_if - *module_hic_k26f - records/board/frdmk32l3a6.yaml - k26f_frdmk32w042_if: - - *module_if - - *module_hic_k26f - - records/board/frdmk32w042.yaml kl26z_artemis_dk_if: - *module_if - *module_hic_kl26z diff --git a/records/board/frdmk32w042.yaml b/records/board/frdmk32w042.yaml deleted file mode 100644 index e82491d00..000000000 --- a/records/board/frdmk32w042.yaml +++ /dev/null @@ -1,7 +0,0 @@ -common: - sources: - board: - - source/board/frdmk32w042.c - family: - - source/family/freescale/k32w042/target.c - - source/family/freescale/target_reset_k32_series.c diff --git a/source/board/frdmk32w042.c b/source/board/frdmk32w042.c deleted file mode 100644 index e852d6918..000000000 --- a/source/board/frdmk32w042.c +++ /dev/null @@ -1,36 +0,0 @@ -/** - * @file frdmk32w042.c - * @brief board ID for the NXP FRDM-K32W042 board - * - * DAPLink Interface Firmware - * Copyright (c) 2017-2019, ARM Limited, All Rights Reserved - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "target_board.h" -#include "target_family.h" - -const board_info_t g_board_info = { - .info_version = kBoardInfoVersion, - .board_id = "0225", - .family_id = kNXP_KinetisK32_FamilyID, - .flags = kEnablePageErase, - .daplink_url_name = "PRODINFOHTM", - .daplink_drive_name = "K32W042", - .daplink_target_url = "http://www.nxp.com/frdm-k32w042", - .target_cfg = &target_device, - .board_vendor = "NXP", - .board_name = "FRDM-K32W042", -}; diff --git a/source/family/freescale/k32w042/flash_blob.c b/source/family/freescale/k32w042/flash_blob.c deleted file mode 100644 index 41132f6e3..000000000 --- a/source/family/freescale/k32w042/flash_blob.c +++ /dev/null @@ -1,321 +0,0 @@ -/* Flash OS Routines (Automagically Generated) - * Copyright (c) 2009-2015 ARM Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// Primary Flash Blob -static const uint32_t P1024_4KB_SEC_flash_prog_blob[] = { - 0xE00ABE00, 0x062D780D, 0x24084068, 0xD3000040, 0x1E644058, 0x1C49D1FA, 0x2A001E52, 0x4770D1F2, - 0x4605b570, 0x4616460c, 0xcc0fe002, 0x3e10c50f, 0xd2fa2e10, 0xd3022e08, 0xc503cc03, 0x2e043e08, - 0xcc01d307, 0x1f36c501, 0x7821e003, 0x1c647029, 0x1e761c6d, 0xbd70d2f9, 0x2007b510, 0x07404934, - 0x48346048, 0x21306802, 0x6002430a, 0x430a6842, 0x48316042, 0x28006840, 0x4830d01a, 0x4a306b41, - 0x63414311, 0x4b2f4830, 0x49306043, 0x4a306081, 0x48306002, 0x60816043, 0x492f6002, 0x44492000, - 0x46087248, 0xf85ef000, 0xd0002800, 0xbd102001, 0x6b41482a, 0xe7e3220a, 0x47702000, 0x4826b51c, - 0x44484927, 0xf8c7f000, 0xd1142800, 0x21004822, 0xf0004448, 0x2800fad4, 0x20ffd10d, 0x900043c0, - 0x90011200, 0x2302481c, 0x2180466a, 0xf0004448, 0x2800f9d0, 0x2001d000, 0x4601bd1c, 0xb5104816, - 0x4b172201, 0x44480312, 0xf901f000, 0xd0002800, 0xbd102001, 0x08cb1dc9, 0x480f4601, 0x00dbb510, - 0xf0004448, 0x2800f96e, 0x2001d000, 0x0000bd10, 0x4002b000, 0x40001400, 0x40001000, 0xf0003000, - 0x00000a0a, 0xd928c520, 0x4002a000, 0x0000ffff, 0x00002920, 0x41026000, 0x00000004, 0xe0080000, - 0x6b65666b, 0x2800b5f0, 0x7a47d021, 0x4efe49fd, 0x158b447e, 0x4afd148d, 0x68c92400, 0xd0182f01, - 0x290f0f09, 0x0049d02c, 0x02895a71, 0x60416004, 0x72012102, 0x7b1160c5, 0x6143408b, 0x61047b51, - 0x21096181, 0x624506c9, 0x20006201, 0x2004bdf0, 0x0109bdf0, 0x290f0f09, 0x0049d00f, 0x02895a71, - 0x21016041, 0x60010609, 0x72012101, 0x60c102c9, 0x408b7b91, 0x7bd16143, 0x2101e7e1, 0xe7ef0489, - 0x05092101, 0x2800e7d2, 0x6101d002, 0x47702000, 0x47702004, 0xd0012800, 0xe0002000, 0x49dc2003, - 0x0100680a, 0x600a4302, 0x8f6ff3bf, 0x8f4ff3bf, 0x4302684a, 0xf3bf604a, 0xf3bf8f6f, 0x47708f4f, - 0x2101b510, 0xfd20f000, 0x48d0bd10, 0x38202170, 0x21807001, 0x78017001, 0xd5fc0609, 0x06817800, - 0x2067d501, 0x06c14770, 0x2068d501, 0x07c04770, 0x2069d0fc, 0xb5704770, 0xd0150004, 0x48c54ac3, - 0x60503a20, 0xf0004608, 0x2800fd0a, 0x2100d10b, 0xf0004620, 0x4620fcf9, 0xffd7f7ff, 0x46204605, - 0xffcef7ff, 0xbd704628, 0xbd702004, 0x2800b510, 0x1e5bd006, 0xd1014219, 0xd003421a, 0xbd102065, - 0xbd102004, 0x428b6803, 0x6840d806, 0x18181889, 0xd3014288, 0xbd102000, 0xbd102066, 0x460eb570, - 0x46140005, 0x2c00d014, 0x2120d012, 0xf0004610, 0x6828fd0c, 0x60261a36, 0x606068e8, 0x68687a29, - 0xfd16f000, 0x7a6960a0, 0x29012008, 0xe005d002, 0xbd702004, 0x05c92101, 0x60211871, 0x61212110, - 0x616160e0, 0x200461a0, 0x200061e0, 0xb5ffbd70, 0x4616b089, 0x460d461c, 0x9809466a, 0xffcef7ff, - 0x46294632, 0x98099b04, 0xffb0f7ff, 0xd1302800, 0xf0004620, 0x0005fca4, 0x9c00d12b, 0x19a69f01, - 0x46391e76, 0xf0004630, 0x2900fce3, 0x1c40d002, 0x1e464378, 0x98092100, 0xfc86f000, 0x0221e013, - 0x0a092009, 0x18090600, 0x38204880, 0x98096041, 0xff5bf7ff, 0x98094605, 0x28006900, 0x4780d000, - 0xd1022d00, 0x42b419e4, 0x9809d9e9, 0xff48f7ff, 0xb00d4628, 0xb570bdf0, 0xd0150004, 0x48764a73, - 0x60503a20, 0xf0004608, 0x2800fc6a, 0x2100d10b, 0xf0004620, 0x4620fc59, 0xff37f7ff, 0x46204605, - 0xff2ef7ff, 0xbd704628, 0xbd702004, 0x0004b570, 0x4a66d015, 0x3a204869, 0x46086050, 0xfc4ff000, - 0xd10b2800, 0x46202100, 0xfc3ef000, 0xf7ff4620, 0x4605ff1c, 0xf7ff4620, 0x4628ff13, 0x2004bd70, - 0xb5ffbd70, 0x461eb089, 0x460d0014, 0x466ad011, 0xf7ff9809, 0x4632ff53, 0x9b034629, 0xf7ff9809, - 0x0007ff35, 0x2100d1b5, 0x98099d00, 0xfc1cf000, 0x2004e028, 0x484de7ad, 0x3820cc02, 0x99036081, - 0xd0022904, 0xd0072908, 0x0229e00e, 0x0a092203, 0x18890652, 0xe0076041, 0x60c1cc02, 0x22070229, - 0x06120a09, 0x60411889, 0xf7ff9809, 0x4607fede, 0x69009809, 0xd0002800, 0x2f004780, 0x9803d104, - 0x1a361945, 0xd1d62e00, 0xf7ff9809, 0x4638fec9, 0xb570e77f, 0xd0190004, 0xd0172a00, 0x49380608, - 0x18400a00, 0x39204931, 0x68106048, 0x68506088, 0x210060c8, 0xf0004620, 0x4620fbd7, 0xfeb5f7ff, - 0x46204605, 0xfeacf7ff, 0xbd704628, 0xbd702004, 0xb08bb5ff, 0x460c980d, 0xd0152800, 0x980b466a, - 0xfeecf7ff, 0x9b054621, 0x980b9a0e, 0xfecef7ff, 0x28009008, 0x9801d109, 0x9e009009, 0x980b2100, - 0xfbb2f000, 0xe05e980e, 0xb00f2004, 0x9909bdf0, 0x42494270, 0x42404008, 0x42b02400, 0x9909d101, - 0x990e1840, 0x42811989, 0x1b85d901, 0x9d0ee040, 0x2701e03e, 0x42bd02bf, 0x462fd800, 0x980d08a1, - 0x18090089, 0x463a2009, 0xf7ff06c0, 0x1930fd69, 0x210b0200, 0x06090a00, 0x48041841, 0x60413820, - 0xe00f4638, 0x40026040, 0x00000d1c, 0x40023020, 0x40001400, 0x44ffffff, 0x49ffffff, 0x4bffffff, - 0x4300ffff, 0xf0009905, 0x49fffbc3, 0x18410400, 0x608148fe, 0xf7ff980b, 0x9008fe48, 0x6900980b, - 0xd0002800, 0x98084780, 0xd10e2800, 0x19e41bed, 0xd1be2d00, 0x980d08a1, 0x18080089, 0x980e900d, - 0x1b001936, 0x2800900e, 0x980bd1a1, 0xfe28f7ff, 0xe79a9808, 0x4614b570, 0xd0102800, 0xd00e2c00, - 0x4aeb0609, 0x4de90a09, 0x60691889, 0xfe1df7ff, 0xd1032800, 0x602168a9, 0x606168e9, 0x2004bd70, - 0x2800bd70, 0x2900d00e, 0x48e0d00c, 0x07827880, 0x2a020f92, 0x0980d008, 0xd0072802, 0x70082002, - 0x47702000, 0x47702004, 0xe7f82000, 0xe7f62001, 0x460cb570, 0xd0200006, 0xd01e2c00, 0x20004dd3, - 0x078978a9, 0x29020f89, 0x48d2d016, 0x46206068, 0xfb4df000, 0x0a00ba00, 0x020078e1, 0x60a84308, - 0xf0001d20, 0xba00fb44, 0x79e10a00, 0x43080200, 0x463060e8, 0xfdd9f7ff, 0x2004bd70, 0xb510bd70, - 0xd0072800, 0x04094ac4, 0x4ac01889, 0xf7ff6051, 0xbd10fdcc, 0xbd102004, 0xb089b5ff, 0x460d4614, - 0x9809466a, 0xfe0af7ff, 0x46294622, 0x98099b05, 0xfdecf7ff, 0xd12f2800, 0x4629466a, 0xf7ff9809, - 0x9d00fdfd, 0x90089802, 0x42404269, 0x424f4001, 0xd10142af, 0x183f9808, 0xd01c2c00, 0x42a61b7e, - 0x4626d900, 0x99054630, 0xfb12f000, 0x22010229, 0x06120a09, 0x49a5188a, 0x9a0c604a, 0x02120400, - 0x30ff4310, 0x98096088, 0xfd8ff7ff, 0xd1032800, 0x19ad1ba4, 0x2000e7de, 0xb5ffe63b, 0x9f12b089, - 0x4616001d, 0xd010460c, 0x9809466a, 0xfdc6f7ff, 0x46214632, 0x98099b07, 0xfda8f7ff, 0xd1052800, - 0x06394a96, 0x9c00188f, 0x2004e021, 0x0221e621, 0x0a092001, 0x18090640, 0x6041488c, 0x68296087, - 0x980960c1, 0xfd61f7ff, 0xd0092800, 0x29009913, 0x600cd000, 0x29009914, 0x2200d0e8, 0xe608600a, - 0x1a769907, 0x00890889, 0x9907194d, 0x2e00190c, 0xe5fed1dd, 0x2800b510, 0x4a81d007, 0x18890409, - 0x60514a7a, 0xfd41f7ff, 0x2004bd10, 0xb5f0bd10, 0x001db0d5, 0x460c4616, 0xd0134607, 0xf7ff2308, - 0x2800fd65, 0x2f00d10f, 0x2040d00f, 0x90022100, 0x03002005, 0x90019100, 0xd1040008, 0x468c19a1, - 0xe00c2100, 0xb0552004, 0x2104bdf0, 0x9a01e7f4, 0x434a9b00, 0x008e189b, 0x5193aa03, 0x9a021c49, - 0xd2f4428a, 0x49612200, 0xe034ab44, 0xd2042a08, 0x40d67f0e, 0x0ff607f6, 0x4616e02b, 0x2e083e08, - 0x7f4fd201, 0x4616e022, 0x2e083e10, 0x7f8fd201, 0x4616e01c, 0x2e083e18, 0x7fcfd201, 0x2a28e016, - 0x7e0fd203, 0x3e204616, 0x2a30e010, 0x7e4fd203, 0x3e284616, 0x2a38e00a, 0x7e8fd203, 0x3e304616, - 0x2a40e004, 0x7ecfd20a, 0x3e384616, 0x07fe40f7, 0x549e0ff6, 0x9e021c52, 0xd8c74296, 0x460e2100, - 0xe012460a, 0xaf03008b, 0x42a758ff, 0xaf03d80c, 0x685b19db, 0xd90742a3, 0x5c5bab44, 0x2b001c76, - 0x1c52d100, 0x191c9b01, 0x45641c49, 0x2a00d3ea, 0x42b2d003, 0x2101d103, 0x2100e002, 0x2102e000, - 0xe7907029, 0xb085b5ff, 0x4617001e, 0xd025460c, 0x98052308, 0xfcdaf7ff, 0xd1202800, 0x28009805, - 0x2100d01f, 0x91019100, 0x68019102, 0x69419100, 0x69809101, 0x20009002, 0x28009003, 0x9801d10f, - 0x424019e7, 0x42794602, 0x40224008, 0x25001880, 0x99014240, 0xf9fcf000, 0xe02d9004, 0xb0092004, - 0x2004bdf0, 0x9800e7e8, 0x1a209901, 0xf9f0f000, 0x7a499905, 0xd0042901, 0xd2102820, 0x6b494913, - 0x2808e013, 0x4911d203, 0x79093140, 0x9902e00d, 0xd9134281, 0x3140490d, 0x38087949, 0x9902e005, - 0xd90b4281, 0x6b094909, 0x22013820, 0x438a4082, 0x1c6dd000, 0x19049801, 0xd3d442bc, 0xd0132d00, - 0x42859804, 0xe00dd212, 0x0000ffff, 0x40023000, 0x4100ffff, 0x45ffffff, 0x4000ffff, 0x00ffffff, - 0x4a00ffff, 0xe0022002, 0xe0002000, 0x70302001, 0xe7b49803, 0x4614b510, 0xd00a2800, 0xd0082c00, - 0xf000000b, 0x080afa52, 0x16140d0a, 0x1e1c1a18, 0x20042220, 0x68c0bd10, 0x6840e000, 0xe0046010, - 0x68407a01, 0xf994f000, 0x20006020, 0x7a00bd10, 0x6800e7f4, 0x2001e7f2, 0x6940e7f0, 0x6980e7ee, - 0x6a00e7ec, 0x6a40e7ea, 0x206ae7e8, 0x4603bd10, 0x2000b510, 0xd0052b00, 0xd0222906, 0x2905dc04, - 0xe01ed80f, 0xbd102004, 0xd01a2909, 0x2907dc04, 0x2908d017, 0xe014d105, 0x2920b2d4, 0x2921d003, - 0x206ad007, 0x2a00bd10, 0x2a01d001, 0x725cd105, 0x2a00bd10, 0x2a01d003, 0x2077d001, 0x729cbd10, - 0x2076bd10, 0xb570bd10, 0x2800461c, 0x2c00d005, 0x070bd003, 0x2065d003, 0x2004bd70, 0x6843bd70, - 0x428b085b, 0x2301d904, 0x1acb029b, 0xd8012b0f, 0xbd702075, 0xd00c2a01, 0xd00a2a02, 0xd0082a04, - 0xd0062a08, 0xd0042a10, 0x2b002304, 0x4618d003, 0x2300bd70, 0x0209e7f9, 0x0a092323, 0x4d73065b, - 0x606918c9, 0x4a720611, 0x60a91889, 0xfbadf7ff, 0x70217aa9, 0x70617a69, 0x70a17a29, 0xb5f0bd70, - 0x4616b087, 0x4605460c, 0x210322ff, 0xf0004668, 0x466bf8d5, 0x46212208, 0xf7ff4628, 0x2800ffb4, - 0x2e01d111, 0x4669d008, 0x000b7809, 0xf9adf000, 0x40151206, 0x580a4f49, 0x78004668, 0xd0042805, - 0xd0042800, 0xb0072074, 0x2000bdf0, 0x466be7fb, 0xe0382210, 0x2201466b, 0x2304e035, 0x21a1aa01, - 0xf7ff4628, 0x2800fd47, 0x9801d11d, 0xb2872304, 0x81874668, 0x21a2aa01, 0xf7ff4628, 0x2800fd3b, - 0x4669d111, 0x81c89801, 0xaa012304, 0x462821a3, 0xfd30f7ff, 0xd1062800, 0x9901466a, 0x013982d1, - 0xd000428c, 0x28002075, 0x466bd1cd, 0xe00a2202, 0x4b406868, 0x19010840, 0x46282210, 0xfbb7f7ff, - 0x466be005, 0x46212204, 0xf7ff4628, 0x2800ff5c, 0x4669d1b9, 0x29047809, 0x2e00d19b, 0xe7b2d199, - 0xe7b02004, 0xd00e2800, 0x680a4830, 0x680a61c2, 0x429a69c3, 0x684ad105, 0x68496182, 0x42816980, - 0x2069d003, 0x20044770, 0x20004770, 0x28004770, 0x2900d008, 0x4825d006, 0x600a69c2, 0x60486980, - 0x47702000, 0x47702004, 0x7804b510, 0x23204922, 0x2c012210, 0x680cd00a, 0x600c439c, 0x28007840, - 0xd00b6808, 0x60084310, 0xbd102000, 0x28007840, 0x6808d002, 0xe7f64318, 0xbd102078, 0xe7f24390, - 0x2100b510, 0x70417001, 0x68094913, 0x460c2320, 0x2210401c, 0x2c002301, 0x7003d001, 0x4211e001, - 0x7043d000, 0xbd102000, 0x2901b500, 0x2900d005, 0x2000d102, 0xfabef7ff, 0x2001bd00, 0x4905e7fa, - 0xd0014288, 0x4770206b, 0x47702000, 0x40023000, 0x00ffffff, 0x6b65666b, 0x40001400, 0xb510b2d2, - 0x189a0213, 0x189a0413, 0xf80ef000, 0xe001bd10, 0x1f09c004, 0xd2fb2904, 0xd501078b, 0x1c808002, - 0xd00007c9, 0x47707002, 0xd00b2900, 0xd00207c3, 0x1c407002, 0x29021e49, 0x0783d304, 0x8002d502, - 0x1e891c80, 0x2200e7e3, 0x2200e7ee, 0x7803e7df, 0x461978c2, 0x06127843, 0x4319021b, 0x78c07883, - 0x4319041b, 0x02094311, 0x06000a09, 0x47704308, 0x09032200, 0xd32c428b, 0x428b0a03, 0x2300d311, - 0xe04e469c, 0x430b4603, 0x2200d43c, 0x428b0843, 0x0903d331, 0xd31c428b, 0x428b0a03, 0x4694d301, - 0x09c3e03f, 0xd301428b, 0x1ac001cb, 0x09834152, 0xd301428b, 0x1ac0018b, 0x09434152, 0xd301428b, - 0x1ac0014b, 0x09034152, 0xd301428b, 0x1ac0010b, 0x08c34152, 0xd301428b, 0x1ac000cb, 0x08834152, - 0xd301428b, 0x1ac0008b, 0x08434152, 0xd301428b, 0x1ac0004b, 0x1a414152, 0x4601d200, 0x46104152, - 0xe05d4770, 0xd0000fca, 0x10034249, 0x4240d300, 0x22004053, 0x0903469c, 0xd32d428b, 0x428b0a03, - 0x22fcd312, 0xba120189, 0x428b0a03, 0x0189d30c, 0x428b1192, 0x0189d308, 0x428b1192, 0x0189d304, - 0x1192d03a, 0x0989e000, 0x428b09c3, 0x01cbd301, 0x41521ac0, 0x428b0983, 0x018bd301, 0x41521ac0, - 0x428b0943, 0x014bd301, 0x41521ac0, 0x428b0903, 0x010bd301, 0x41521ac0, 0x428b08c3, 0x00cbd301, - 0x41521ac0, 0x428b0883, 0x008bd301, 0x41521ac0, 0x0843d2d9, 0xd301428b, 0x1ac0004b, 0x1a414152, - 0x4601d200, 0x41524663, 0x4610105b, 0x4240d301, 0xd5002b00, 0x47704249, 0x105b4663, 0x4240d300, - 0x2000b501, 0x46c046c0, 0xb430bd02, 0x1e644674, 0x1c647825, 0xd20042ab, 0x5d63461d, 0x18e3005b, - 0x4718bc30, 0x40023004, 0x4002301c, 0x40023018, 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000100, 0x00000400, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000 -}; - -// Start address of flash -static const uint32_t flash_start = 0x00000000; -// Size of flash -static const uint32_t flash_size = 0x00100000; - -/** -* List of start and size for each size of flash sector - even indexes are start, odd are size -* The size will apply to all sectors between the listed address and the next address -* in the list. -* The last pair in the list will have sectors starting at that address and ending -* at address flash_start + flash_size. -*/ -static const sector_info_t sectors_info[] = { - {0x00000000, 0x00001000}, {0x01000000, 0x00000800}, -}; - -static const program_target_t flash = { - 0x20000059, // Init - 0x200000b9, // UnInit - 0x200000bd, // EraseChip - 0x200000fb, // EraseSector - 0x20000115, // ProgramPage - 0x2000001f, // Verify - - // BKPT : start of blob + 1 - // RSB : blob start + header + rw data offset - // RSP : stack pointer - { - 0x20000001, - 0x20000eb0, - 0x20001100 - }, - - 0x20000000 + 0x00000A00, // mem buffer location - 0x20000000, // location to write prog_blob in target RAM - sizeof(P1024_4KB_SEC_flash_prog_blob), // prog_blob size - P1024_4KB_SEC_flash_prog_blob, // address of prog_blob - 0x00000200 // ram_to_flash_bytes_to_be_written -}; - -// Secondary Flash Blob -uint32_t K32W0x2_P256_2KB_SEC_flash_prog_blob[] = { - 0xE00ABE00, 0x062D780D, 0x24084068, 0xD3000040, 0x1E644058, 0x1C49D1FA, 0x2A001E52, 0x4770D1F2, - 0x4605b570, 0x4616460c, 0xcc0fe002, 0x3e10c50f, 0xd2fa2e10, 0xd3022e08, 0xc503cc03, 0x2e043e08, - 0xcc01d307, 0x1f36c501, 0x7821e003, 0x1c647029, 0x1e761c6d, 0xbd70d2f9, 0x2007b510, 0x07404934, - 0x48346048, 0x21306802, 0x6002430a, 0x430a6842, 0x48316042, 0x28006840, 0x4830d01a, 0x4a306b41, - 0x63414311, 0x4b2f4830, 0x49306043, 0x4a306081, 0x48306002, 0x60816043, 0x492f6002, 0x44492001, - 0x46087248, 0xf85ef000, 0xd0002800, 0xbd102001, 0x6b41482a, 0xe7e3220a, 0x47702000, 0x4826b51c, - 0x44484927, 0xf8c7f000, 0xd1142800, 0x21004822, 0xf0004448, 0x2800fad4, 0x20ffd10d, 0x900043c0, - 0x90011200, 0x2302481c, 0x2180466a, 0xf0004448, 0x2800f9d0, 0x2001d000, 0x4601bd1c, 0xb5104816, - 0x4b172201, 0x44480312, 0xf901f000, 0xd0002800, 0xbd102001, 0x08cb1dc9, 0x480f4601, 0x00dbb510, - 0xf0004448, 0x2800f96e, 0x2001d000, 0x0000bd10, 0x4002b000, 0x40001400, 0x40001000, 0xf0003000, - 0x00000a0a, 0xd928c520, 0x4002a000, 0x0000ffff, 0x00002920, 0x41026000, 0x00000004, 0xe0080000, - 0x6b65666b, 0x2800b5f0, 0x7a47d021, 0x4efe49fd, 0x158b447e, 0x4afd148d, 0x68c92400, 0xd0182f01, - 0x290f0f09, 0x0049d02c, 0x02895a71, 0x60416004, 0x72012102, 0x7b1160c5, 0x6143408b, 0x61047b51, - 0x21096181, 0x624506c9, 0x20006201, 0x2004bdf0, 0x0109bdf0, 0x290f0f09, 0x0049d00f, 0x02895a71, - 0x21016041, 0x60010609, 0x72012101, 0x60c102c9, 0x408b7b91, 0x7bd16143, 0x2101e7e1, 0xe7ef0489, - 0x05092101, 0x2800e7d2, 0x6101d002, 0x47702000, 0x47702004, 0xd0012800, 0xe0002000, 0x49dc2003, - 0x0100680a, 0x600a4302, 0x8f6ff3bf, 0x8f4ff3bf, 0x4302684a, 0xf3bf604a, 0xf3bf8f6f, 0x47708f4f, - 0x2101b510, 0xfc6ff000, 0x48d0bd10, 0x38202170, 0x21807001, 0x78017001, 0xd5fc0609, 0x06817800, - 0x2067d501, 0x06c14770, 0x2068d501, 0x07c04770, 0x2069d0fc, 0xb5704770, 0xd0150004, 0x48c54ac3, - 0x60503a20, 0xf0004608, 0x2800fc59, 0x2100d10b, 0xf0004620, 0x4620fc48, 0xffd7f7ff, 0x46204605, - 0xffcef7ff, 0xbd704628, 0xbd702004, 0x2800b510, 0x1e5bd006, 0xd1014219, 0xd003421a, 0xbd102065, - 0xbd102004, 0x428b6803, 0x6840d806, 0x18181889, 0xd3014288, 0xbd102000, 0xbd102066, 0x460eb570, - 0x46140005, 0x2c00d014, 0x2120d012, 0xf0004610, 0x6828fc51, 0x60261a36, 0x606068e8, 0x68687a29, - 0xfc5bf000, 0x7a6960a0, 0x29012008, 0xe005d002, 0xbd702004, 0x05c92101, 0x60211871, 0x61212110, - 0x616160e0, 0x200461a0, 0x200061e0, 0xb5ffbd70, 0x4616b089, 0x460d461c, 0x9809466a, 0xffcef7ff, - 0x46294632, 0x98099b04, 0xffb0f7ff, 0xd1302800, 0xf0004620, 0x0005fbf3, 0x9c00d12b, 0x19a69f01, - 0x46391e76, 0xf0004630, 0x2900fc28, 0x1c40d002, 0x1e464378, 0x98092100, 0xfbd5f000, 0x0221e013, - 0x0a092009, 0x18090600, 0x38204880, 0x98096041, 0xff5bf7ff, 0x98094605, 0x28006900, 0x4780d000, - 0xd1022d00, 0x42b419e4, 0x9809d9e9, 0xff48f7ff, 0xb00d4628, 0xb570bdf0, 0xd0150004, 0x48764a73, - 0x60503a20, 0xf0004608, 0x2800fbb9, 0x2100d10b, 0xf0004620, 0x4620fba8, 0xff37f7ff, 0x46204605, - 0xff2ef7ff, 0xbd704628, 0xbd702004, 0x0004b570, 0x4a66d015, 0x3a204869, 0x46086050, 0xfb9ef000, - 0xd10b2800, 0x46202100, 0xfb8df000, 0xf7ff4620, 0x4605ff1c, 0xf7ff4620, 0x4628ff13, 0x2004bd70, - 0xb5ffbd70, 0x461eb089, 0x460d0014, 0x466ad011, 0xf7ff9809, 0x4632ff53, 0x9b034629, 0xf7ff9809, - 0x0007ff35, 0x2100d1b5, 0x98099d00, 0xfb6bf000, 0x2004e028, 0x484de7ad, 0x3820cc02, 0x99036081, - 0xd0022904, 0xd0072908, 0x0229e00e, 0x0a092203, 0x18890652, 0xe0076041, 0x60c1cc02, 0x22070229, - 0x06120a09, 0x60411889, 0xf7ff9809, 0x4607fede, 0x69009809, 0xd0002800, 0x2f004780, 0x9803d104, - 0x1a361945, 0xd1d62e00, 0xf7ff9809, 0x4638fec9, 0xb570e77f, 0xd0190004, 0xd0172a00, 0x49380608, - 0x18400a00, 0x39204931, 0x68106048, 0x68506088, 0x210060c8, 0xf0004620, 0x4620fb26, 0xfeb5f7ff, - 0x46204605, 0xfeacf7ff, 0xbd704628, 0xbd702004, 0xb08bb5ff, 0x460c980d, 0xd0152800, 0x980b466a, - 0xfeecf7ff, 0x9b054621, 0x980b9a0e, 0xfecef7ff, 0x28009008, 0x9801d109, 0x9e009009, 0x980b2100, - 0xfb01f000, 0xe05e980e, 0xb00f2004, 0x9909bdf0, 0x42494270, 0x42404008, 0x42b02400, 0x9909d101, - 0x990e1840, 0x42811989, 0x1b85d901, 0x9d0ee040, 0x2701e03e, 0x42bd02bf, 0x462fd800, 0x980d08a1, - 0x18090089, 0x463a2009, 0xf7ff06c0, 0x1930fd69, 0x210b0200, 0x06090a00, 0x48041841, 0x60413820, - 0xe00f4638, 0x40026040, 0x00000ba8, 0x40023020, 0x40001400, 0x44ffffff, 0x49ffffff, 0x4bffffff, - 0x4300ffff, 0xf0009905, 0x49fffb08, 0x18410400, 0x608148fe, 0xf7ff980b, 0x9008fe48, 0x6900980b, - 0xd0002800, 0x98084780, 0xd10e2800, 0x19e41bed, 0xd1be2d00, 0x980d08a1, 0x18080089, 0x980e900d, - 0x1b001936, 0x2800900e, 0x980bd1a1, 0xfe28f7ff, 0xe79a9808, 0x4614b570, 0xd0102800, 0xd00e2c00, - 0x4aeb0609, 0x4de90a09, 0x60691889, 0xfe1df7ff, 0xd1032800, 0x602168a9, 0x606168e9, 0x2004bd70, - 0x2800bd70, 0x2900d00e, 0x48e0d00c, 0x07827880, 0x2a020f92, 0x0980d008, 0xd0072802, 0x70082002, - 0x47702000, 0x47702004, 0xe7f82000, 0xe7f62001, 0x460cb570, 0xd0200006, 0xd01e2c00, 0x20004dd3, - 0x078978a9, 0x29020f89, 0x48d2d016, 0x46206068, 0xfa92f000, 0x0a00ba00, 0x020078e1, 0x60a84308, - 0xf0001d20, 0xba00fa89, 0x79e10a00, 0x43080200, 0x463060e8, 0xfdd9f7ff, 0x2004bd70, 0xb510bd70, - 0xd0072800, 0x04094ac4, 0x4ac01889, 0xf7ff6051, 0xbd10fdcc, 0xbd102004, 0xb089b5ff, 0x460d4614, - 0x9809466a, 0xfe0af7ff, 0x46294622, 0x98099b05, 0xfdecf7ff, 0xd12f2800, 0x4629466a, 0xf7ff9809, - 0x9d00fdfd, 0x90089802, 0x42404269, 0x424f4001, 0xd10142af, 0x183f9808, 0xd01c2c00, 0x42a61b7e, - 0x4626d900, 0x99054630, 0xfa57f000, 0x22010229, 0x06120a09, 0x49a5188a, 0x9a0c604a, 0x02120400, - 0x30ff4310, 0x98096088, 0xfd8ff7ff, 0xd1032800, 0x19ad1ba4, 0x2000e7de, 0xb5ffe63b, 0x9f12b089, - 0x4616001d, 0xd010460c, 0x9809466a, 0xfdc6f7ff, 0x46214632, 0x98099b07, 0xfda8f7ff, 0xd1052800, - 0x06394a96, 0x9c00188f, 0x2004e021, 0x0221e621, 0x0a092001, 0x18090640, 0x6041488c, 0x68296087, - 0x980960c1, 0xfd61f7ff, 0xd0092800, 0x29009913, 0x600cd000, 0x29009914, 0x2200d0e8, 0xe608600a, - 0x1a769907, 0x00890889, 0x9907194d, 0x2e00190c, 0xe5fed1dd, 0x2800b510, 0x4a81d007, 0x18890409, - 0x60514a7a, 0xfd41f7ff, 0x2004bd10, 0xb5f0bd10, 0x001db0d5, 0x460c4616, 0xd0124607, 0xf7ff2308, - 0x2800fd65, 0x2f00d10e, 0x2100d00e, 0x90022040, 0x91000240, 0x00089001, 0x19a1d104, 0x2100468c, - 0x2004e00c, 0xbdf0b055, 0xe7f42104, 0x9b009a01, 0x189b434a, 0xaa03008e, 0x1c495193, 0x428a9a02, - 0x2200d2f4, 0xab444961, 0x2a08e034, 0x7f0ed204, 0x07f640d6, 0xe02b0ff6, 0x3e084616, 0xd2012e08, - 0xe0227f4f, 0x3e104616, 0xd2012e08, 0xe01c7f8f, 0x3e184616, 0xd2012e08, 0xe0167fcf, 0xd2032a28, - 0x46167e0f, 0xe0103e20, 0xd2032a30, 0x46167e4f, 0xe00a3e28, 0xd2032a38, 0x46167e8f, 0xe0043e30, - 0xd20a2a40, 0x46167ecf, 0x40f73e38, 0x0ff607fe, 0x1c52549e, 0x42969e02, 0x2100d8c7, 0x460a460e, - 0x008be012, 0x58ffaf03, 0xd80c42a7, 0x19dbaf03, 0x42a3685b, 0xab44d907, 0x1c765c5b, 0xd1002b00, - 0x9b011c52, 0x1c49191c, 0xd3ea4564, 0xd0032a00, 0xd10342b2, 0xe0022101, 0xe0002100, 0x70292102, - 0xb5ffe790, 0x001eb085, 0x460c4617, 0x2308d025, 0xf7ff9805, 0x2800fcdb, 0x9805d120, 0xd01f2800, - 0x91002100, 0x91029101, 0x91006801, 0x91016941, 0x90026980, 0x90032000, 0xd10f2800, 0x19e79801, - 0x46024240, 0x40084279, 0x18804022, 0x42402500, 0xf0009901, 0x9004f942, 0x2004e02d, 0xbdf0b009, - 0xe7e82004, 0x99019800, 0xf0001a20, 0x9905f936, 0x29017a49, 0x2820d004, 0x4914d210, 0xe0136b49, - 0xd2032808, 0x31404911, 0xe00d7909, 0x42819902, 0x490ed913, 0x79493140, 0xe0053808, 0x42819902, - 0x490ad90b, 0x38206b09, 0x40822201, 0xd000438a, 0x98011c6d, 0x42bc1904, 0x2d00d3d4, 0x9804d012, - 0xd2114285, 0xe0102002, 0x0000ffff, 0x40023000, 0x4100ffff, 0x45ffffff, 0x4000ffff, 0x00ffffff, - 0x4a00ffff, 0xe0002000, 0x70302001, 0xe7b59803, 0x4614b510, 0xd00a2800, 0xd0082c00, 0xf000000b, - 0x080af999, 0x16140d0a, 0x1e1c1a18, 0x20042220, 0x68c0bd10, 0x6840e000, 0xe0046010, 0x68407a01, - 0xf8dbf000, 0x20006020, 0x7a00bd10, 0x6800e7f4, 0x2001e7f2, 0x6940e7f0, 0x6980e7ee, 0x6a00e7ec, - 0x6a40e7ea, 0x206ae7e8, 0x4603bd10, 0x2000b510, 0xd0052b00, 0xd0222906, 0x2905dc04, 0xe01ed80f, - 0xbd102004, 0xd01a2909, 0x2907dc04, 0x2908d017, 0xe014d105, 0x2920b2d4, 0x2921d003, 0x206ad007, - 0x2a00bd10, 0x2a01d001, 0x725cd105, 0x2a00bd10, 0x2a01d003, 0x2077d001, 0x729cbd10, 0x2076bd10, - 0x2800bd10, 0x4831d00e, 0x61c2680a, 0x69c3680a, 0xd105429a, 0x6182684a, 0x69806849, 0xd0034281, - 0x47702069, 0x47702004, 0x47702000, 0xd0082800, 0xd0062900, 0x69c24825, 0x6980600a, 0x20006048, - 0x20044770, 0xb5104770, 0x49217804, 0x22102320, 0xd00a2c01, 0x439c680c, 0x7840600c, 0x68082800, - 0x4310d00b, 0x20006008, 0x7840bd10, 0xd0022800, 0x43186808, 0x2078e7f6, 0x4390bd10, 0xb510e7f2, - 0x70012100, 0x49127041, 0x23206809, 0x401c460c, 0x23012210, 0xd0012c00, 0xe0017003, 0xd0004211, - 0x20007043, 0xb500bd10, 0xd0052901, 0xd1022900, 0xf7ff2000, 0xbd00fb6f, 0xe7fa2001, 0x42884905, - 0x206bd001, 0x20004770, 0x00004770, 0x40023000, 0x40001400, 0x6b65666b, 0xc004e001, 0x29041f09, - 0x078bd2fb, 0x8002d501, 0x07c91c80, 0x7002d000, 0x29004770, 0x07c3d00b, 0x7002d002, 0x1e491c40, - 0xd3042902, 0xd5020783, 0x1c808002, 0xe7e31e89, 0xe7ee2200, 0xe7df2200, 0x78c27803, 0x78434619, - 0x021b0612, 0x78834319, 0x041b78c0, 0x43114319, 0x0a090209, 0x43080600, 0x22004770, 0x428b0903, - 0x0a03d32c, 0xd311428b, 0x469c2300, 0x4603e04e, 0xd43c430b, 0x08432200, 0xd331428b, 0x428b0903, - 0x0a03d31c, 0xd301428b, 0xe03f4694, 0x428b09c3, 0x01cbd301, 0x41521ac0, 0x428b0983, 0x018bd301, - 0x41521ac0, 0x428b0943, 0x014bd301, 0x41521ac0, 0x428b0903, 0x010bd301, 0x41521ac0, 0x428b08c3, - 0x00cbd301, 0x41521ac0, 0x428b0883, 0x008bd301, 0x41521ac0, 0x428b0843, 0x004bd301, 0x41521ac0, - 0xd2001a41, 0x41524601, 0x47704610, 0x0fcae05d, 0x4249d000, 0xd3001003, 0x40534240, 0x469c2200, - 0x428b0903, 0x0a03d32d, 0xd312428b, 0x018922fc, 0x0a03ba12, 0xd30c428b, 0x11920189, 0xd308428b, - 0x11920189, 0xd304428b, 0xd03a0189, 0xe0001192, 0x09c30989, 0xd301428b, 0x1ac001cb, 0x09834152, - 0xd301428b, 0x1ac0018b, 0x09434152, 0xd301428b, 0x1ac0014b, 0x09034152, 0xd301428b, 0x1ac0010b, - 0x08c34152, 0xd301428b, 0x1ac000cb, 0x08834152, 0xd301428b, 0x1ac0008b, 0xd2d94152, 0x428b0843, - 0x004bd301, 0x41521ac0, 0xd2001a41, 0x46634601, 0x105b4152, 0xd3014610, 0x2b004240, 0x4249d500, - 0x46634770, 0xd300105b, 0xb5014240, 0x46c02000, 0xbd0246c0, 0x4674b430, 0x78251e64, 0x42ab1c64, - 0x461dd200, 0x005b5d63, 0xbc3018e3, 0x00004718, 0x40023004, 0x4002301c, 0x40023018, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000100, 0x00000400, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 -}; - -// Start address of flash -static const uint32_t flash_m0p_start = 0x01000000; -// Size of flash -static const uint32_t flash_m0p_size = 0x00040000; - -static const program_target_t m0p_flash = { - 0x20000059, // Init - 0x200000b9, // UnInit - 0x200000bd, // EraseChip - 0x200000fb, // EraseSector - 0x20000115, // ProgramPage - 0x0, // Verify - - // BKPT : start of blob + 1 - // RSB : blob start + header + rw data offset - // RSP : stack pointer - { - 0x20000001, - 0x20000d3c, - 0x20001000 - }, - - 0x20000000 + 0x00000A00, // mem buffer location - 0x20000000, // location to write prog_blob in target RAM - sizeof(K32W0x2_P256_2KB_SEC_flash_prog_blob), // prog_blob size - K32W0x2_P256_2KB_SEC_flash_prog_blob, // address of prog_blob - 0x00000200 // ram_to_flash_bytes_to_be_written -}; diff --git a/source/family/freescale/k32w042/target.c b/source/family/freescale/k32w042/target.c deleted file mode 100644 index 00d418cb8..000000000 --- a/source/family/freescale/k32w042/target.c +++ /dev/null @@ -1,42 +0,0 @@ -/** - * @file target.c - * @brief Target information for the k32w042 - * - * DAPLink Interface Firmware - * Copyright (c) 2009-2019, ARM Limited, All Rights Reserved - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "target_config.h" - -// The file flash_blob.c must only be included in target.c -#include "flash_blob.c" - -// target information -target_cfg_t target_device = { - .version = kTargetConfigVersion, - .sectors_info = sectors_info, - .sector_info_length = (sizeof(sectors_info))/(sizeof(sector_info_t)), - .flash_regions[0].start = 0, - .flash_regions[0].end = KB(1024), - .flash_regions[0].flags = kRegionIsDefault, - .flash_regions[0].flash_algo = (program_target_t *) &flash, - .flash_regions[1].start = flash_m0p_start, - .flash_regions[1].end = flash_m0p_start + flash_m0p_size, - .flash_regions[1].flags = 0, - .flash_regions[1].flash_algo = (program_target_t *) &m0p_flash, - .ram_regions[0].start = 0x20000000, // M4 DTCM - .ram_regions[0].end = 0x20030000, -}; diff --git a/test/info.py b/test/info.py index 735af375c..ec6eb115c 100644 --- a/test/info.py +++ b/test/info.py @@ -65,7 +65,6 @@ ("lpc4322_mimxrt1170_evk_qspi_if", False, 0x10000, "bin" ), ('k20dx_ep_agora_if', True, 0x0000, "bin" ), ('k20dx_ep_kairos_if', True, 0x0000, "bin" ), - ("k26f_frdmk32w042_if", False, 0x8000, "bin" ), ("k26f_frdmk32l3a6_if", False, 0x8000, "bin" ), ("lpc11u35_archble_if", False, 0x0000, "bin" ), ("lpc11u35_archpro_if", False, 0x0000, "bin" ), @@ -154,7 +153,6 @@ def VENDOR_TO_FAMILY(x, y) : return (VENDOR_ID[x] <<8) | y ( 0x0218, VENDOR_TO_FAMILY('NXP', 2), 'k20dx_frdmkl82z_if', 'k20dx_bl', 'FRDM-KL82Z' ), ( 0x0220, VENDOR_TO_FAMILY('NXP', 2), 'k20dx_frdmkl46z_if', 'k20dx_bl', 'FRDM-KL46Z' ), ( 0x0224, VENDOR_TO_FAMILY('NXP', 1), 'k20dx_frdmk28f_if', 'k20dx_bl', None ), # TODO - set target to 'FRDM-K28F' - ( 0x0225, VENDOR_TO_FAMILY('NXP', 5), 'k26f_frdmk32w042_if', 'k26f_bl', None ), # TODO - set target to 'FRDM-K32W042' ( 0x0226, VENDOR_TO_FAMILY('NXP', 3), 'k20dx_mimxrt1020_evk_qspi_if', 'k20dx_bl', 'MIMXRT1020' ), ( 0x0227, VENDOR_TO_FAMILY('NXP', 3), 'k20dx_mimxrt1050_evk_hyper_if', 'k20dx_bl', 'MIMXRT1050' ), ( 0x0228, VENDOR_TO_FAMILY('NXP', 4), 'k20dx_rapid_iot_if', 'k20dx_bl', None ), # TODO - set target to 'Rapid-IoT' @@ -290,7 +288,6 @@ def VENDOR_TO_FAMILY(x, y) : return (VENDOR_ID[x] <<8) | y 0x0213, # FRDM-KE15Z 0x0216, # HVP-KE18F 0x0217, # FRDM-K82F - 0x0225, # FRDM-K32W042 0x0261, # FRDM-KL27Z 0x0262, # FRDM-KL43Z 0x0218, # FRDM-KL82Z @@ -299,7 +296,6 @@ def VENDOR_TO_FAMILY(x, y) : return (VENDOR_ID[x] <<8) | y BOARD_ID_SUPPORTING_PAGE_ERASE = set([ 0x0214, # HEXIWEAR - 0x0225, # FRDM-K32W042 0x0226, # MIMXRT1020 EVK 0x0227, # MIMXRT1050 EVK 0x0228, # k20dx_rapid_iot_if