mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 21:43:40 +00:00
all: implement gdb sub-command for easy debugging
This commit is contained in:
@@ -4,5 +4,8 @@
|
||||
"linker": "arm-none-eabi-gcc",
|
||||
"pre-link-args": ["-nostdlib", "-nostartfiles", "-mcpu=cortex-m4", "-mthumb", "-T", "targets/nrf52.ld", "-Wl,--gc-sections", "-fno-exceptions", "-fno-unwind-tables", "-ffunction-sections", "-fdata-sections", "-Os", "-DNRF52832_XXAA", "-Ilib/CMSIS/CMSIS/Include", "lib/nrfx/mdk/system_nrf52.c", "src/device/nrf/nrf52.s"],
|
||||
"objcopy": "arm-none-eabi-objcopy",
|
||||
"flash": "nrfjprog -f nrf52 --sectorerase --program {hex} --reset"
|
||||
"flash": "nrfjprog -f nrf52 --sectorerase --program {hex} --reset",
|
||||
"ocd-daemon": ["openocd", "-f", "interface/jlink.cfg", "-c", "transport select swd", "-f", "target/nrf51.cfg"],
|
||||
"gdb": "arm-none-eabi-gdb",
|
||||
"gdb-initial-cmds": ["target remote :3333", "monitor halt", "load", "monitor reset", "c"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user