From a0bac6d309787e6948a20ee5af794a26d8630114 Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Mon, 9 Jan 2023 11:24:52 +0700 Subject: [PATCH] tools: remove obsolete workaround for reading ROM data from flash --- tools/idf_py_actions/debug_ext.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tools/idf_py_actions/debug_ext.py b/tools/idf_py_actions/debug_ext.py index a2617e08de..9e824e331c 100644 --- a/tools/idf_py_actions/debug_ext.py +++ b/tools/idf_py_actions/debug_ext.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD +# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD # SPDX-License-Identifier: Apache-2.0 import json import os @@ -251,11 +251,6 @@ def action_extensions(base_actions: Dict, project_path: str) -> Dict: if not is_one_revision: r.append('define target hookpost-remote') r.append('set confirm off') - # Workaround for reading ROM data on xtensa chips - # This should be deleted after the new openocd-esp release (newer than v0.11.0-esp32-20220706) - xtensa_chips = ['esp32', 'esp32s2', 'esp32s3'] - if target in xtensa_chips: - r.append('monitor xtensa set_permissive 1') # Since GDB does not have 'else if' statement than we use nested 'if..else' instead. for i, k in enumerate(roms[target], 1): indent_str = base_ident * i @@ -277,8 +272,6 @@ def action_extensions(base_actions: Dict, project_path: str) -> Dict: # Close 'else' operators for i in range(len(roms[target]), 0, -1): r.append(indent('end', base_ident * i)) - if target in xtensa_chips: - r.append('monitor xtensa set_permissive 0') r.append('set confirm on') if not is_one_revision: r.append('end')