Skip to content

Commit 1feca59

Browse files
committed
Nano ESP32: add debugging support
1 parent 53fc5f6 commit 1feca59

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Diff for: boards.txt

+7
Original file line numberDiff line numberDiff line change
@@ -24173,4 +24173,11 @@ nano_nora.menu.PinNumbers.default=By Arduino pin (default)
2417324173
nano_nora.menu.PinNumbers.byGPIONumber=By GPIO number (legacy)
2417424174
nano_nora.menu.PinNumbers.byGPIONumber.build.disable_pin_remap=-DBOARD_USES_HW_GPIO_NUMBERS
2417524175

24176+
nano_nora.menu.USBMode.default=Normal mode (TinyUSB)
24177+
nano_nora.menu.USBMode.hwcdc=Debug mode (Hardware CDC)
24178+
nano_nora.menu.USBMode.hwcdc.build.usb_mode=1
24179+
nano_nora.menu.USBMode.hwcdc.build.copy_jtag_files=1
24180+
nano_nora.menu.USBMode.hwcdc.build.openocdscript=esp32s3-builtin.cfg
24181+
nano_nora.menu.USBMode.hwcdc.build.debugconfig=esp32s3-arduino.json
24182+
2417624183
##############################################################

Diff for: tools/ide-debug/esp32s3-arduino.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name":"Arduino on ESP32-S3",
3+
"toolchainPrefix":"xtensa-esp32s3-elf",
4+
"svdFile":"debug.svd",
5+
"request":"attach",
6+
"overrideAttachCommands":[
7+
"set remote hardware-watchpoint-limit 2",
8+
"monitor reset halt",
9+
"monitor gdb_sync",
10+
"thb setup",
11+
"interrupt"
12+
],
13+
"overrideRestartCommands":[
14+
"monitor reset halt",
15+
"monitor gdb_sync",
16+
"interrupt"
17+
]
18+
}

0 commit comments

Comments
 (0)