FreeCalypso > hg > freecalypso-sw
changeset 66:98f855e58c9f
fc-loadtool flash program-bin command: forgot to print progress dots
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sat, 29 Jun 2013 15:21:55 +0000 |
parents | a7da6648a7f8 |
children | b8f335553000 |
files | loadtools/flprogbin.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/loadtools/flprogbin.c Fri Jun 28 21:12:22 2013 +0000 +++ b/loadtools/flprogbin.c Sat Jun 29 15:21:55 2013 +0000 @@ -106,6 +106,7 @@ targv[0] = "AMFB"; targv[1] = shortarg; targv[2] = 0; + printf("Setting flash base address: %s %s\n", targv[0], targv[1]); tpinterf_make_cmd(targv); if (tpinterf_send_cmd() < 0) { fclose(binf); @@ -121,6 +122,7 @@ targv[1] = shortarg; targv[2] = longarg; targv[3] = 0; + printf("Programming flash, each \'.\' = 256 bytes of data\n"); while (len) { if (len >= 256) reclen = 256; @@ -146,7 +148,10 @@ } flashoff += reclen; len -= reclen; + putchar('.'); + fflush(stdout); } + putchar('\n'); fclose(binf); return(0); }