X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/0fc0fca5830c9d1a430f40ff935fb399f91b8adc..8652988d62b19631e498b62a3800f0decb5e743a:/tools/merge-srec.pl diff --git a/tools/merge-srec.pl b/tools/merge-srec.pl deleted file mode 100644 index 683e6d3c..00000000 --- a/tools/merge-srec.pl +++ /dev/null @@ -1,23 +0,0 @@ -# merge the code that initially executes out of flash with the RAM image - -($flashFile, $ramFile) = @ARGV; - -open(FLASH, $flashFile) or die "$flashFile: $!\n"; - -while() { - print if /^S3/; - $EOF_record = $_ if /^S[789]/; -} - -open(RAM, $ramFile) or die "$ramFile: $!\n"; - -while() { - if(/^S3(..)(........)(.*)([0-9a-fA-F]{2})/) { - $addr = sprintf('%08X', hex($2) - 0x00200000 + 0x200); - $line = "$1$addr$3"; - $checksum = 0; - $checksum += $_ foreach map(hex, unpack("a2"x40, $line)); - print "S3$line", sprintf("%02X", ($checksum%256)^0xff ), "\n"; - } -} -print $EOF_record;