Windows

Windows工具“NucleiStudio”的快速上手

【推荐直接使用这个】不需要折腾其他环境了,linux坑很多。这个是全部都配置好的
可以烧录,编译测试。NucleiStudio 将 JRE、Eclipse、GNU MCU Eclipse 插件、RISCV-V 交叉工具链、Windows Build Tools 打包在了一起。所以 NucleiStudio 本质上还是 Eclipse

https://www.riscv-mcu.com/site/rvstar_nucleistudio_quickstart/

Windows工具“Eclipse”的快速上手

参考:两篇步骤一样,描述互相补足就够了
如果需要下载最新版的2022_01版本,请联系我,本人已下载好了,文件夹排布参考了瓜大三哥(他是2018版本的)

https://blog.csdn.net/u011169011/article/details/107352163?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1.pc_relevant_antiscan&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1.pc_relevant_antiscan&utm_relevant_index=2

https://blog.csdn.net/buzhiquxiang/article/details/103345343?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522164603404616780264072041%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=164603404616780264072041&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~rank_v31_ecpm-5-103345343.nonecase&utm_term=e203&spm=1018.2226.3001.4450

https://blog.csdn.net/u011169011/article/details/107425145?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522164604095516780255272783%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=164604095516780255272783&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~rank_v31_ecpm-9-107425145.nonecase&utm_term=e203&spm=1018.2226.3001.4450

Linux

安装VMware,安装Ubuntu18.04

https://blog.csdn.net/qq_44830040/article/details/106028964

ubuntu虚拟机连接网络

记得用win+R里services.msc把所有VWmare的进程打开,默认是关闭的要不然也连接不上

https://blog.csdn.net/goodgoodstudyddp/article/details/116542155

换源

网速不好的话会差不多二十分钟
(里面的方法二)

https://blog.csdn.net/weixin_43798960/article/details/108522630

安装共享文件夹,虚拟机和主机可以传文件

https://blog.csdn.net/lxp90/article/details/17238899

下载tools(有很多坑)

https://blog.csdn.net/weixin_42189664/article/details/119492048
https://www.jianshu.com/p/89b40e01d983

运行以下命令配置工具链

下载百度网盘链接或者官网的

cd /mnt/hgfs/share/linux
cp nuclei_riscv_newlibc_prebuilt_linux64_2022.01.tar.bz2 ~/
cd ~/
tar -xjvf nuclei_riscv_newlibc_prebuilt_linux64_2022.01.tar.bz2

cd ~/e203_hbirdv2/
mkdir -p ./riscv-tools/prebuilt_tools/prefix/bin
cd ./riscv-tools/prebuilt_tools/prefix/bin/
ln -s ~/nuclei_riscv_newlibc_prebuilt_linux64_2022.01.tar.bz2/gcc/bin/* .

cd ~/e203_hbirdv2/riscv-tools/riscv-tests/isa
source regen.sh

cd /mnt/hgfs/share/linux 
cp ./Nuclei OpenOCD

报错
成功解决的门:

https://blog.csdn.net/qq_43858116/article/details/123191294?spm=1001.2014.3001.5501
-*********
ubuntu@ubuntu-virtual-machine:~/e203_hbirdv2/riscv-tools/riscv-tests/isa$ source regen.sh
make: Entering directory '/home/ubuntu/e203_hbirdv2/riscv-tools/riscv-tests/isa/generated'
/home/ubuntu/e203_hbirdv2/riscv-tools/riscv-tests/isa/../../prebuilt_tools/prefix/bin/riscv-nuclei-elf-gcc -march=rv32imafdc -mabi=ilp32 -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -I..//../env/p -I..//macros/scalar -T..//../env/p/link.ld ../rv32ui/simple.S -o rv32ui-p-simple
make: /home/ubuntu/e203_hbirdv2/riscv-tools/riscv-tests/isa/../../prebuilt_tools/prefix/bin/riscv-nuclei-elf-gcc: Command not found
../Makefile:78: recipe for target 'rv32ui-p-simple' failed
make: *** [rv32ui-p-simple] Error 127
make: Leaving directory '/home/ubuntu/e203_hbirdv2/riscv-tools/riscv-tests/isa/generated'
/*******
https://blog.csdn.net/wuyulanguang/article/details/86220770
https://blog.csdn.net/qq_39980334/article/details/118088305
https://blog.csdn.net/liudehuadelianxi/article/details/106873601

来一张ubuntu18.04下的iverilog运行RISC-V里RV32I指令集测试文件成功截图
在这里插入图片描述

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐