Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DisplayBuffer is null!! #11

Open
AnyReader opened this issue May 21, 2018 · 1 comment
Open

DisplayBuffer is null!! #11

AnyReader opened this issue May 21, 2018 · 1 comment

Comments

@AnyReader
Copy link

@tekker Hi, tekker, I have a NodeMCU-32S based on ESP32 and an OV7670 camera. I am using the newest ESP-IDF , all compiles cleanly and when I flash/run, the log shows: DisplayBuffer is null!!(in camera.c), unless i change currFbPtr=pvPortMallocCaps(3202402, MALLOC_CAP_32BIT); (in app_main.c) to currFbPtr=pvPortMallocCaps(1601202, MALLOC_CAP_32BIT);

and i add some codes to make a test:
size_t free8start=0, free32start=0, free8=0, free32=0;

free32=heap_caps_get_largest_free_block(MALLOC_CAP_32BIT);
free8=heap_caps_get_largest_free_block(MALLOC_CAP_8BIT);
free8start=heap_caps_get_minimum_free_size(MALLOC_CAP_8BIT);
free32start=heap_caps_get_minimum_free_size(MALLOC_CAP_32BIT);

ESP_LOGI(TAG, "Free (largest free blocks) 8bit-capable memory : %d, 32-bit capable memory %d\n", free8, free32);
ESP_LOGI(TAG, "Free (min free size) 8bit-capable memory : %d, 32-bit capable memory %d\n", free8start, free32start);

it print:
Free (largest free blocks) 8bit-capable memory : 144272, 32-bit capable memory 144272
Free (min free size) 8bit-capable memory : 272396, 32-bit capable memory 338868

i think it's
3202402=153600>144272 that make pvPortMallocCaps(3202402, MALLOC_CAP_32BIT) return NULL

Have you meet this issues?

@dhirajp15
Copy link

@AnyReader I met the same issue .It got resolved after changing branch to framebuffer_overlay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants