logo elektroda
logo elektroda
X
logo elektroda

ESP32 + W25Q64 + Arduino IDE - Error 0x004 at flash.begin()

padf00t 1701 0
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16828914
    padf00t
    Level 2  
    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

    
    #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() {
    }
    
    .
  • ADVERTISEMENT
ADVERTISEMENT