support files with copy header
This commit is contained in:
parent
c30ca4ca54
commit
8650109879
@ -357,7 +357,7 @@ int main(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if DO_CRC_CHECK
|
#if DO_CRC_CHECK
|
||||||
info_P(PSTR("-->CRC Checkn"));
|
info_P(PSTR("-->CRC Check\n"));
|
||||||
crc_check_bulk_memory(0x000000, req_bank_size * req_bank_cnt, req_bank_size);
|
crc_check_bulk_memory(0x000000, req_bank_size * req_bank_cnt, req_bank_size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@ -41,9 +41,16 @@ def test_algo():
|
|||||||
def main():
|
def main():
|
||||||
#import cProfile
|
#import cProfile
|
||||||
#cProfile.run('test_performance()')
|
#cProfile.run('test_performance()')
|
||||||
|
if sys.argv[1].endswith(".smc"):
|
||||||
|
copy_header= True
|
||||||
|
|
||||||
size = os.stat(sys.argv[1])[6]
|
size = os.stat(sys.argv[1])[6]
|
||||||
fd = open(sys.argv[1])
|
fd = open(sys.argv[1])
|
||||||
|
|
||||||
|
if copy_header:
|
||||||
|
fd.seek(512)
|
||||||
|
size = size - 512
|
||||||
|
|
||||||
addr = 0x0000
|
addr = 0x0000
|
||||||
step = 2**15
|
step = 2**15
|
||||||
result = []
|
result = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user