How to do use the SRAM and define the OCRAM address in imx8MP?

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

How to do use the SRAM and define the OCRAM address in imx8MP?

1,139 Views
charleshuang
Senior Contributor II

Hi NXP

Do you have example about how to use the SRAM in imx8mp?

We fine the OCRAM address. How to do about define the address in imx8mp?

Thanks.

0 Kudos
Reply
6 Replies

1,125 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @charleshuang 

 

Do you need define the address in M core SDK?

0 Kudos
Reply

1,117 Views
charleshuang
Senior Contributor II

Hi @Zhiming_Liu 

We need to use the SRAM and define the address for access SRAM. 

Do you have advice?

0 Kudos
Reply

1,103 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @charleshuang 

Please share more detail about your question.

For example, you want to OCRAM_S/OCRAM_A? Which layer you want to define it ? In A core or M core?

 

 

0 Kudos
Reply

938 Views
charleshuang
Senior Contributor II

Hi @Zhiming_Liu 

About OCRAM_S/OCRAM_A, what is different?

We want to define A core.

 

Tags (1)
0 Kudos
Reply

887 Views
charleshuang
Senior Contributor II

@Zhiming_Liu 

We find the setting in imx8mp.dtsi.

//----------------------------------------//

resmem: reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;

ocram: ocram@900000 {
no-map;
reg = <0 0x900000 0 0x70000>;
};

//----------------------------------------//

Do you have any SOP the test and read/write date in SRAM(NXP)?

Thanks.

 

0 Kudos
Reply

884 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @charleshuang 

There is memtool in demo image, you can test like this:

root@imx8mpevk:/unit_tests# ./memtool -32 0x910000 0x0001
E
Reading 0x1 count starting at address 0x00910000

0x00910000:  006F0074

root@imx8mpevk:/unit_tests# ./memtool -32 0x910000=0x0001
Writing 32-bit value 0x1 to address 0x00910000
root@imx8mpevk:/unit_tests# ./memtool -32 0x910000 0x0001
E
Reading 0x1 count starting at address 0x00910000

0x00910000:  00000001
0 Kudos
Reply