samm_flynn
Well-known member
I've just installed two 8MB PSRAM chips from the Teensy store and ran the test sketch — everything appears to be working fine.
I don’t come from a programming background, but in my current project, I have a time-sensitive Timer ISR running at 1 kHz. It reads about 256 bytes from a float array that's part of a circular buffer currently residing in RAM2.
I’m considering moving this buffer to EXTMEM (PSRAM) to free up internal memory, and I’d really appreciate some advice from those with experience using external memory on the Teensy.
As a specific example, I have a Packet class that uses dynamically allocated arrays. I send over 1,000 of these packets per second via USBSerial. I'm wondering if PSRAM is a good place for those dynamically allocated arrays, or if that would lead to performance issues.
So more broadly, I’m looking for guidance on:
Is PSRAM suitable for heap-allocated objects?
When do PSRAM’s speed or latency limitations actually become a problem?
Are there best practices for things like atomic access or memory alignment when working with EXTMEM?
Any insight especially "gotchas" would be incredibly helpful. Thanks!
I don’t come from a programming background, but in my current project, I have a time-sensitive Timer ISR running at 1 kHz. It reads about 256 bytes from a float array that's part of a circular buffer currently residing in RAM2.
I’m considering moving this buffer to EXTMEM (PSRAM) to free up internal memory, and I’d really appreciate some advice from those with experience using external memory on the Teensy.
As a specific example, I have a Packet class that uses dynamically allocated arrays. I send over 1,000 of these packets per second via USBSerial. I'm wondering if PSRAM is a good place for those dynamically allocated arrays, or if that would lead to performance issues.
So more broadly, I’m looking for guidance on:
Is PSRAM suitable for heap-allocated objects?
When do PSRAM’s speed or latency limitations actually become a problem?
Are there best practices for things like atomic access or memory alignment when working with EXTMEM?
Any insight especially "gotchas" would be incredibly helpful. Thanks!