|
From: <cob...@se...> - 2018-03-29 17:24:57
|
Yes. I did use the jtagspi. However, the jtagspi is for configuring the flash. The documentation is suggesting a target type of testee. documentation: target create $_TARGETNAME testee -chain-position $_CHIPNAME.fpga set _XILINX_USER1 0x02 flash bank $_FLASHNAME spi 0x0 0 0 0 \ $_TARGETNAME $_XILINX_USER1 These commands create both a target and a flash. When I try to access the target directly(via mdw/mww), it tells me that memory commands are not supported. That is what I am referring to when I say the testee target doesn't support memory commands. It's the first line I am referring to, which is the setup of the target. I have created an svf file to upload a bootstrap program to the FPGA. So, in a way the FPGA is no longer the target. It is a middle man so to speak. The sequence is: memory/jtag command --> Flash loader software on FPGA --> ISSI flash memory The ultimate target or final destination is the flash memory. To rephrase what I said earlier: I am ultimately trying to write a flash program to flash memory via an FPGA that has been programmed with the necessary code to handle this task. Now, any flash commands in OpenOCD would need to send the commands to the FPGA app so to speak. OpenOCD would have to "know" about the FPGA middleware much like it knows information about other target types. At least this how it seems based on my current level of understanding. For instance, when you target a particular processor, it knows what it is going to be communicating with that processor and "speaks the right language." My specific configuration is: jtag newtap 5CGXFC5C6U19 tap -expected-id 0x02B020DD -irlen 10 target create fpga testee -chain-position 5CGXFC5C6U19.tap flash bank issiflash jtagspi 0x0 0 0 0 fpga 0x02 10 Does this make better sense? Coby From: Paul Fertser <fer...@gm...> To: cob...@se... Cc: ope...@li... Date: 03/28/2018 11:40 PM Subject: Re: [OpenOCD-user] Altera Cyclone V Configuration Hi, On Wed, Mar 28, 2018 at 06:01:36PM -0700, cob...@se... wrote: > The testee target type you suggested did work, but the target type doesn't > support memory commands. I suggested jtagspi, not testee :) Please check the official manual, I think it has extensive info regarding jtagspi. > The flash configuration you gave me appeared to configure at first, but then it > failed later with an 'Unknown flash device (ID 0x00000000)' error. Could the > reason for this be because I am talking to the flash through the FPGA software? I think I haven't given you any specific configuration. If you're talking about jtagspi, have you created and flashed a suitable bitstream for the target FPGA? -- Be free, use free ( https://urldefense.proofpoint.com/v2/url?u=http-3A__www.gnu.org_philosophy_free-2Dsw.html&d=DwIBAg&c=zVFQZQ67ypsA9mYKSCqWmQHiVkCCaN-Gb60_N6TVnLk&r=2jrmktbqCt8SNesrjdwqCBF6-Y7GQKGNLqFGPdJYAfc&m=zIm9CP8kNx721kvJV3aTHBNFwbQihCdtT__q74Q1obs&s=He5mqsqWQuS8J9XiNQJ7kTtSQH6L-4d5DCPUy1_wPyE&e= ) software! mailto:fer...@gm... |