summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2019-08-31 19:34:01 +0200
committerSilvan Jegen <s.jegen@gmail.com>2019-08-31 19:34:01 +0200
commit718a001315f3a4656131e78b0512c7bc86156b28 (patch)
tree10436fd6b2fff11dfbe57a9c2d8e92470c897b91
parentaaa20f3c37209a5ad0a45c09f840ecb0727318a2 (diff)
Add dirty helper scriptsuseTimerIRQ
-rw-r--r--build.sh2
-rw-r--r--debug.sh5
-rw-r--r--upload.sh2
3 files changed, 9 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100644
index 0000000..33f4929
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,2 @@
+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 software
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
diff --git a/upload.sh b/upload.sh
new file mode 100644
index 0000000..ec36f13
--- /dev/null
+++ b/upload.sh
@@ -0,0 +1,2 @@
+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 upload