OpenCores
URL https://opencores.org/ocsvn/s6soc/s6soc/trunk

Subversion Repositories s6soc

[/] [s6soc/] [trunk/] [sw/] [host/] [flashdrvr.cpp] - Diff between revs 11 and 14

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 11 Rev 14
Line 196... Line 196...
 
 
                // Just erase anyway
                // Just erase anyway
                if (!need_erase)
                if (!need_erase)
                        printf("NO ERASE NEEDED\n");
                        printf("NO ERASE NEEDED\n");
                else {
                else {
                        printf("ERASING SECTOR %08x\n", s);
                        printf("ERASING SECTOR: %08x\n", s);
                        if (!erase_sector(s, verify)) {
                        if (!erase_sector(s, verify)) {
                                printf("SECTOR ERASE FAILED!\n");
                                printf("SECTOR ERASE FAILED!\n");
                                return false;
                                return false;
                        } newv = (s<addr) ? addr : s;
                        } newv = (s<addr) ? addr : s;
                }
                }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.