lm4tools
lm4tools copied to clipboard
Add flash status including writing address, speed, progress and left time
The status are shown below when flashing,
example 1.
flash start address 0x0 (0K)
ICDI version: 12245
writing: 0x5d000, speed: 9.88KB/s, progress: 100.00%, ETA: 0.00s
example 2.
flash start address 0x7D000 (500K)
ICDI version: 12245
writing: 0x88400, speed: 9.86KB/s, progress: 100.00%, ETA: 0.00s
Please fix the indentation, you seem to be using spaces instead of tabs. Also to maintain consistency, variables should be declared at the beginning of functions (not C99).
OK, please check the updated codes.