Skip to content

esp32c3: add support for GDB debugging #2143

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Oct 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion targets/esp32c3.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"src/device/esp/esp32c3.S"
],
"binary-format": "esp32c3",
"flash-command": "esptool.py --chip=esp32c3 --port {port} write_flash 0x0 {bin}"
"flash-command": "esptool.py --chip=esp32c3 --port {port} write_flash 0x0 {bin}",
"serial-port": ["acm:303a:1001"],
"openocd-interface": "esp_usb_jtag",
"openocd-target": "esp32c3",
"openocd-commands": ["gdb_memory_map disable"]
}

3 changes: 2 additions & 1 deletion targets/riscv32.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
],
"ldflags": [
"-melf32lriscv"
]
],
"gdb": ["gdb-multiarch"]
}