I am currently experimenting with PSRAM on the Teensy 4.0.
I finally got an IPS6404 (8MB RAM) working on the SPI2 bus of the Teensy4.0.
Speed can still be improved but I am not using DMA transfer nor QUAD SPI yet.
Anyhow...
This kind of device is only useful for me if I can MMAP the device to a part of the memory map. I currently have a read() and a write() function that handle the paging/caching into real memory but I would like to be able to use pointers to that memory that I can use from C directly without having to call my read/write function.
Is there an example on how to do this.
Is there a memory space that can be used to address 8MB?
I finally got an IPS6404 (8MB RAM) working on the SPI2 bus of the Teensy4.0.
Speed can still be improved but I am not using DMA transfer nor QUAD SPI yet.
Anyhow...
This kind of device is only useful for me if I can MMAP the device to a part of the memory map. I currently have a read() and a write() function that handle the paging/caching into real memory but I would like to be able to use pointers to that memory that I can use from C directly without having to call my read/write function.
Is there an example on how to do this.
Is there a memory space that can be used to address 8MB?