搜索
bottom↓
回复: 16

请教魏坤同学"关于第二版示波器FPGA nios II工程如何烧写"

[复制链接]

出0入0汤圆

发表于 2010-3-28 21:12:56 | 显示全部楼层 |阅读模式
本人对于FPGA是莱鸟一名,看了几天教程没什么进展:对第二版示波器FPGA烧写无从下手!
   1.在收到的第二版示波器套件中,FPGA配置芯片是EPCS64,是否需重新编译生成新.POF
   2.对于示波器FPGA烧写能否写一份详细教程(由软件设置都烧写)
   3.烧写成功后如何调试?

出0入0汤圆

发表于 2010-3-28 21:31:02 | 显示全部楼层
呵呵,我收到的也是EPCS64,一样不知道怎么烧写,和你有同样的困惑。只是现在比较忙,没有时间去处理,先放在一边。

出0入0汤圆

发表于 2010-3-28 21:33:14 | 显示全部楼层
不用重新编译,魏坤的项目文件里边都有的。
烧写过程中似乎不用AS接口的,但实际我试下来不用不行,我是把POF文件通过AS接口,在Q II programer里面烧录的。然后用FLASH PROGRAM 通过JTAG烧的SOF文件。
我还没开始调试,比较忙。玩了玩,测试5V直流信号显示值是22V,肯定有问题的。4个电容我也不知如何调试。到时请魏坤说说。

出0入0汤圆

 楼主| 发表于 2010-3-28 21:43:40 | 显示全部楼层
回复【2楼】tangfree
--------------------------------------------------------------
能上个图看下QII programer 该如何设定吗?

出0入21汤圆

发表于 2010-3-28 21:55:19 | 显示全部楼层
当EPCS16用就成了,

出0入0汤圆

 楼主| 发表于 2010-3-28 21:59:53 | 显示全部楼层
回复【4楼】kunnsd 魏坤
-----------------------------------------------------------------------
请教魏兄烧写过程

出0入21汤圆

发表于 2010-3-28 23:03:39 | 显示全部楼层
回复【5楼】HSZGQ
-----------------------------------------------------------------------

先在Quartus环境或NIOS环境下将OLD.sof文件下载进FPGA,不要断电,然后在NIOS环境下(Flash programer)将程序带配置文件下载进EPCS16即可,这两个操作用的都是JTAG接口。

出0入0汤圆

 楼主| 发表于 2010-4-1 10:41:35 | 显示全部楼层
回复【6楼】kunnsd 魏坤
-----------------------------------------------------------------------
请问魏坤:现在我的示波器按你给的步骤在Flash programer环境下载后提示信息为以下内容。我的下载线系ByteBlasterII [LPT1]
#!/bin/sh
#
# This file was automatically generated by the Nios II IDE Flash Programmer.
#
# It will be overwritten when the flash programmer options change.
#

cd D:/HANDHELD_DSO_PROJECT_V2.0/software/new_handheld_dso/Debug

# Creating .flash file for the FPGA configuration
"$SOPC_KIT_NIOS2/bin/sof2flash" --epcs --input="D:/HANDHELD_DSO_PROJECT_V2.0/OLD
1.sof" --output="OLD1.flash"
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert --device=EPCS128 --option=OLD1.
opt D:/HANDHELD_DSO_PROJECT_V2.0/OLD1.sof OLD1.pof
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
    Info: Peak virtual memory: 68 megabytes
    Info: Processing ended: Tue Mar 31 11:17:52 2009
    Info: Elapsed time: 00:00:04
    Info: Total CPU time (on all processors): 00:00:03
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert OLD1.pof OLD1.rpd
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
    Info: Peak virtual memory: 65 megabytes
    Info: Processing ended: Tue Mar 31 11:17:56 2009
    Info: Elapsed time: 00:00:04
    Info: Total CPU time (on all processors): 00:00:04

# Programming flash with the FPGA configuration
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x01001800  "OLD1.fla
sh"
Using cable "ByteBlasterII [LPT1]", device 1, instance 0x00
Resetting and pausing target processor: OK

              : Checksumming existing contents         

00000000      : Verifying existing contents            

00010000      : Verifying existing contents            

00000000      : Reading existing contents               

00010000      : Reading existing contents               

Checksummed/read 7kB in 0.3s                                       

00000000 ( 0%): Erasing                                 

00010000 (50%): Erasing                                 

Erased 128kB in 1.2s (106.6kB/s)                       

00000000 ( 0%): Programming                             

00010000 (50%): Programming                             

Programmed 122KB +6KB in 5.1s (25.0KB/s)                  
Did not attempt to verify device contents
Leaving target processor paused

# Creating .flash file for the project
"$SOPC_KIT_NIOS2/bin/elf2flash" --epcs --after="OLD1.flash" --input="new_handhel
d_dso.elf" --output="epcs_controller.flash"

# Programming flash with the project
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x01001800  "epcs_con
troller.flash"
Using cable "ByteBlasterII [LPT1]", device 1, instance 0x00
Resetting and pausing target processor: OK

              : Checksumming existing contents         

00010000      : Verifying existing contents            

00020000      : Verifying existing contents            

00030000      : Verifying existing contents            

00040000      : Verifying existing contents            

00050000      : Verifying existing contents            

00010000      : Reading existing contents               

00020000      : Reading existing contents               

00030000      : Reading existing contents               

00040000      : Reading existing contents               

00050000      : Reading existing contents               

Checksummed/read 65kB in 3.0s                                       

00010000 ( 0%): Erasing                                 

00020000 (20%): Erasing                                 

00030000 (40%): Erasing                                 

00040000 (60%): Erasing                                 

00050000 (80%): Erasing                                 

Erased 320kB in 3.1s (103.2kB/s)                       

00010000 ( 0%): Programming                             

00020000 (20%): Programming                             

00030000 (40%): Programming                             

00040000 (60%): Programming                             

00050000 (80%): Programming                             

Programmed 256KB +64KB in 10.6s (30.1KB/s)                 
Did not attempt to verify device contents
Leaving target processor paused

提示无验正内容,关电源开机还是白屏,是什么问题呢?

出0入0汤圆

发表于 2010-4-1 17:19:02 | 显示全部楼层
回复【6楼】kunnsd 魏坤
回复【5楼】HSZGQ  
-----------------------------------------------------------------------
先在Quartus环境或NIOS环境下将OLD.sof文件下载进FPGA,不要断电,然后在NIOS环境下(Flash programer)将程序带配置文件下载进EPCS16即可,这两个操作用的都是JTAG接口。
-----------------------------------------------------------------------

1、哪个是“程序带配置文件”?
2、Quartus是使用Quartus 2 8.0?   NIOS是使用那个版本?

出0入0汤圆

发表于 2010-4-1 17:36:59 | 显示全部楼层
Nios II 好像找不到这样软件

出0入0汤圆

发表于 2010-4-1 19:41:03 | 显示全部楼层
楼上的是刚入手FPGA,Nios II 是在下载altera公司官网下载,和QuartusII一个地方下载,都用同一版本比较好。

出0入0汤圆

 楼主| 发表于 2010-4-1 22:32:57 | 显示全部楼层
请问魏坤:现在我的示波器按你给的步骤在Flash programer环境下载后提示信息为以下内容。我的下载线系ByteBlasterII [LPT1]
#!/bin/sh
#
# This file was automatically generated by the Nios II IDE Flash Programmer.
#
# It will be overwritten when the flash programmer options change.
#

cd D:/HANDHELD_DSO_PROJECT_V2.0/software/new_handheld_dso/Debug

# Creating .flash file for the FPGA configuration
"$SOPC_KIT_NIOS2/bin/sof2flash" --epcs --input="D:/HANDHELD_DSO_PROJECT_V2.0/OLD
1.sof" --output="OLD1.flash"  
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert --device=EPCS128 --option=OLD1.
opt D:/HANDHELD_DSO_PROJECT_V2.0/OLD1.sof OLD1.pof
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
    Info: Peak virtual memory: 68 megabytes
    Info: Processing ended: Tue Mar 31 11:17:52 2009
    Info: Elapsed time: 00:00:04
    Info: Total CPU time (on all processors): 00:00:03
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert OLD1.pof OLD1.rpd
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
    Info: Peak virtual memory: 65 megabytes
    Info: Processing ended: Tue Mar 31 11:17:56 2009
    Info: Elapsed time: 00:00:04
    Info: Total CPU time (on all processors): 00:00:04

# Programming flash with the FPGA configuration
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x01001800  "OLD1.fla
sh"
Using cable "ByteBlasterII [LPT1]", device 1, instance 0x00
Resetting and pausing target processor: OK

              : Checksumming existing contents           

00000000      : Verifying existing contents              

00010000      : Verifying existing contents              

00000000      : Reading existing contents               

00010000      : Reading existing contents               

Checksummed/read 7kB in 0.3s                                         

00000000 ( 0%): Erasing                                 

00010000 (50%): Erasing                                 

Erased 128kB in 1.2s (106.6kB/s)                        

00000000 ( 0%): Programming                              

00010000 (50%): Programming                              

Programmed 122KB +6KB in 5.1s (25.0KB/s)                    
Did not attempt to verify device contents
Leaving target processor paused

# Creating .flash file for the project
"$SOPC_KIT_NIOS2/bin/elf2flash" --epcs --after="OLD1.flash" --input="new_handhel
d_dso.elf" --output="epcs_controller.flash"

# Programming flash with the project
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x01001800  "epcs_con
troller.flash"
Using cable "ByteBlasterII [LPT1]", device 1, instance 0x00
Resetting and pausing target processor: OK

              : Checksumming existing contents           

00010000      : Verifying existing contents              

00020000      : Verifying existing contents              

00030000      : Verifying existing contents              

00040000      : Verifying existing contents              

00050000      : Verifying existing contents              

00010000      : Reading existing contents               

00020000      : Reading existing contents               

00030000      : Reading existing contents               

00040000      : Reading existing contents               

00050000      : Reading existing contents               

Checksummed/read 65kB in 3.0s                                         

00010000 ( 0%): Erasing                                 

00020000 (20%): Erasing                                 

00030000 (40%): Erasing                                 

00040000 (60%): Erasing                                 

00050000 (80%): Erasing                                 

Erased 320kB in 3.1s (103.2kB/s)                        

00010000 ( 0%): Programming                              

00020000 (20%): Programming                              

00030000 (40%): Programming                              

00040000 (60%): Programming                              

00050000 (80%): Programming                              

Programmed 256KB +64KB in 10.6s (30.1KB/s)                  
Did not attempt to verify device contents
Leaving target processor paused

提示无验正内容,关电源开机还是白屏,是什么问题呢?

出0入21汤圆

发表于 2010-4-2 11:13:23 | 显示全部楼层
回复【11楼】HSZGQ
-----------------------------------------------------------------------

这种现象表示程序已经下载好了,只是没有正常工作,问题多出现在FPGA和DRAM的引脚焊接上,估计是有短路或开路,仔细检查一下。

出0入0汤圆

发表于 2011-1-28 12:01:34 | 显示全部楼层
记号

出0入0汤圆

发表于 2011-1-30 00:58:32 | 显示全部楼层
MARK

出0入0汤圆

发表于 2011-11-25 10:22:08 | 显示全部楼层
mark
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-5-5 20:12

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表