jtagspi cmd 0 1 0x05 ;# read status register
jtagspi cmd 0 0 0x06 ;# write enable
jtagspi cmd 0 1 0x05 ;# read status register again to check WEL 
jtagspi cmd 0 0 0x01 0x40 ;# set QE bit (assuming BP to remain cleared)

Note that QE is a non-volatile bit, so it has to be set only once. From the 
datasheet it is NOT quite clear to me how QE bit and QIOEN/QIODI commands do 
interact. It is possible that setting QE instantly turns on QPI mode, so be 
prepared that after the seqence above the flash will only accept QPI commands 
*permanently*. So if you don't have a bitstream to set the FPGA to QPI mode, 
too, you're lost.



---

**[tickets:#422] Modify the FPGA flash status register**

**Status:** new
**Milestone:** 0.11.0
**Created:** Sun Feb 04, 2024 03:05 AM UTC by KooLee
**Last Updated:** Sun Feb 04, 2024 09:07 AM UTC
**Owner:** nobody


I successfully updated the xilinx xc7a35t firmware using FT2232 and openocd.
my configuration
~~~
interface ftdi
ftdi_vid_pid 0x0403 0x6011
ftdi_channel 0
ftdi_layout_init 0x0098 0x008b
reset_config none

source [find cpld/xilinx-xc7.cfg]
source [find cpld/jtagspi.cfg]
adapter_khz 10000

proc fpga_program {} {
        global _CHIPNAME
        xc7_program $_CHIPNAME.tap
}

init
jtagspi_init 0 bscan_spi_xc7a35t.bit
jtagspi_program fw.bin 0x0
fpga_program
shutdown
~~~
I have a question, is it possible to modify the status register of the Flash 
chip on the FPAG board via openocd.
I want to turn on Quad Enable by modifying the status register of the Flash 
chip on the FPGA board via openocd.
![](https://img2.imgtp.com/2024/02/04/S8eYd3LF.png)
I checked the "12 Flash Commands" document and it seems that there is no 
command support.
Is there any way I can realize this idea, thanks.


---

Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.


Reply via email to