]>
Commit | Line | Data |
---|---|---|
30f2a7d3 | 1 | # merge the code that initially executes out of flash with the RAM image\r |
2 | \r | |
3 | ($flashFile, $ramFile) = @ARGV;\r | |
4 | \r | |
5 | open(FLASH, $flashFile) or die "$flashFile: $!\n";\r | |
6 | \r | |
7 | while(<FLASH>) {\r | |
8 | print if /^S3/;\r | |
9 | }\r | |
10 | \r | |
11 | open(RAM, $ramFile) or die "$ramFile: $!\n";\r | |
12 | \r | |
13 | while(<RAM>) {\r | |
14 | if(/^S3(..)(........)(.*)/) {\r | |
15 | $addr = sprintf('%08X', hex($2) - 0x00200000 + 0x200);\r | |
16 | print "S3$1$addr$3\n";\r | |
17 | }\r | |
18 | }\r |