From: <cw...@pa...> - 2017-02-05 11:50:57
|
I have an Olimex iCE40HX1K-EVB, would it be possible to program the W25Q16BVSSIG spi flash with a ftdi jtag adapter using Openocd? I have looked in the Openocd files and could not find an example of a target board which would indicate if this was possible and could not find a useable example on the web. The schematic of the board https://github.com/OLIMEX/iCE40HX1K-EVB/blob/master/iCE40HX1K-EVB_Rev_B.pdf The Jtag adapters are BusBlaster v3 and a lock-pick-Tiny 2. Regards Carl |
From: Paul F. <fer...@gm...> - 2017-02-05 12:14:46
|
Hi, On Sun, Feb 05, 2017 at 06:35:52AM -0500, cw...@pa... wrote: > I have an Olimex iCE40HX1K-EVB, would it be possible to program the > W25Q16BVSSIG spi flash with a ftdi jtag adapter using Openocd? Yes, you can generate an SVF file and play it back with OpenOCD ("svf" command). You do not need a target config for that, just source the interface config and then add an appropriate "jtag newtap" command. An example would be "board/dp_busblaster_v3.cfg". Alternative approach that might work is to use the jtagspi flash driver but you'll need to generate a trivial proxy and upload the bitstream with SVF. > The Jtag adapters are BusBlaster v3 and a lock-pick-Tiny 2. Both should be equally suitable for your purpose. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fer...@gm... |
From: <cw...@pa...> - 2017-02-05 13:57:07
|
Quoting Paul Fertser <fer...@gm...>: Hi Paul Thank you for your suggestions I have download the SVF specification, to see how I go about turning the bin file from the Icestorm software suite into that format. Carl > Hi, > > On Sun, Feb 05, 2017 at 06:35:52AM -0500, cw...@pa... wrote: >> I have an Olimex iCE40HX1K-EVB, would it be possible to program the >> W25Q16BVSSIG spi flash with a ftdi jtag adapter using Openocd? > > Yes, you can generate an SVF file and play it back with OpenOCD ("svf" > command). You do not need a target config for that, just source the > interface config and then add an appropriate "jtag newtap" command. > > An example would be "board/dp_busblaster_v3.cfg". > > Alternative approach that might work is to use the jtagspi flash > driver but you'll need to generate a trivial proxy and upload the > bitstream with SVF. > >> The Jtag adapters are BusBlaster v3 and a lock-pick-Tiny 2. > > Both should be equally suitable for your purpose. > > -- > Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! > mailto:fer...@gm... |
From: Paul F. <fer...@gm...> - 2017-02-05 14:48:25
|
On Sun, Feb 05, 2017 at 08:56:59AM -0500, cw...@pa... wrote: > Thank you for your suggestions I have download the SVF specification, to see > how I go about turning the bin file from the Icestorm software suite into > that format. There certainly should be an option in the Icestorm software itself to generate SVF. Probably via selecting it as a special "adapter" type. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fer...@gm... |
From: Paul F. <fer...@gm...> - 2017-02-05 19:44:05
|
On Sun, Feb 05, 2017 at 08:39:27PM +0100, Andreas Fritiofson wrote: > Although this chip strangely enough seems to lack JTAG... ??? > So then SVF can't work. The adapters are electrically capable of programming the > FPGA or SPI flash but I'm afraid OpenOCD won't help you do it. There are other > tools that can program an SPI flash through an FTDI adapter, I've done it once > but unfortunately I can't remember the name. That must be flashrom I guess. Probably OpenOCD can do that too with jtagspi and nCS pulled low externally but I haven't tried. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fer...@gm... |
From: Paul F. <fer...@gm...> - 2017-02-05 20:51:36
|
On Sun, Feb 05, 2017 at 08:39:27PM +0100, Andreas Fritiofson wrote: > Den 5 feb. 2017 3:49 em skrev "Paul Fertser" <[1]fer...@gm...>: > > On Sun, Feb 05, 2017 at 08:56:59AM -0500, [2]cw...@pa... wrote: > > Thank you for your suggestions I have download the SVF specification, to see > > how I go about turning the bin file from the Icestorm software suite into > > that format. > > There certainly should be an option in the Icestorm software itself to > generate SVF. Probably via selecting it as a special "adapter" type. > > Although this chip strangely enough seems to lack JTAG... ??? > So then SVF can't work. The adapters are electrically capable of programming the > FPGA or SPI flash but I'm afraid OpenOCD won't help you do it. I took a look at the schematics of the board in question, duh, it's obvious there's no JTAG there. So with proper cable pulling CRESET low it should be an easy job for "flashrom" as it supports most common JTAG adapters. Alternatively, jtagspi OpenOCD driver might be used but it'll require some modifications to avoid extra (in this case) IR scans and state transitions. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fer...@gm... |
From: <cw...@pa...> - 2017-02-06 00:16:17
|
Thank you for your help, I will follow up with the suggestion of the flashrom program. Quoting Paul Fertser <fer...@gm...>: > On Sun, Feb 05, 2017 at 08:39:27PM +0100, Andreas Fritiofson wrote: >> Den 5 feb. 2017 3:49 em skrev "Paul Fertser" <[1]fer...@gm...>: >> >> On Sun, Feb 05, 2017 at 08:56:59AM -0500, [2]cw...@pa... wrote: >> > Thank you for your suggestions I have download the SVF >> specification, to see >> > how I go about turning the bin file from the Icestorm software >> suite into >> > that format. >> >> There certainly should be an option in the Icestorm software itself to >> generate SVF. Probably via selecting it as a special "adapter" type. >> >> Although this chip strangely enough seems to lack JTAG... ??? >> So then SVF can't work. The adapters are electrically capable of >> programming the >> FPGA or SPI flash but I'm afraid OpenOCD won't help you do it. > > I took a look at the schematics of the board in question, duh, it's > obvious there's no JTAG there. > > So with proper cable pulling CRESET low it should be an easy job for > "flashrom" as it supports most common JTAG adapters. Alternatively, > jtagspi OpenOCD driver might be used but it'll require some > modifications to avoid extra (in this case) IR scans and state > transitions. > > -- > Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! > mailto:fer...@gm... |