drawPng resets m5core2

  • Hi!
    I'm having trouble with displaying PNG files through drawPng from the m5gfx library:

    #include <Arduino.h>
    #include <M5GFX.h>
    M5GFX display;
    extern const uint8_t jpg[];
    void setup()
      if (display.width() < display.height())
        display.setRotation(display.getRotation() ^ 1);
    void loop(void)
      display.drawPng(png, ~0u, 0, 0);
    constexpr uint8_t png[] = {
    0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, 0x00, 0x00, 0x00, 0x0D, 0x49, 0x48, 0x44, 0x52, 
    0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x08, 0x06, 0x00, 0x00, 0x00, 0xAA, 0x69, 0x71, 
    0xDE, 0x00, 0x00, 0x0A, 0x67, 0x49, 0x44, 0x41, 0x54, 0x78, 0x5E, 0xED, 0x9B, 0x5D, 0x6C, 0x55, 
    0x55, 0x16, 0xC7, 0x4B, 0x41, 0x3E, 0x02, 0xFA, 0xE0, 0x84, 0x0A, 0x0C, 0xD0, 0x3A, 0x2D, 0x05, 
    0x86, 0x0F, 0x95, 0x8F, 0x0E, 0x5A, 0x28, 0x30, 0xC8, 0x38, 0x0F, 0x1A, 0x79, 0xC5, 0x17, 0x32, 
    0x13, 0x8D, 0x0F, 0x62, 0xA2, 0x0F, 0x26, 0x6A, 0xF4, 0x81, 0x79, 0xD0, 0x44, 0x3A, 0x4F, 0xC4, 
    0x88, 0x99, 0x91, 0xD2, 0x96, 0xD6, 0x7E, 0xD1, 0x5B, 0x78, 0x41, 0x85, 0xC4, 0x21, 0xBC, 0x98, 
    0xA8, 0x31, 0x0D, 0x46, 0x9D, 0x99, 0x60, 0xC4, 0x44, 0x8D, 0x98, 0x9E, 0x73, 0x2E, 0xA2, 0x78, 
    0xC5, 0xEE, 0xF8, 0xDB, 0xFB, 0x9E, 0x7D, 0xEF, 0xBE, 0xE7, 0xE3, 0x9E, 0xCF, 0x3A, 0xC9, 0x44, 
    0x93, 0x7F, 0x6A, 0xE2, 0x39, 0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0x72, 0x8D, 0xA8, 0x37, 0x28, 0x8D, 0x8D, 0xE8, 0xBF, 0x5B, 0x74, 0x61, 0x5F, 
    0xA6, 0x39, 0xD1, 0x45, 0x89, 0x1A, 0xBB, 0x86, 0x58, 0xD1, 0x3B, 0x35, 0x87, 0xDD, 0xBD, 0x0B, 
    0xE0, 0x97, 0x91, 0x65, 0x82, 0x87, 0x6C, 0x72, 0x32, 0xDC, 0x95, 0xCA, 0xF0, 0x53, 0xBD, 0x4D, 
    0x3D, 0x53, 0xF9, 0xFE, 0x70, 0xAB, 0x9D, 0x1F, 0x20, 0xF0, 0x9D, 0xF7, 0x46, 0x65, 0x72, 0xDE, 
    0x36, 0xB4, 0xD1, 0x89, 0xB5, 0x31, 0xC2, 0x19, 0xCA, 0xD5, 0x17, 0xA9, 0xD8, 0x1E, 0x46, 0xF7, 
    0x93, 0xB7, 0xEF, 0x96, 0x22, 0x85, 0xBD, 0x9F, 0x2C, 0xEE, 0x61, 0xA0, 0x5F, 0x44, 0x67, 0x90, 
    0x5D, 0xEF, 0x68, 0x53, 0xBB, 0x7B, 0x75, 0x93, 0x33, 0xC0, 0x81, 0xEF, 0x99, 0xEA, 0x5D, 0xDC, 
    0x63, 0xA5, 0xFE, 0x01, 0x47, 0xDD, 0xA0, 0x00, 0x7E, 0x16, 0xEA, 0xD6, 0x5E, 0xD7, 0xF9, 0xBB, 
    0x7B, 0xDD, 0x54, 0xED, 0xBF, 0x87, 0x34, 0x24, 0x23, 0x9A, 0x14, 0xBA, 0x56, 0x0F, 0xCB, 0xE4, 
    0x6A, 0xBE, 0x75, 0xED, 0xF1, 0xAA, 0xD7, 0x2D, 0x81, 0xD7, 0xBB, 0x81, 0xCF, 0xF4, 0xFB, 0x85, 
    0xC8, 0xAF, 0x02, 0xF8, 0x86, 0x55, 0x83, 0xD6, 0x5F, 0x57, 0x0D, 0x58, 0xDF, 0x9B, 0xE0, 0x61, 
    0xFD, 0xF7, 0x88, 0xD6, 0x94, 0xB7, 0x56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, 0x2F, 0xF9, 0xCE, 0x8F, 0xDD, 0xD6, 0x63, 
    0x3D, 0x00, 0x78, 0x3E, 0xFF, 0x07, 0x48, 0xAE, 0xA4, 0x31, 0x06, 0xA3, 0x03, 0xDB, 0x80, 0x01, 
    0xDA, 0x81, 0xDE, 0x8F, 0x5E, 0xE0, 0x1B, 0x1F, 0x42, 0xE7, 0x09, 0xF3, 0x8B, 0xE8, 0xBF, 0x52, 
    0xC0, 0x5F, 0xE4, 0x3B, 0x3F, 0xCF, 0x91, 0x36, 0x84, 0x5E, 0x20, 0x8D, 0xDD, 0xCF, 0x37, 0xDE, 
    0xBE, 0xE4, 0x97, 0xDC, 0xD5, 0x63, 0xB0, 0xFC, 0x5F, 0x3E, 0xF2, 0x33, 0x10, 0xEB, 0x46, 0xD1, 
    0xED, 0xC8, 0x90, 0xFD, 0x00, 0x00, 0x00, 0x24, 0x74, 0x45, 0x58, 0x74, 0x43, 0x6F, 0x70, 0x79, 
    0x72, 0x69, 0x67, 0x68, 0x74, 0x00, 0x43, 0x6F, 0x70, 0x79, 0x72, 0x69, 0x67, 0x68, 0x74, 0x20, 
    0x32, 0x30, 0x31, 0x35, 0x20, 0x49, 0x4E, 0x43, 0x4F, 0x52, 0x53, 0x20, 0x47, 0x6D, 0x62, 0x48, 
    0x7A, 0x86, 0xDD, 0x36, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4E, 0x44, 0xAE, 0x42, 0x60, 0x82

    Code above displays the PNG graphic but instantly resets the m5core2.

    Arduino IDE 1.8.15 and actual libs (updates today) are in use.

  • @tl said in drawPng resets m5core2:

    display.drawPng(png, ~0u, 0, 0);

    usually with this command you have to add the dimensions, I don't know if that will solve the problem

    display.drawPng(png, ~0u, 0, 0, 320, 240);

  • Hello @TL

    it looks like drawPng() needs the actual length of the array. Try something like this:

    void loop(void)
      int length = sizeof(png) / sizeof(png[0]);
      display.drawPng(png, length, 0, 0);


  • png[] = { Missing length in [] (it's number a hexa)
    ex : const unsigned char batPowerImage[13769]={