我想用OpenOCD运行。无论我需要什么样的文件从quartus,但执行应该由OpenOCD完成。我目前正试图用sof文件来完成它。quartus为程序员使用的那种。
更多的提示闪现它也是受欢迎的。
是与openbcd?一起使用的.sof文件吗?
我的主板是"Altera FPGA学习板EP4CE6E22C8N和USB Blaster程序员“品牌是zrTech。
在Quartus中,这种配置有时用于执行它(sof file),但也不是每次都能执行。但当它开始运作时,它继续这样做:

,这就是我目前收集到的,似乎很好的东西(除了注释):
altera_ep4ce6e22.cfg:
interface usb_blaster
usb_blaster_lowlevel_driver ftdi
transport select jtag
set CHIPNAME ep4ce6mb
set FPGA_TAPID 0x020f10dd
jtag newtap $CHIPNAME tap -irlen 10 -ircapture 0x01 -irmask 0x3 -expected-id $FPGA_TAPID
##no errors but not sure about those
pld init
init
## Some stuff I tried with the errors of the results ###
#pld load 0 project.sof ###Error: invalid subcommand "load 0 project.sof"
#program project.sof ###Error: ** Unable to reset target **在上面的状态中,这是我得到的输出(命令在那里等待-它不返回):
###: openocd -f altera_ep4ce6e22.cfg
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Warn : Adapter driver 'usb_blaster' did not declare which transports it allows; assuming legacy JTAG-only
Info : only one transport option; autoselect 'jtag'
Warn : Transport "jtag" was already selected
Info : usb blaster interface using libftdi
Info : This adapter doesn't support configurable speed
Info : JTAG tap: ep4ce6mb.tap tap/device found: 0x020f10dd (mfg: 0x06e (Altera), part: 0x20f1, ver: 0x0)
Info : 'pld init' has already been called
Warn : gdb services need one or more targets defined知道我该怎么做才能让这件事成功吗?
谢谢你的帮助。
发布于 2019-10-29 21:05:43
据我所知,OpenOCD不支持直接编程sof文件(这些是专有的Altera格式)。
相反,从Quartus生成一个SVF文件(参见677.html),并使用OpenOCD svf命令对其进行编程。
发布于 2019-10-29 22:13:21
我对所有试图这样做的人的补充答复是:
正如David已经回答的,您需要SVF文件:这是我的完整文件,如果您需要的话。目前quartus拒绝对其进行编程,但是openocd可以很好地处理该文件。它由“文件”菜单中的“程序员”对话框创建。接下来,我寻找由makefile创建它的可能性,我在某个地方看到了Makefile。
(资料来源:f32c在Github上的应用)
壳牌:
openocd -f altera_ep4ce6e22.cfg 涉及的两个文件都驻留在执行目录中。
我的新altera_ep4ce6e22.cfg:
interface usb_blaster
usb_blaster_lowlevel_driver ftdi
set CHIPNAME ep4ce6mb
set FPGA_TAPID 0x020f10dd
jtag newtap $CHIPNAME tap -irlen 10 -ircapture 0x01 -irmask 0x3 -expected-id $FPGA_TAPID
init
scan_chain
svf -tap $CHIPNAME.tap project.svf ###<<<svf file by quartus programmer same
exithttps://stackoverflow.com/questions/58599145
复制相似问题