-
Hi, I've been working on getting started with Tock OS on the HiFive rev B, and after running through the quick-start guide, I have run into a couple roadblocks, was hoping for some help:
If anyone has any advice on what to do or where to look to start resolving the issues I've run into, I'd appreciate it. I don't discount the possibility I've done something wrong here, so if you think I've missed a step somewhere, just let me know. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Hello! For the first issue, my best guess is you either need a newer version of openocd or the forked version https://github.com/riscv/riscv-openocd. I unfortunately don't keep too close an eye on openocd/riscv, so I'm not sure what exactly will work. With tockloader right now yes, you have to tell it what protocol to interface with and which board, otherwise it guesses to use the bootloader serial interface (which the hifive1b doesn't support). There is support for autodetection in the latest commits of tockloader, but not for hifive1b. Although now that I'm thinking about it it shouldn't be hard to add support for hifive1b so you don't need to pass those flags. As for the error, I can't quite reproduce it. Here is what I did:
Then I get:
So not exactly success, but the app is installed. Possible ideas: I'm running a newer commit of tockloader, it's possible something changed between the version you have and the latest commit. I tried installing the app with tockloader on the v1.6.0 commit and that worked as well, however. Other idea, maybe something is wrong with building the application for riscv? Can you include the output of |
Beta Was this translation helpful? Give feedback.
-
I'm using the latest openocd from their git repo, but tomorrow I'll try using riscv-openocd to see if that helps, and report back. I was attempting to install by using the online TAB repo, results are below. If I need to compile/load from the libtock-c git, let me know.
|
Beta Was this translation helpful? Give feedback.
-
I got tockloader to work with openocd and hifive1b with:
I pushed a commit to tockloader repo that removes the need for the |
Beta Was this translation helpful? Give feedback.
I got tockloader to work with openocd and hifive1b with:
I pushed a commit to tockloader repo that removes the need for the
-openocd-board sifive-hifive1-revb.cfg
flag.