Hi,
I've been working with ESP-WROOM-32 for some time now via the Arduino IDE. I am trying to connect a W25Q64 memory module to it. I am using this library https://github.com/Marzogh/SPIFlash But the memory cannot start working. When calling flash.begin() it throws an error 0x004 which means the memory is busy. I have no idea how to fight this. Perhaps someone has encountered the same problem and knows how to solve it? I would be very grateful for help!
Flash connections ->ESP32
CS -> IO5
CLK ->IO18
DI -> IO19
DO -> IO23
.
I've been working with ESP-WROOM-32 for some time now via the Arduino IDE. I am trying to connect a W25Q64 memory module to it. I am using this library https://github.com/Marzogh/SPIFlash But the memory cannot start working. When calling flash.begin() it throws an error 0x004 which means the memory is busy. I have no idea how to fight this. Perhaps someone has encountered the same problem and knows how to solve it? I would be very grateful for help!
Flash connections ->ESP32
CS -> IO5
CLK ->IO18
DI -> IO19
DO -> IO23
#include<SPIFlash.h>
#include<SPI.h>
#define csPin 5
SPIFlash flash(csPin);
void setup() {
Serial.begin(115200);
while (!flash.begin()){
if (flash.error()) {
Serial.print(flash.error());
}
}
}
void loop() {
}