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

Subversion Repositories s6soc

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

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

Rev 14 Rev 19
Line 154... Line 154...
                const unsigned *data, const bool verify) {
                const unsigned *data, const bool verify) {
        // Work through this one sector at a time.
        // Work through this one sector at a time.
        // If this buffer is equal to the sector value(s), go on
        // If this buffer is equal to the sector value(s), go on
        // If not, erase the sector
        // If not, erase the sector
 
 
 
        /*
 
        fprintf(stderr, "FLASH->write(%08x, %d, ..., %s)\n", addr, len,
 
                        (verify)?"Verify":"");
 
        */
        // m_fpga->writeio(R_QSPI_CREG, 2);
        // m_fpga->writeio(R_QSPI_CREG, 2);
        // m_fpga->readio(R_VERSION);   // Read something innocuous
        // m_fpga->readio(R_VERSION);   // Read something innocuous
        // m_fpga->writeio(R_QSPI_SREG, 0);
        // m_fpga->writeio(R_QSPI_SREG, 0);
        // m_fpga->readio(R_VERSION);   // Read something innocuous
        // m_fpga->readio(R_VERSION);   // Read something innocuous
 
 

powered by: WebSVN 2.1.0

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