Link to failing SVF and XSVF files: 
https://www.dropbox.com/sh/p4qs6q3w37wnj63/AAAhKyz0WMt-xIF4ryUWLDuoa?dl=0


---

** [tickets:#102] Segfault in SVF module**

**Status:** new
**Milestone:** 0.9.0
**Labels:** svf 
**Created:** Wed Jul 29, 2015 07:58 PM UTC by Alex Forencich
**Last Updated:** Wed Jul 29, 2015 08:04 PM UTC
**Owner:** nobody


I am getting a segfault when attempting to program a Xilinx Virtex 6 FPGA via 
an SVF file.  I attempted to use XSVF as well, but openocd xsvf support is 
broken.  

This is the output I get leading up to the segfault:

svf processing file: "fpga.svf"
TRST OFF;
ENDIR IDLE;
ENDDR IDLE;
STATE RESET;
STATE IDLE;
FREQUENCY 1E6 HZ;
adapter speed: 1000 kHz
TIR 0 ;
HIR 0 ;
TDR 0 ;
HDR 0 ;
TIR 0 ;
HIR 0 ;
HDR 0 ;
TDR 0 ;
SIR 10 TDI (03c9) SMASK (03ff) ;
SDR 32 TDI (00000000) SMASK (ffffffff) TDO (f42a8093) MASK (0fffffff) ;
TIR 0 ;
HIR 0 ;
TDR 0 ;
HDR 0 ;
TIR 0 ;
HIR 0 ;
TDR 0 ;
HDR 0 ;
TIR 0 ;
HIR 0 ;
HDR 0 ;
TDR 0 ;
SIR 10 TDI (03c9) ;
SDR 32 TDI (00000000) TDO (f42a8093) ;
SIR 10 TDI (03ff) ;
SIR 10 TDI (03cb) ;
SIR 10 TDI (03d4) ;
RUNTEST 100000 TCK;
SIR 10 TDI (03d4) TDO (0010) MASK (0010) ;
SIR 10 TDI (03c5) TDO (0000) MASK (0000) ;
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
 ;
Segmentation fault (core dumped)

Note that the SVF file is about 60 MB.  This error probably stems from a 
243,000 line SDR instruction (SDR 119784640 TDI (0000000400000004...60MB 
snip...fffffffffff) ; )


---

Sent from sourceforge.net because [email protected] 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.
------------------------------------------------------------------------------
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to