(原創) 如何解決Nios II的Timestamp不match的錯誤訊息? (IC Design) (DE2) (Nios II) (Quartus II) (SOPC Builder)...

Abstract
有時候Nios II會出現Timestamp不match的錯誤,該如何解決呢?

Introduction
使用環境:Quartus II 7.2 SP1 + Nios II EDS 7.2 SP1 + DE2(Cyclone II EP2C35F627C6)

有時候Nios II會出現以下惱人的錯誤訊息:

Using cable  " USB-Blaster [USB-0] " ,  device  1 ,  instance 0x00
Pausing target processor: OK
Reading System ID at address 0x01101038: 
    ID value does not match: read 0xFFFFFFFF
;  expected 0x4AE5D5A2
    Timestamp value does not match: image on board is older than expected
    Read timestamp  
7 : 59 : 59   1970 / 01 / 01 ;  expected 18:41:20 2008/05/27
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


簡單的說,出現這個錯誤訊息的原因是你Nios II軟體編譯所用的.sof,與你剛剛燒進DE2的.sof是不同一份。

若出現以下訊息,請依照以下方式檢查
Step 1:
你用的Quartus II硬體.sof檔,和Nios II軟體所用的.sof是不是為同一份,這是很容易犯的錯誤。尤其若你用的是Quartus II Web Edition,會產生_time_limited.sof,而非原本project名稱的.sof,但因為ptf對應的是_time_limited.sof,所以一不小心就可能燒錯.sof。
若不成功,請試試Step 2。

Step 2:
將DE2 reference design的DE2_NIOS.sof燒進DE2,用Hello World project template,成功後,再將自己project的.sof燒進去。詳細原因不知,很可能是DE2版子的cache造成誤判。
若不成功,請試試step 3。

Step 3:
將DE2電源off,然後重新on,先將你的Nios II的軟體C語言程式備份,刪除所有Nios II project,將SOPC Builder重新generate .ptf,將Quartus II重新compile .sof,然後重新建立Nios II project,將備份的C語言程式碼還原。

Conclusion
這是Nios II的bug,常常會出現,目前我用的Quartus II 7.2 SP1,或許更新的版本有改進,不過Altera的工具常常大改,經常聽到原來Quartus II 6.1與Quartus II 7.1所寫的程式,在Quartus II 7.2無法編譯,所以若你打算更新Quartus II版本,或許你要慎重考慮相容性問題。

See Also
(原創) 如何解決Nios II的『Leaving target processor paused』的錯誤訊息? (IC Design) (Quartus II) (SOPC Builder) (Nios II)

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值