From 718a001315f3a4656131e78b0512c7bc86156b28 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Sat, 31 Aug 2019 19:34:01 +0200 Subject: Add dirty helper scripts --- debug.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 debug.sh (limited to 'debug.sh') diff --git a/debug.sh b/debug.sh new file mode 100644 index 0000000..464a44f --- /dev/null +++ b/debug.sh @@ -0,0 +1,5 @@ +export RISCV_PATH=/opt/riscv64-unknown-elf-gcc-8.2.0-2019.05.3-x86_64-linux-ubuntu14/ +make BSP=metal PROGRAM=first TARGET=sifive-hifive1-revb debug +# run +# riscv-sifive-elf-gdb software/first/debug/first.elf +# then: target remote localhost:3333 to connect to GDB debugger -- cgit v1.2.1-18-gbd029