Declare and initialize array in PSRAM
Hi,
I am running an STM32L4 on a custom board with a 64mb PSRAM attached to it.
I can write to any address on the PSRAM however I want to store a large array of sample data on the PSRAM itself.
Basically,
I want to do something like this
int a[4] = {21,3133,131,31};I can create an empty array in PSRAM using the GCC's attribute section commands.
So,
int __attribute__((section (".myBuf1Section"))) buffer1[5] ;This works and I can individually assign values to each index of that array , however
int __attribute__((section (".myBuf1Section"))) buffer1[5] = { 10,23,45,67,88};this does not work.
Is there any way I can initialize an array on the PSRAM using the {} brackets as above.
My array needs to be a sample set of raw data over 50000 in count.
Is there a workaround for this?
Thank you.
-Sidd