MALLOC_CAP_8BIT | MALLOC_CAP_SPIRAM | MALLOC_CAP_DMA should work
Ideally esp_cache_msync, that is a 'more official' way to handle this; iirc Cache_WriteBack_Addr works as well but is a ROM function that may change in other ESP32 chips.Another thing, I must use the functionor the functionCode: Select all
Cache_WriteBack_Addr( (uint32_t)p_buffer_a, length );
Code: Select all
esp_cache_msync( (void*)p_buffer_a, length, ESP_CACHE_MSYNC_FLAG_DIR_C2M | ESP_CACHE_MSYNC_FLAG_TYPE_DATA | ESP_CACHE_MSYNC_FLAG_UNALIGNED );