section >= 0x148000 and also have to calculate a other writeaddress as
given in the mhx file. however, we need those addresses later for the
real flashing part (through pkernel)
# let the fun begin!
for seq in flashseqs:
- print "Flashing", len(seq.data), "bytes at address", hex(seq.address)
- cmdWRITE(seq.address, len(seq.data), seq.data)
+ if(seq.address >= 0x148000):
+ continue
+ print "RAMing", len(seq.data), "bytes at address", hex(seq.address)
+ cmdWRITE(seq.address - flashseqs[0].address + 0x30000, len(seq.data), seq.data)
+
+cmdCALL(0x30000);
sys.exit(0)
print
"""
-
+"""
# write some data in the iram and try to execute it
data_wr =[
0x9B,0x00,
print "Received Checksum:", last_checksum
print
cmdCALL(0x00030000)
+"""