FreeCalypso > hg > freecalypso-sw
comparison loadtools/flprogsrec.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 | ae4921a3aa33 |
children | f027c6fbe37e |
comparison
equal
deleted
inserted
replaced
204:61c7480b3c50 | 205:cd12d1049f91 |
---|---|
24 | 24 |
25 srr.filename = imgfile; | 25 srr.filename = imgfile; |
26 resp = open_srec_file(&srr); | 26 resp = open_srec_file(&srr); |
27 if (resp < 0) | 27 if (resp < 0) |
28 return(resp); | 28 return(resp); |
29 resp = flash_id_check(bank, 0); | |
30 if (resp) { | |
31 fclose(srr.openfile); | |
32 return(resp); | |
33 } | |
29 bi = flash_bank_info + bank; | 34 bi = flash_bank_info + bank; |
30 sprintf(shortarg, "%lx", (u_long) bi->base_addr); | 35 sprintf(shortarg, "%lx", (u_long) bi->base_addr); |
31 targv[0] = "AMFB"; | 36 targv[0] = "AMFB"; |
32 targv[1] = shortarg; | 37 targv[1] = shortarg; |
33 targv[2] = 0; | 38 targv[2] = 0; |