(1)如果工程直接復(fù)制另一個(gè)工程,路徑一定要修改,建議重新eclipse工程。
(2)clean Project時(shí)提示rm: can't remove 'build/dhrystone.elf': Permission denied
正在使得該elf文件,上次的JTAG鏈接沒有斷開。此時(shí)可以先關(guān)閉c/c++工作界面,再重新添加C/C++(default),然后在Console中關(guān)閉上次的鏈接。
(3)Debug session'default' already started。
先關(guān)閉c/c++工作界面,再重新添加C/C++(default),然后在Console中關(guān)閉上次的鏈接。
(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
解決辦法:Error的意思是外部存儲(chǔ)器的存儲(chǔ)空間不夠,目前在分配了1MB的情況下使用了225.38%。所以把default.ld中的LENGTH 修改成4M.
重新編譯后的結(jié)果。
(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 '*'
原因:把embedded_swsoc_xxspefinixEfxSapphireSocopenocdftdi.cfg(ftdi_ti.cfg)修改成下載器讀出來(lái)的名字,比如這里我把ELTES-232DL修改成了Trion T120F324 Development Board。
因?yàn)镻rogrammer界面讀到的USB target就是Trion T120F324 Development Board,當(dāng)然也要注意ftdi_vid_pid和ftdi_channel是否正確,如果不正確也會(huì)引起別的問題。
(5)Error:cpuConfigFileD: estriscvefx_ti60f225_oob_v2.1embedded_swsapphire_soccpu0.yaml not found
Error: target 'fpga_spinal.cpu0' init failed
原因:debuger路徑問題。在riscv和efx之間應(yīng)該有個(gè)斜杠,如報(bào)錯(cuò)中的紅色標(biāo)注。
(6)No source available for "main() at 0x1114"
原因:沒有打開debug環(huán)境變量。打開debug開關(guān)之后要重新編譯。
(7)Error: timed out while waiting for target halted
原因:1)IP設(shè)置的是soft Jtag,實(shí)際卻用hard Jtag在調(diào)試;
2)CPU沒有跑起來(lái);
3)debuger與JTAG沖突;
4)在interface 添加JTAG之后生成的信號(hào)與RISCV 連接不正確或者不完全。
(8)SOC燒寫到flash啟動(dòng)不了
一般默認(rèn)片上RAM選擇了4K大小用于bootloader,但是如果手動(dòng)修改了bootloader,比如添加了debug,可能存儲(chǔ)空間不足。
(9)
Error:JTAG scan chain interrogation failed :all ones
Error: CheckJTAGinterface,timings,target power, etc.
Error: Trying to use configured scan chain anyway...
Error: fpga_spinal.bridge: IR capture error:saw ox0f not 0x01
workround:JTAG下載線連接不緊。
(10)soft Jtag與hard Jtag同時(shí)使用時(shí),會(huì)出現(xiàn)第一次debug都需要重新插拔下載器問題
workround:查找兩個(gè)下載線的連接位置,注意分開兩個(gè)下載器的連接位置。
(10)soc IP生成不了,
workround可能是java 8沒有安裝
說明:update1:更正了問題(4)
審核編輯:劉清
-
存儲(chǔ)器
+關(guān)注
關(guān)注
38文章
7531瀏覽量
164424 -
JTAG
+關(guān)注
關(guān)注
6文章
401瀏覽量
71884 -
C++語(yǔ)言
+關(guān)注
關(guān)注
0文章
147瀏覽量
7040 -
RISC-V
+關(guān)注
關(guān)注
45文章
2331瀏覽量
46687
原文標(biāo)題:RISCV 操作常見問題集 -- (1) -update1
文章出處:【微信號(hào):gh_ea2445df5d2a,微信公眾號(hào):FPGA及視頻處理】歡迎添加關(guān)注!文章轉(zhuǎn)載請(qǐng)注明出處。
發(fā)布評(píng)論請(qǐng)先 登錄
相關(guān)推薦
DshanMCU-R128s2常見問題
![DshanMCU-R128s2<b class='flag-5'>常見問題</b>](https://file1.elecfans.com//web2/M00/B8/CE/wKgZomWI4kKAdUZWAAAhquHYKUM567.jpg)
RISCV操作常見問題集 --(1) -update3
![<b class='flag-5'>RISCV</b><b class='flag-5'>操作</b><b class='flag-5'>常見問題</b>集 --(<b class='flag-5'>1</b>) -<b class='flag-5'>update</b>3](https://file1.elecfans.com/web2/M00/D6/55/wKgZomYnWN6AcpekAACOjrWQlyE731.png)
評(píng)論