Hello everyone,
I have a system that I need to record about 10 4-byte variables at a pace of 2K[hz] in ~25 minutes duration.
Because of the fast rate of the system, I don't have enough time to wait for the SD card to save the variables because it takes much more than just 500u sec.
(500u sec is the time per cycle of the system).
My plan was to allocate as much memory as I need and then save that to the SD card once the system finished operating.
That means that it needs at least 10x4x2000x60x25 bytes = 120 MegaByte of RAM storage.
The external PSRAM memory chips that you can add to teensy 4.1 are 16 MegaByte which is not enough in my case.
Is there an option to connect external Ram with SPI in order to reach the ~120MegaByte ? if so, do you know what IC chip I can use and where to get it from?
also if you have a code example for using external IC RAM besides the PSRAM that you can add to teensy 4.1 that will be great.
In case that can't be done, I had another idea that I would like to hear your opinions about it. The idea is to try to use Teensy thread library in order to save to the SD card in parallel once one ram chip is full, and in another thread simultaneously to continue reading variables to the ram.
but that idea sounds to me a bit more complex, so I prefer the idea of using more ram, and when the program stops writing all the data to the SD card.
any opinion, information, and advice are welcome
I have a system that I need to record about 10 4-byte variables at a pace of 2K[hz] in ~25 minutes duration.
Because of the fast rate of the system, I don't have enough time to wait for the SD card to save the variables because it takes much more than just 500u sec.
(500u sec is the time per cycle of the system).
My plan was to allocate as much memory as I need and then save that to the SD card once the system finished operating.
That means that it needs at least 10x4x2000x60x25 bytes = 120 MegaByte of RAM storage.
The external PSRAM memory chips that you can add to teensy 4.1 are 16 MegaByte which is not enough in my case.
Is there an option to connect external Ram with SPI in order to reach the ~120MegaByte ? if so, do you know what IC chip I can use and where to get it from?
also if you have a code example for using external IC RAM besides the PSRAM that you can add to teensy 4.1 that will be great.
In case that can't be done, I had another idea that I would like to hear your opinions about it. The idea is to try to use Teensy thread library in order to save to the SD card in parallel once one ram chip is full, and in another thread simultaneously to continue reading variables to the ram.
but that idea sounds to me a bit more complex, so I prefer the idea of using more ram, and when the program stops writing all the data to the SD card.
any opinion, information, and advice are welcome