FreeCalypso > hg > freecalypso-sw
comparison loadtools/flprogbin.c @ 205:cd12d1049f91
fc-loadtool: flash ID check moved into flash info, added to erase and program
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 23 Dec 2013 18:40:04 +0000 |
parents | 336f5cc96810 |
children | f027c6fbe37e |
comparison
equal
deleted
inserted
replaced
204:61c7480b3c50 | 205:cd12d1049f91 |
---|---|
102 fclose(binf); | 102 fclose(binf); |
103 return(-1); | 103 return(-1); |
104 } | 104 } |
105 | 105 |
106 /* finally done with the arg parsing etc, can get to work now */ | 106 /* finally done with the arg parsing etc, can get to work now */ |
107 if (flash_id_check(bank, 0) < 0) { | |
108 fclose(binf); | |
109 return(-1); | |
110 } | |
107 sprintf(shortarg, "%lx", (u_long) bi->base_addr); | 111 sprintf(shortarg, "%lx", (u_long) bi->base_addr); |
108 targv[0] = "AMFB"; | 112 targv[0] = "AMFB"; |
109 targv[1] = shortarg; | 113 targv[1] = shortarg; |
110 targv[2] = 0; | 114 targv[2] = 0; |
111 printf("Setting flash base address: %s %s\n", targv[0], targv[1]); | 115 printf("Setting flash base address: %s %s\n", targv[0], targv[1]); |