|
From: <cob...@se...> - 2018-03-20 00:02:27
|
Hello,
My name is Coby Soss, and I am a software engineer at Schweitzer
Engineering Laboratories.
I have a cyclone V FPGA that is connected to an ISSI IS25LP128F flash
memory.
I have a system that is setup and working to program the ISSI flash via
the FPGA. I am trying to replace the currently working solution with
OpenOCD.
Currently, the FPGA and ISSI Flash chip are programmed via two steps:
1) Program the FPGA with a bootstrapping(flash loader) program.
2) Use the flash loader program on the FPGA to load the firmware onto the
flash chip.
The Quartus II Programmer accomplishes step I.
Step two is currently done through the Quartus II system console with
commands like the following Tcl script:
#a. Issue a WRITE ENABLE command
master_write_32 ${::boardInit::masterPath} 0x20 0x06
master_write_32 ${::boardInit::masterPath} 0x4 0x80010000
I have been able to configure OpenOcd to connect to the FPGA and perform
step 1 successfully using an SVF file of the FPGA software.
However, I have not been able to do step 2 yet. I am trying to configure
OpenOCD to work similar to the Tcl script. The main advantage is in having
an abstract memory interface to the FPGA as opposed to trying to use JTAG
directly to accomplish what the Tcl script is accomplishing.
I haven't been able to figure out how to configure OpenOcd to handle these
types of memory operations. I'm wondering if you have any suggestions for
how to accomplish those kinds of memory read/write operations using
OpenOCD.
|