Page 1 of 1

Does intra-PSRAM memcpy involve SPI bus data transmission?

Posted: Sun Oct 23, 2022 3:58 pm
by wuyuanyi
Hi,
I am curious if I am memcpying a chunk of memory from PSRAM to PSRAM, does it happen bound within the PSRAM or the data were copied back and forth through the SPI Line?

Another related question is if the Async memcpy in ESP32S3 (https://docs.espressif.com/projects/esp ... emcpy.html) handles the intra-PSRAM memory copy by copying back and forth or not?

Re: Does intra-PSRAM memcpy involve SPI bus data transmission?

Posted: Mon Oct 24, 2022 12:04 am
by ESP_Sprite
PSRAM chips don't have functionality to do an internal copy, so it always happens via the SPI lines. Memcpy() also invokes the cache and CPU to do the copy, the async function uses DMA so the CPU is free.

Re: Does intra-PSRAM memcpy involve SPI bus data transmission?

Posted: Mon Oct 24, 2022 6:47 am
by wuyuanyi
ESP_Sprite wrote:
Mon Oct 24, 2022 12:04 am
PSRAM chips don't have functionality to do an internal copy, so it always happens via the SPI lines. Memcpy() also invokes the cache and CPU to do the copy, the async function uses DMA so the CPU is free.
Thanks for your clarification