]> git.zerfleddert.de Git - proxmark3-svn/blob - tools/merge-srec.pl
Added LF frequency adjustments from d18c7db, cleaned up code,
[proxmark3-svn] / tools / merge-srec.pl
1 # merge the code that initially executes out of flash with the RAM image
2
3 ($flashFile, $ramFile) = @ARGV;
4
5 open(FLASH, $flashFile) or die "$flashFile: $!\n";
6
7 while(<FLASH>) {
8 print if /^S3/;
9 }
10
11 open(RAM, $ramFile) or die "$ramFile: $!\n";
12
13 while(<RAM>) {
14 if(/^S3(..)(........)(.*)/) {
15 $addr = sprintf('%08X', hex($2) - 0x00200000 + 0x200);
16 print "S3$1$addr$3\n";
17 }
18 }
Impressum, Datenschutz