FreeCalypso > hg > freecalypso-tools
comparison loadtools/flamdsec.c @ 982:1c5b485f10ba
fc-loadtool flash: do AMD reset after PL-J PPB write operations
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 02 Dec 2023 06:04:37 +0000 |
parents | f21798eb13cf |
children | 0407d14fb854 |
comparison
equal
deleted
inserted
replaced
981:f21798eb13cf | 982:1c5b485f10ba |
---|---|
224 pulsecnt++; | 224 pulsecnt++; |
225 if (!(stat & 1)) | 225 if (!(stat & 1)) |
226 continue; | 226 continue; |
227 printf("PPB 0x%X programmed with %u pulse%s\n", sector_addr, | 227 printf("PPB 0x%X programmed with %u pulse%s\n", sector_addr, |
228 pulsecnt, pulsecnt > 1 ? "s" : ""); | 228 pulsecnt, pulsecnt > 1 ? "s" : ""); |
229 return(0); | 229 return amd_reset_cmd(bi); |
230 } | 230 } |
231 printf("PPB 0x%X programming FAILED, tried %u pulses\n", sector_addr, | 231 printf("PPB 0x%X programming FAILED, tried %u pulses\n", sector_addr, |
232 pulsecnt); | 232 pulsecnt); |
233 return(-1); | 233 return(-1); |
234 } | 234 } |
293 pulsecnt++; | 293 pulsecnt++; |
294 if (stat & 1) | 294 if (stat & 1) |
295 continue; | 295 continue; |
296 printf("PPB erase cycle succeeded after %u pulse%s\n", | 296 printf("PPB erase cycle succeeded after %u pulse%s\n", |
297 pulsecnt, pulsecnt > 1 ? "s" : ""); | 297 pulsecnt, pulsecnt > 1 ? "s" : ""); |
298 return(0); | 298 return amd_reset_cmd(bi); |
299 } | 299 } |
300 printf("PPB erase cycle FAILED, tried %u pulses\n", pulsecnt); | 300 printf("PPB erase cycle FAILED, tried %u pulses\n", pulsecnt); |
301 return(-1); | 301 return(-1); |
302 } | 302 } |
303 | 303 |