From 522ff3fd8b0ad248471e1e8b9620bac32d76a23d Mon Sep 17 00:00:00 2001 From: Pammy <43200418+pammyleong@users.noreply.github.com> Date: Thu, 16 May 2024 17:25:34 +0800 Subject: [PATCH] Update debug_custom.json (#240) Update debug_custom.json to solve debugging issue on windows and linux --- .../examples/ExampleDebug/debug_custom.json | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/Arduino_package/hardware/libraries/Debugging/examples/ExampleDebug/debug_custom.json b/Arduino_package/hardware/libraries/Debugging/examples/ExampleDebug/debug_custom.json index fcc5f20a..c1edc303 100644 --- a/Arduino_package/hardware/libraries/Debugging/examples/ExampleDebug/debug_custom.json +++ b/Arduino_package/hardware/libraries/Debugging/examples/ExampleDebug/debug_custom.json @@ -1,15 +1,20 @@ -{ - "name": "JLink Attach", - "request": "attach", - "servertype": "jlink", - "interface": "swd", - "device": "Cortex-M33", - "serverArgs": ["-timeout", "10000", "-confirm", "0", "-scriptfile", "{replace with your Arduino15 packages directory}/packages/realtek/tools/ameba_pro2_tools/{replace with tools version number}/debug/RTL8735B_Arduino_debug.JLinkScript"], - "debuggerArgs": ["-init-eval-command", "maintenance set target-async on"], - "postAttachCommands": [ - "pwd", - "monitor clrbp", - "monitor reset", - "continue" - ] -} +[ + { + "name": "JLink Attach", + "request": "attach", + "configId": "realtek:AmebaPro2:Ameba_AMB82-MINI", + "server": "jlink", + "servertype": "jlink", + "device": "Cortex-M33", + "serverArgs": ["-timeout", "10000", "-confirm", "0", "-scriptfile", "{replace with your Arduino15 packages directory}/packages/realtek/tools/ameba_pro2_tools/{replace with tools version number}/debug/RTL8735B_Arduino_debug.JLinkScript"], + "interface": "swd", + "serverPath": "{JLinkGDBServerCL or JLinkGDBServer path}", + "serverpath": "{JLinkGDBServerCL or JLinkGDBServer path}", + "postAttachCommands": [ + "pwd", + "monitor clrbp", + "monitor reset", + "continue" + ] + } +] \ No newline at end of file