FreeCalypso > hg > freecalypso-sw
diff loadtools/ltflash.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 | 61c7480b3c50 |
| children | f027c6fbe37e |
line wrap: on
line diff
--- a/loadtools/ltflash.c Mon Dec 23 08:49:38 2013 +0000 +++ b/loadtools/ltflash.c Mon Dec 23 18:40:04 2013 +0000 @@ -273,6 +273,7 @@ printf("Bank %d base address: %08lX\n", bank, (u_long) bi->base_addr); printf("Bank %d total size: %lx\n", bank, (u_long) bi->total_size); printf("Sectors in bank %d: %u\n", bank, bi->nsectors); + flash_id_check(bank, 1); if (selected_flash_device->nbanks == 2 && !bank) printf("\nFlash device has 2 banks; flash2 command available\n"); return(0); @@ -313,7 +314,6 @@ } extern int flashcmd_erase(); -extern int flashcmd_idcheck(); extern int flashcmd_progbin(); extern int flashcmd_program_m0(); extern int flashcmd_program_srec(); @@ -328,7 +328,6 @@ {"dump2srec", flashcmd_dump2file}, {"erase", flashcmd_erase}, {"help", flashcmd_help}, - {"idcheck", flashcmd_idcheck}, {"info", flashcmd_info}, {"program-bin", flashcmd_progbin}, {"program-m0", flashcmd_program_m0},
