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.
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:
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.