projects
/
pyfrprog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e55c405
)
be less verbose
author
Bernhard Urban
<lewurm@gmail.com>
Sat, 24 Apr 2010 19:13:19 +0000
(21:13 +0200)
committer
Bernhard Urban
<lewurm@gmail.com>
Sat, 24 Apr 2010 19:13:19 +0000
(21:13 +0200)
frprog.py
patch
|
blob
|
history
diff --git
a/frprog.py
b/frprog.py
index ce102ee8af94f89f61fe3a9f429d525e9a0cd1d9..8693ad0365b5a688a5dea5ffcf4f33948d1b2c2e 100755
(executable)
--- a/
frprog.py
+++ b/
frprog.py
@@
-244,6
+244,8
@@
def main(argv=None):
del tty
tty = SerialPort(DEVICE, 100, BOOTLOADER_BAUDRATE)
del tty
tty = SerialPort(DEVICE, 100, BOOTLOADER_BAUDRATE)
+ SPLIT = 30
+ s = SPLIT
print "Transfering pkernel program to IRAM",
# let the fun begin!
for seq in bootloaderseqs:
print "Transfering pkernel program to IRAM",
# let the fun begin!
for seq in bootloaderseqs:
@@
-254,8
+256,12
@@
def main(argv=None):
#print "RAMing", len(seq.data), "bytes at address", hex(addr)
bootromWRITE(addr, len(seq.data), seq.data)
tty.flush()
#print "RAMing", len(seq.data), "bytes at address", hex(addr)
bootromWRITE(addr, len(seq.data), seq.data)
tty.flush()
- sys.stdout.write(".")
- sys.stdout.flush()
+
+ s = s - 1
+ if s == 0:
+ sys.stdout.write(".")
+ sys.stdout.flush()
+ s = SPLIT
print
# execute our pkernel finally and set pkernel conform baudrate
print
# execute our pkernel finally and set pkernel conform baudrate
@@
-267,6
+273,7
@@
def main(argv=None):
print "Performing ChipErase..."
pkernCHIPERASE()
print "Performing ChipErase..."
pkernCHIPERASE()
+ s = SPLIT
print "Flashing",
for seq in pkernelseqs:
# skip seqs only consisting of 0xffs
print "Flashing",
for seq in pkernelseqs:
# skip seqs only consisting of 0xffs
@@
-276,8
+283,12
@@
def main(argv=None):
#print "Flashing", len(seq.data), "bytes at address", hex(seq.address)
pkernWRITE(seq.address, len(seq.data), seq.data)
tty.flush()
#print "Flashing", len(seq.data), "bytes at address", hex(seq.address)
pkernWRITE(seq.address, len(seq.data), seq.data)
tty.flush()
- sys.stdout.write(".")
- sys.stdout.flush()
+
+ s = s - 1
+ if s == 0:
+ sys.stdout.write(".")
+ sys.stdout.flush()
+ s = SPLIT
print
duration = time.time() - starttime
print
duration = time.time() - starttime