From 9a69c6bcca23054f2acfe6ca89483546d5fc3e31 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 10 Jan 2020 17:04:09 +0100 Subject: [PATCH] hifive1b: add support for gdb subcommand This makes debugging on the HiFive1 rev B much easier: tinygo gdb -target=hifive1b examples/echo Using JLinkGDBServer as I couldn't figure out how to do it with OpenOCD. --- targets/hifive1b.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/targets/hifive1b.json b/targets/hifive1b.json index 3b4ff4835..bd561ae0b 100644 --- a/targets/hifive1b.json +++ b/targets/hifive1b.json @@ -4,5 +4,6 @@ "linkerscript": "targets/hifive1b.ld", "flash-method": "msd", "msd-volume-name": "HiFive", - "msd-firmware-name": "firmware.hex" + "msd-firmware-name": "firmware.hex", + "jlink-device": "fe310" }