Accessing PSRAM from M core - IMX8ULP-EVK9

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Accessing PSRAM from M core - IMX8ULP-EVK9

1,086 Views
dhruvinrajpura
Contributor III

I am using IMX8ULP-EVK9 and in that currently I required higher size of memory on M core side which is currently only providing 700Kb, For that I decided to use PSRam for defining some large variables.

For that 1st I changed my cm33_ram.ld file which I attached here,

than to declare large variables I am using below syntax

int16_t __attribute__((section (".psram_data"))) micCaptureBufffer[2 * 8000 * 10]= {0};

I want to use PSRam from where I can declare global variables, I don't want to access it with read-write operation on addresses.

Is this correct way to accessing psram from M core for IMX8ULP-EVK9?, Or I am missing anything here?



0 Kudos
Reply
2 Replies

1,033 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

For that I decided to use PSRam for defining some large variables.

-->You still need use demo api to read and store date in driver_examples\flexspi\psram\polling_transfer\flexspi_psram_polling_transfer.c



Best Regards
Zhiming

0 Kudos
Reply

1,027 Views
dhruvinrajpura
Contributor III

@Zhiming_Liu 
Thank you for your response

In the polling_transfer example I can see that they are reading and writing data on the location reserved by PSRAM,

But instead of this If I want to declare large variables in PSRAM instead of SRAM(750kB) of M -Core for IMX8ULP-EVK9 do we have any methods for that?

0 Kudos
Reply