Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build but actually works #21

Open
a7-github opened this issue Jan 7, 2025 · 0 comments
Open

How to build but actually works #21

a7-github opened this issue Jan 7, 2025 · 0 comments

Comments

@a7-github
Copy link

a7-github commented Jan 7, 2025

After spending a solid five or six days banging my head against this repo, I finally managed to build it and make my RV debugger work.

So the trick is to use the Sipeed everything their toolchain, framework, and flash tool; the official riscv toolchain, bouffalo_sdk, and bouffalo_sdk flash tool will just cause you problems.

Here is what you need to do:

  • clone this repo and initialize its submodules.
  • install dependencies; you will need cmake v3.15 or above, and make.
  • clone the toolchain listed in Sipeed SDK repo development-tools section it's already pre-built you just need to clone it and have the dependencies; riscv64-unknown-elf-gcc is not needed it's already included in the build tools do not install it.
  • put the build tools in a known directory and add the bin directory inside to path.

and that's it you should be able to build by following the build-firmware section of this repo

make sure to use the flash tool included in the repo to flash your code the one in bouffalo_sdk did not make my RV debugger work even tho it flashed successfully

In case you still have build problems I added the out files that I built from the least commit (7f17747) at the time of this comment.
out.zip
Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant