X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=openocd-jtag-boundary-scan.pl;h=b2a279416317fd81df989746616dca959ba1a735;hb=e1b49faf67de9ba598bf94743e828478fab86eec;hp=001bb28e61b781bf60e570b51e194b76573e4052;hpb=18a36b9061131de8a7df09ba89c7f4a4ad48d528;p=x300-pci diff --git a/openocd-jtag-boundary-scan.pl b/openocd-jtag-boundary-scan.pl index 001bb28..b2a2794 100755 --- a/openocd-jtag-boundary-scan.pl +++ b/openocd-jtag-boundary-scan.pl @@ -5,6 +5,7 @@ use strict; use autodie; use Data::Dump qw(dump); use IO::Socket::INET; +use Storable; my $openocd_remote = shift @ARGV || 'picam:4444'; @@ -56,6 +57,7 @@ foreach my $map ( split(/\s*,\s*/, $pin_map) ) { } warn "# pin2io = ",dump( $pin2io ); +store \$pin2io, '/dev/shm/pin2io.storable'; my @sort = sort { my $aa = $a; $aa =~ s/\D+//g; @@ -144,7 +146,8 @@ sub diff_bits { $o[$i].='>'.$n[$i]; } } - return join('', @o); + my $diff = join('', @o); + print "# diff_bits $diff\n"; } print "[press enter]\n"; @@ -163,7 +166,7 @@ if ( $cmd =~ /(\d+)=(\d)/ ) { . substr($BSR,$bit+3) ; - print diff_bits( $BSR, $b ), $/; + diff_bits( $BSR, $b ), $/; print $sock "irscan x300.tap 0x55\n"; # SAMPLE/PRELOAD print $sock "drscan x300.tap 288 0x", bin2hex($b), "\n";