Nios II(一)

Using cable "USB-Blaster [USB-0]", device 1, instance 0x00html

Pausing target processor: not responding.
Resetting and trying again: FAILED
Leaving target processor pausedios

網上總結三點緣由導致這個問題的發生:
一、復位鍵的管腳沒有對應好,致使報錯;
二、給sdram的clk,與cpu的clk沒有滯後-75的相位;
三、若是用鎖相環輸出clk的話不要直接飛線到鎖相環的輸入端口,否則也會報錯。
這種通訊錯誤的狀況基本上是因爲PIN定義錯誤或者是復位錯誤。
 
我總結這主要看兩方面:reset和clk:
(一)reset管腳綁定是否正確,以及芯片型號是否正確。
(二)clk對應的時鐘頻率是否正確,比較移植過來的是20M,倍頻ration:5,相位滯後-75。實際用的是50M, 倍頻ration:2,相位滯後-73。
網上有說芯片修正版本爲第4版,速度是7.5ns(PC133 CL=3)。50M時PLL偏移是-40。低速條件下不偏移也能夠。
 
 
其次,Nios II在Win中開發有幾個文件要設置兼容模式,不用的引腳要設置爲三態也是常常引發錯誤的小緣由。
 

Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Pausing target processor: OK
Reading System ID at address 0x00001800: verified
Initializing CPU cache (if present)
OKspa

Downloading 01000020 ( 0%)
Downloaded 57KB in 1.3s (43.8KB/s)htm

Verifying 01000020 ( 0%)
Verify failed between address 0x1000020 and 0x100E0CB
Leaving target processor pausedblog

 

結果SOPC裏面的器件型號沒改過來,改完一些以後仍是有版本不匹配的問題。開發

Pausing target processor: OK
Reading System ID at address 0x00001800:
ID value verified
Timestamp value does not match: image on board is older than expected
Read timestamp 13:51:51 2015/10/19; expected 20:23:41 2015/10/19
The software you are downloading may not run on the system which is currently
configured into the device. Please download the correct SOF or recompile.
Restarting target processorterminal

原本我認爲默認的Timestamp是1445258994,實際上要改成1445258956get

其實:1445258994(13:51:51 2015/10/19),實際上要改成1445258956(23:44:34 2012/03/27)it

 

 

Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Pausing target processor: OK
Reading System ID at address 0x00001800: verified
Initializing CPU cache (if present)
OKio

Downloading 04000020 ( 0%)
Downloaded 57KB in 1.3s (43.8KB/s)

Verifying 04000020 ( 0%)
Verify failed between address 0x4000020 and 0x400E0CB
Leaving target processor paused

 網上說這是因爲相移的緣由。這個地址是屬於sdaram的,從新編輯sdaram參數沒有異常,判斷那應該是osh.tcl文件分配地址有問題,打開osh.tcl發現分配地址沒有重複問題。

網上解決方案:http://www.amobbs.com/thread-5476091-1-1.html

果真,因爲osh.tcl中是S_NCAS,而工程中是S_nCAS,管腳沒有綁定。然而這個問題並無排除。

而後又搜了一些解決辦法:

1,檢查cpu地址是否設置的正確;

2,檢查你的SDRAM(或SRAM)數據口確實用的是雙向,而不是OUTPUT;(重要)

3,pll的相位差是否設置正確,通常會設在-45度---(-60度)。

http://blog.sina.com.cn/s/blog_875c3b2f010104x7.html

想起當初修改內核的時候一直是未更新。

 

 

 

Timestamp value does not match: image on board is older than expected
Read timestamp 23:44:34 2012/03/27; expected 21:30:36 2012/04/06

關於這個問題的解決辦法:http://www.cnblogs.com/oomusou/archive/2008/10/19/nios_timestamp_not_match.html

Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Pausing target processor: OK
Reading System ID at address 0x00001800:
ID value verified
Timestamp value does not match: image on board is older than expected
Read timestamp 23:44:34 2012/03/27; expected 21:30:36 2012/04/06

The software you are downloading may not run on the system which is currently
configured into the device. Please download the correct SOF or recompile.
Restarting target processor

這是因爲我直接在IDE下建工程燒進去形成的,從新再Quartus中編譯一下,下載,而後Run As就成功了,出現如下代碼:

nios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)

Hello from Nios II!

這時候查閱到的Timestamp是1445308947。

總結:Timestamp時間戳不匹配,去Quartus II中從新編譯一遍下載。

相關文章
相關標籤/搜索