Is it possible to read all the data on a Micron N25Q064A chip using the SerialFlash Arduino Library?
It doesn't recognize the chip when I run the examples.
When I do this, it only returns 0 or 255 for every memory address
It doesn't recognize the chip when I run the examples.
When I do this, it only returns 0 or 255 for every memory address
Code:
#include <SerialFlash.h>
#include <SPI.h>
const int FlashChipSelect = 6; // digital pin for flash chip CS pin
void setup() {
Serial.begin(115200);
while (!Serial) ;
delay(100);
Serial.println("Raw SerialFlash Hardware Test");
SerialFlash.begin(FlashChipSelect);
unsigned char buf[1];
Serial.println();
Serial.println("Reading Chip...");
for(unsigned long i=0; i< 4294967295L; i++){
Serial.print(" addr = ");
Serial.print(i, HEX);
Serial.print(", data = ");
SerialFlash.read(i, buf, 1);
Serial.print(buf[0]);
Serial.println();
}
}
void loop() {
// do nothing after the test
}