M5Paper crashing on EPD.Clear, or SPIFFs.begin



  • Hello,

    I started working on M5Paper in the summer, had fun, got my project more or less working. Then life got in the way, I got a new computer, I moved house.

    Now I've finally opened it up again. Installed the driver and Arduino IDE (2.0.3, previously I was using 1.8) on my new computer (Macbook M1, previously on Intel Macbook); installed the M5Stack board manager, installed the M5EPD library; compiled my program, uploaded it.

    Serial monitor just showed repeated

    M5EPD initializing...OK
    M5EPD initializing...OK
    M5EPD initializing...OK
    

    ... etc

    I added a few more lines of debugging,

      Serial.println("\n\n------- begin ----");
      M5.begin();
      Serial.println("------- SetRotation ----");
      M5.EPD.SetRotation(90);
      Serial.println("------- Clear ----");
      M5.EPD.Clear(true);
    

    now I get repeated

    ------- begin ----
    M5EPD initializing...OK
    ------- SetRotation ----
    ------- Clear ----
    
    ------- begin ----
    M5EPD initializing...OK
    ------- SetRotation ----
    ------- Clear ----
    

    ... etc

    • in other words, it's crashing in M5.EPD.Clear(true);.

    If I comment out the call to M5.EPD.Clear, then I get as far as the next debugging statement, but the next call, to SPIFFS.begin, also crashes.

    Finally I created a new sketch, and copied the 'Hello World' code from https://docs.m5stack.com/en/quick_start/m5paper/arduino into it. Uploaded that, and back to the minimal output:

    M5EPD initializing...OK
    M5EPD initializing...OK
    M5EPD initializing...OK
    

    ... etc

    Can anyone suggest what might be going on here? Is there a problem with the 2.0.3 IDE? Do I need to update firmware to account for some updated libraries?

    Thanks in advance for any help you can give.



  • Hello @Hamnet

    have a look at this thread.

    Thanks
    Felix