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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,140 次查看
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 项奖励
回复
6 回复数

1,126 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @charleshuang 

 

Do you need define the address in M core SDK?

0 项奖励
回复

1,118 次查看
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 项奖励
回复

1,104 次查看
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 项奖励
回复

939 次查看
charleshuang
Senior Contributor II

Hi @Zhiming_Liu 

About OCRAM_S/OCRAM_A, what is different?

We want to define A core.

 

标记 (1)
0 项奖励
回复

888 次查看
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 项奖励
回复

885 次查看
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 项奖励
回复