Skip to content

Increased ram usage on 3.0.13Β #890

@mockthebear

Description

@mockthebear

So, i got a project that uses this lib. And during startup i noticed this:

[3490][I] [Memory] 89.4% free - 249684 of 279356 bytes free (psram: 8386247 / 8382931  -> 100.0%)
[3538][I] DMA display initialized!
[3565][I] [Memory] memmory_difference msg="Dma display" heap=-150284 psram=-184
[3591][I] [Memory] 35.7% free - 99264 of 278092 bytes free (psram: 8386199 / 8382747  -> 100.0%)

But rolling back to 3.0.12:

[3491][I] [Memory] 89.4% free - 249052 of 278724 bytes free (psram: 8386247 / 8382931  -> 100.0%)
[3550][I] DMA display initialized!
[3577][I] [Memory] memmory_difference msg="Dma display" heap=-125764 psram=-184
[3603][I] [Memory] 44.4% free - 123152 of 277428 bytes free (psram: 8386199 / 8382747  -> 100.0%)

Probally something broke in the platform detect pr.

Using:

[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
build_flags = 
  -mfix-esp32-psram-cache-issue
  -DBOARD_HAS_PSRAM
lib_deps = 
  mrfaptastic/ESP32 HUB75 LED MATRIX PANEL DMA [email protected]

And the panel config:

HUB75_I2S_CFG DMADisplay::mxconfig(
    64,   // module width
    32,   // module height
    2    // Chain length
  );

mxconfig.chain_length = 2;
  mxconfig.double_buff = true; 
  mxconfig.clkphase = false;

  mxconfig.gpio.r1 = DMA_GPIO_R1;
  mxconfig.gpio.g1 = DMA_GPIO_G1;
  mxconfig.gpio.b1 = DMA_GPIO_B1;
  mxconfig.gpio.r2 = DMA_GPIO_R2;
  mxconfig.gpio.g2 = DMA_GPIO_G2;
  mxconfig.gpio.b2 = DMA_GPIO_B2;
  mxconfig.gpio.a = DMA_GPIO_A;
  mxconfig.gpio.b = DMA_GPIO_B;
  mxconfig.gpio.c = DMA_GPIO_C;
  mxconfig.gpio.d = DMA_GPIO_D;
  mxconfig.gpio.lat = DMA_GPIO_LAT;
  mxconfig.gpio.oe = DMA_GPIO_OE;
  mxconfig.gpio.clk = DMA_GPIO_CLK;

  mxconfig.setPixelColorDepthBits(2);
  mxconfig.i2sspeed = HUB75_I2S_CFG::HZ_20M;

  DMADisplay::Display = new MatrixPanel_I2S_DMA_2(mxconfig);

Metadata

Metadata

Assignees

Labels

unsolved mysteryThe truth is out there... somewhere.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions