From 19f797fa6396b726250c57eb9be80245a5f877dd Mon Sep 17 00:00:00 2001 From: Jesse Marroquin Date: Thu, 29 Jun 2023 14:36:00 -0500 Subject: [PATCH] Update MAX32625MBED for A3 silicon Revision A3 silicon requires use of MAX3262X reset function. --- records/board/max32625mbed.yaml | 1 + source/board/max32625mbed.c | 2 +- source/family/maxim/max32620/target_reset.c | 54 --------------------- 3 files changed, 2 insertions(+), 55 deletions(-) delete mode 100644 source/family/maxim/max32620/target_reset.c diff --git a/records/board/max32625mbed.yaml b/records/board/max32625mbed.yaml index da01c2d16f..5820cdbe46 100644 --- a/records/board/max32625mbed.yaml +++ b/records/board/max32625mbed.yaml @@ -4,3 +4,4 @@ common: - source/board/max32625mbed.c family: - source/family/maxim/max32625/target.c + - source/family/maxim/target_reset_max32xxx.c diff --git a/source/board/max32625mbed.c b/source/board/max32625mbed.c index d7c02a3c1a..2906fb3faa 100644 --- a/source/board/max32625mbed.c +++ b/source/board/max32625mbed.c @@ -25,7 +25,7 @@ const board_info_t g_board_info = { .info_version = kBoardInfoVersion, .board_id = "0415", - .family_id = kStub_HWReset_FamilyID, + .family_id = kMaxim_MAX3262X_FamilyID, .flags = kEnablePageErase, .target_cfg = &target_device, .daplink_url_name = "MAX32625HTM", diff --git a/source/family/maxim/max32620/target_reset.c b/source/family/maxim/max32620/target_reset.c deleted file mode 100644 index 77dd729891..0000000000 --- a/source/family/maxim/max32620/target_reset.c +++ /dev/null @@ -1,54 +0,0 @@ -/** - * @file target_reset.c - * @brief Target reset for the MAX32620 - * - * DAPLink Interface Firmware - * Copyright (c) 2009-2016, 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 "swd_host.h" - -void target_before_init_debug(void) -{ - // any target specific sequences needed before attaching - // to the DAP across JTAG or SWD - return; -} - -uint8_t target_unlock_sequence(void) -{ - // if the device can secure the flash and there is a way to - // erase all it should be implemented here. - return 1; -} - -uint8_t target_set_state(target_state_t state) -{ - // invoke reset by sw (VECT_REQ or SYS_REQ) or hw (hardware IO toggle) - // return swd_set_target_state_sw(state); - //or - return swd_set_target_state_hw(state); -} - -uint8_t security_bits_set(uint32_t addr, uint8_t *data, uint32_t size) -{ - // if there are security bits in the programmable flash region - // a check should be performed. This method is used when programming - // by drag-n-drop and should refuse to program an image requesting - // to set the device security. This can be performed with the debug channel - // if needed. - return 0; -}