RISCV操作常见问题集 --(1) -update3

描述

(1)如果工程直接复制另一个工程,路径一定要修改,建议重新eclipse工程。

(2)clean Project时提示rm: can't remove 'build/dhrystone.elf': Permission denied

 

正在使得该elf文件,上次的JTAG链接没有断开。此时可以先关闭c/c++工作界面,再重新添加C/C++ (default),然后在Console中关闭上次的链接。

RISC-V

RISC-V

RISC-V

(3)Debug session'default' already started。

先关闭c/c++工作界面,再重新添加C/C++ (default),然后在Console中关闭上次的链接。

 

RISC-V

(3)Memory region         Used Size  Region Size  %age Used

c:/efinity/sdk_windows/riscv-xpack-toolchain_8.3.0-2.3_windows/bin/../lib/gcc/riscv-none-embed/8.3.0/../../../../riscv-none-embed/bin/ld.exe: build/ti60f225_oob.elf section `.bss' will not fit in region `ram'

             ram:     2363296 B         1 MB    225.38%

c:/efinity/sdk_windows/riscv-xpack-toolchain_8.3.0-2.3_windows/bin/../lib/gcc/riscv-none-embed/8.3.0/../../../../riscv-none-embed/bin/ld.exe: region `ram' overflowed by 1314720 bytes

collect2.exe: error: ld returned 1 exit status

make: *** [../common/standalone.mk build/ti60f225_oob.elf] Error 1

 

RISC-V

解决办法:Error的意思是外部存储器的存储空间不够,目前在分配了1MB的情况下使用了225.38%。所以把default.ld中的LENGTH 修改成4M.

RISC-V

重新编译后的结果 。

RISC-V

(4)Error: libusb_get_string_descriptor_ascii() failed with LIBUSB_ERROR_PIPE

Error: no device found

Error: unable to open ftdi device with vid 0403, pid 6014, description 'ELITES-232DL', serial '*' at bus location '*'

RISC-V

原因:把embedded_swsoc_xxbspefinixEfxSapphireSocopenocdftdi.cfg(ftdi_ti.cfg)修改成下载器读出来的名字,比如这里我把ELTES-232DL修改成了Trion T120F324 Development Board。因为Programmer界面读到的USB target就是Trion T120F324 Development Board,当然也要注意ftdi_vid_pid和ftdi_channel是否正确,如果不正确也会引起别的问题。

RISC-V

(5)Error:cpuConfigFile D:testriscvefx_ti60f225_oob_v2.1embedded_swsapphire_soccpu0.yaml not found

Error: target 'fpga_spinal.cpu0' init failed

 

RISC-V

原因:debuger路径问题。在riscv和efx之间应该有个斜杠,如报错中的红色标注。

 

(6)No source available for "main() at 0x1114" 

RISC-V

原因:没有打开debug环境变量。打开debug开关之后要重新编译。

 

(7)Error: timed out while waiting for target halted

RISC-V

原因:1)IP设置的是soft Jtag,实际却用hard Jtag在调试;

2)CPU没有跑起来;

3)debuger与JTAG冲突;

4)在interface 添加JTAG之后生成的信号与RISCV 连接不正确或者不完全。

 

 

(8)SOC烧写到flash启动不了

一般默认片上RAM选择了4K大小用于bootloader,但是如果手动修改了bootloader,比如添加了debug,可能存储空间不足。

 

 

(9)

Error:JTAG scan chain interrogation failed :all ones

Error: Check JTAG interface,timings,target power, etc.

Error: Trying to use configured scan chain anyway...

Error: fpga_spinal.bridge: IR capture error:saw ox0f not 0x01

RISC-V

 

workround:JTAG下载线连接不紧。

(10)soft Jtag与hard Jtag同时使用时,会出现第一次debug都需要重新插拔下载器问题

 

workround:查找两个下载线的连接位置,注意分开两个下载器的连接位置。

 

(10)soc IP生成不了,

RISC-V

workround可能是java 8没有安装

RISC-V

 

(11) No source available for "(gdbi2),proc[42000j,threadGroupi1],gdb(2),proc420001.0Sthread[1).thread(1j.framel0j'

RISC-V

说明:外部存储器没有运行起来

(12)错误:

mkdir: can't create directory 'build/xxx/embedded_sw/sapphire_soc/software/standalone/uartInterruptDemo/': No such file or directory

make: *** [../common/standalone.mk build/xxx/embedded_sw/sapphire_soc/software/standalone/uartInterruptDemo/src/main.o] Error 1

"make all" terminated with exit code 2. Build might be incomplete.

 

WorkWround : Eclipse路径太长。

在common文件夹下,找到standalone.mk文件。

RISC-V

把路径:

  •  
OBJS := $(realpath $(OBJS))

修改成:

 

  •  
OBJS := $(addprefix $(PROJ_NAME)/,$(OBJS))

如下图所示(感谢客户为我们提供解决方案)

RISC-V

 

(13)Debug时出Break at address "0xf90000000" with no debug information avalibale,or outside of program code

 

RISC-V

 

 

(14)Info : JTAG tap: fpga spinal.bridge tap/device found: 0x10660a79 (mfg: 0x53c (Efinix Inc), part: 0x0660, ver: 0xl)

Error:-

Error: Can't communicate with the CPu

Error: !!!

RISC-V

原因(1)RISCV中FPGA Top Port选择不对。

RISC-V

 

(13)

RISC-V

原因:JTAG配置不正确,可能是JTAG channel号没有选择正确。

update2: 增加了(11)(12)(13)


打开APP阅读更多精彩内容
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

全部0条评论

快来发表一下你的评论吧 !

×
20
完善资料,
赚取积分