URL
https://opencores.org/ocsvn/xulalx25soc/xulalx25soc/trunk
[/] [xulalx25soc/] [trunk/] [sw/] [dumpflash.cpp] - Diff between revs 5 and 105
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 5 |
Rev 105 |
Line 69... |
Line 69... |
// Start with testing the version:
|
// Start with testing the version:
|
printf("VERSION: %08x\n", m_fpga->readio(R_VERSION));
|
printf("VERSION: %08x\n", m_fpga->readio(R_VERSION));
|
|
|
// SPI flash testing
|
// SPI flash testing
|
// Enable the faster (vector) reads
|
// Enable the faster (vector) reads
|
bool vector_read = false;
|
bool vector_read = true;
|
unsigned sz;
|
unsigned sz;
|
|
|
if (vector_read) {
|
if (vector_read) {
|
m_fpga->readi(DUMPMEM, BUFLN, buf);
|
m_fpga->readi(DUMPMEM, BUFLN, buf);
|
} else {
|
} else {
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.