Loading MDOR_codereload_checker.py +16 −6 Original line number Diff line number Diff line Loading @@ -136,7 +136,7 @@ for command in commands: checks['PSA06066'][commandNum] = False print('ERROR: command data exeed the maximum %i word, %i passed' % datasplit*8/dataword, commandlen) eaddr = (int(start_address,16) + int(commandlen*dataword/4) ) eaddr = (int(start_address,16) + int(commandlen*dataword/8) ) if parameter.attrib['name']=='PSAY6069': Loading @@ -146,9 +146,12 @@ for command in commands: checks['PSA06069'][commandNum] = False print('ERROR: command data size %i are not of the size declared %i' % len(commanddata), commandlen) dataaddr_start = int( ((int(page_code) - 8)*65536 +int(start_address,16) )) dataaddr_end = int( ((int(page_code) - 8)*65536 +int(format(eaddr,'04X'),16))) if not imagedata[dataaddr_start:dataaddr_end].decode('ascii') == commanddata: dataaddr_start = int( ((int(page_code) - 8)*32*1024 +int(start_address,16) )) dataaddr_end = int( ((int(page_code) - 8)*32*1024 +int(format(eaddr,'04X'),16))) #both the addresses are in Byte. You shall read the binary in hex dataaddr_start_hex = dataaddr_start*2 dataaddr_end_hex = dataaddr_end*2 if not imagedata[dataaddr_start_hex:dataaddr_end_hex].decode('ascii') == commanddata: checks['PSA06069'][commandNum] = False print('ERROR: command data are not follow the input image') ''' Loading Loading @@ -177,13 +180,20 @@ if checks['PSA06065'].all(): else: print('data Addressed not matching please check') dataaddr_start = int( (int(page_code) - 8)*65536) dataaddr_end = int( (int(page_code) - 8)*65536 + 65536) dataaddr_start = int( (int(page_code) - 8)*65536) # here in hex dataaddr_end = int( (int(page_code) - 8)*65536 + 65536) # here in hex if imagedata[dataaddr_start:dataaddr_end].decode('ascii') == checks['data']: print('Compare data with image: passed') else: print('Compare data with image not matching, please check') #check sum the page if int(checksum(checks['data'][:-4]),INT_BITS) == int(checks['data'][-4:],INT_BITS): print('Page checksum comparison: passed!'); else: print('checksum of page not passed:\n data in page %s, checksum in last 16 bit: %s' % (checksum(checks['data'][:-4]),checks['data'][-4:]) ); exit(); Loading output/MDOR_BPSA_T000_codepatch_0000.bc +2 −2 Original line number Diff line number Diff line <planningData> <commandRequests> <header formatVersion="1" type="MDOR"> <genTime>2023-185T20:01:19.772Z</genTime> <genTime>2023-191T16:51:19.440Z</genTime> </header> <occurrenceList count="147" creationTime="2023-185T20:01:19.772Z" author="ISA team"> <occurrenceList count="147" creationTime="2023-191T16:51:19.440Z" author="ISA team"> <command name="ZSAY0602"> <passID /> <uniqueID>BPSA0000ISA060200001</uniqueID> Loading output/MDOR_BPSA_T000_codepatch_0001.bc +2 −2 Original line number Diff line number Diff line <planningData> <commandRequests> <header formatVersion="1" type="MDOR"> <genTime>2023-185T20:01:19.772Z</genTime> <genTime>2023-191T16:51:19.440Z</genTime> </header> <occurrenceList count="147" creationTime="2023-185T20:01:19.772Z" author="ISA team"> <occurrenceList count="147" creationTime="2023-191T16:51:19.440Z" author="ISA team"> <command name="ZSAY0602"> <passID /> <uniqueID>BPSA0000ISA060200148</uniqueID> Loading Loading
MDOR_codereload_checker.py +16 −6 Original line number Diff line number Diff line Loading @@ -136,7 +136,7 @@ for command in commands: checks['PSA06066'][commandNum] = False print('ERROR: command data exeed the maximum %i word, %i passed' % datasplit*8/dataword, commandlen) eaddr = (int(start_address,16) + int(commandlen*dataword/4) ) eaddr = (int(start_address,16) + int(commandlen*dataword/8) ) if parameter.attrib['name']=='PSAY6069': Loading @@ -146,9 +146,12 @@ for command in commands: checks['PSA06069'][commandNum] = False print('ERROR: command data size %i are not of the size declared %i' % len(commanddata), commandlen) dataaddr_start = int( ((int(page_code) - 8)*65536 +int(start_address,16) )) dataaddr_end = int( ((int(page_code) - 8)*65536 +int(format(eaddr,'04X'),16))) if not imagedata[dataaddr_start:dataaddr_end].decode('ascii') == commanddata: dataaddr_start = int( ((int(page_code) - 8)*32*1024 +int(start_address,16) )) dataaddr_end = int( ((int(page_code) - 8)*32*1024 +int(format(eaddr,'04X'),16))) #both the addresses are in Byte. You shall read the binary in hex dataaddr_start_hex = dataaddr_start*2 dataaddr_end_hex = dataaddr_end*2 if not imagedata[dataaddr_start_hex:dataaddr_end_hex].decode('ascii') == commanddata: checks['PSA06069'][commandNum] = False print('ERROR: command data are not follow the input image') ''' Loading Loading @@ -177,13 +180,20 @@ if checks['PSA06065'].all(): else: print('data Addressed not matching please check') dataaddr_start = int( (int(page_code) - 8)*65536) dataaddr_end = int( (int(page_code) - 8)*65536 + 65536) dataaddr_start = int( (int(page_code) - 8)*65536) # here in hex dataaddr_end = int( (int(page_code) - 8)*65536 + 65536) # here in hex if imagedata[dataaddr_start:dataaddr_end].decode('ascii') == checks['data']: print('Compare data with image: passed') else: print('Compare data with image not matching, please check') #check sum the page if int(checksum(checks['data'][:-4]),INT_BITS) == int(checks['data'][-4:],INT_BITS): print('Page checksum comparison: passed!'); else: print('checksum of page not passed:\n data in page %s, checksum in last 16 bit: %s' % (checksum(checks['data'][:-4]),checks['data'][-4:]) ); exit(); Loading
output/MDOR_BPSA_T000_codepatch_0000.bc +2 −2 Original line number Diff line number Diff line <planningData> <commandRequests> <header formatVersion="1" type="MDOR"> <genTime>2023-185T20:01:19.772Z</genTime> <genTime>2023-191T16:51:19.440Z</genTime> </header> <occurrenceList count="147" creationTime="2023-185T20:01:19.772Z" author="ISA team"> <occurrenceList count="147" creationTime="2023-191T16:51:19.440Z" author="ISA team"> <command name="ZSAY0602"> <passID /> <uniqueID>BPSA0000ISA060200001</uniqueID> Loading
output/MDOR_BPSA_T000_codepatch_0001.bc +2 −2 Original line number Diff line number Diff line <planningData> <commandRequests> <header formatVersion="1" type="MDOR"> <genTime>2023-185T20:01:19.772Z</genTime> <genTime>2023-191T16:51:19.440Z</genTime> </header> <occurrenceList count="147" creationTime="2023-185T20:01:19.772Z" author="ISA team"> <occurrenceList count="147" creationTime="2023-191T16:51:19.440Z" author="ISA team"> <command name="ZSAY0602"> <passID /> <uniqueID>BPSA0000ISA060200148</uniqueID> Loading