|
From: Forest C. <cy...@gm...> - 2017-11-07 02:07:23
|
Hi, Enrico, I haven't done it on an Artix-7, but I've programmed the config flash of a Spartan-6 with OpenOCD and the process should be similar. First you need to load the SPI proxy bitstream (generated by this Migen script <http://repo.or.cz/openocd.git/blob/12aee423db1aa1d315392dbaa60122c871054714:/contrib/loaders/flash/fpga/xilinx_bscan_spi.py>, with pre-built bitstreams available here <https://github.com/jordens/bscan_spi_bitstreams>), then you can program the flash using the jtagspi helper commands. An example of how to do this for the Spartan-6 can be found in the Pipistrello config <http://repo.or.cz/openocd.git/blob/804eefc25954465a35e63abc272862169dbf4b9b:/tcl/board/pipistrello.cfg>. For the Artix-7, you should only have to change "xc6s" to "xc7" and replace the proxy bitstream (bscan_spi_xc6slx45.bit) with the one for your specific FPGA. Your script will probably look a bit like this: source [find your-jtag-interface-config-here.cfg] source [find cpld/xilinx-xc7.cfg] source [find cpld/jtagspi.cfg] init # Initialize OpenOCD. jtagspi_init 0 bscan_spi_xc7a35t.bit # Load the proxy bitstream for the Artix-7 35T. jtagspi_program your-bitstream-here.bin 0 # Flash the binary bitstream. xc7_program xc7.tap # I'm not actually sure if this is needed. exit # We're done here. Hope this helps! On Thu, Nov 2, 2017 at 12:49 PM, Enrico Weigelt, metux IT consult < in...@me...> wrote: > Hi folks, > > does anybody here have some success in programming an > spi flash behind an artix-7 via jtag ? > > > --mtx > > -- > Enrico Weigelt, metux IT consult > Free software and Linux embedded engineering > in...@me... -- +49-151-27565287 > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > OpenOCD-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openocd-devel > |