Just want to check whether I'm doing it right:
I have an 8MB PSRAM from prjc that I soldered to my T4.1 smaller footprint. I plan to use the PSRAM as a large buffer so I don't need ext_malloc().
So is there any special memcpy() etc. that only does copy and compare with PSRAM? My OUTbuf is in RAM2 (could place in 1 as well). Do I need to write cache to RAM2 before copying, in case this copy is done with DMA?
Thanks.
I have an 8MB PSRAM from prjc that I soldered to my T4.1 smaller footprint. I plan to use the PSRAM as a large buffer so I don't need ext_malloc().
Code:
#define PSRAM_SIZE (8*1024UL*1024UL)
EXTMEM uint8_t PSRAM_buffer[PSRAM_SIZE]; // May use extmem_malloc() to allocate.
Later...
memcpy((void*)(PSRAM_buffer+PSRAM_ptr),OUTbuf,len);
So is there any special memcpy() etc. that only does copy and compare with PSRAM? My OUTbuf is in RAM2 (could place in 1 as well). Do I need to write cache to RAM2 before copying, in case this copy is done with DMA?
Thanks.