esp_err_t error = heap_caps_register_failed_alloc_callback(heap_caps_alloc_failed_hook); Code:Select all void heap_caps_alloc_failed_hook(size_t requested_size, uint32_t caps, const char *function_name) { printf
void*buf3 =heap_caps_malloc(screenWidth * screenHeight, MALLOC_CAP_8BIT | MALLOC_CAP_SPIRAM); Thank you! 4 posts • Page1of1 Return to “ESP32 Arduino” Jump to Who is online Users browsing this forum:Baidu [Spider]and 1 guest...
(uint16_t*) heap_caps_malloc( 307200, MALLOC_CAP_8BIT | MALLOC_CAP_DMA | MALLOC_CAP_SPIRAM ); if( p_buffer_a == NULL || p_buffer_b == NULL ) { if( p_buffer_a == NULL ) ESP_LOGI("TAG", "p_buffer_a == NULL"); if( p_buffer_b == NULL ) ESP_LOGI("TAG", "p...
SPI Master states that when using DMA the transfer buffers be 32-bit aligned (staring from a 32-bit boundary and having a length of multiples of 4 bytes). The section of the API is "Write and Read Phases". My question is if my transfer buffer is a void *heap_caps_malloc(size_t ...
Return to “ESP-IDF” Jump to Who is online Users browsing this forum: Baidu [Spider], ChatGPT-User, Google [Bot], meta-externalagent, Nespressif and 2 guestsAll times are UTC Top About Us Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and...