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?

955件の閲覧回数
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 返答(返信)

941件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @charleshuang 

 

Do you need define the address in M core SDK?

0 件の賞賛
返信

933件の閲覧回数
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 件の賞賛
返信

919件の閲覧回数
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 件の賞賛
返信

754件の閲覧回数
charleshuang
Senior Contributor II

Hi @Zhiming_Liu 

About OCRAM_S/OCRAM_A, what is different?

We want to define A core.

 

タグ(1)
0 件の賞賛
返信

703件の閲覧回数
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 件の賞賛
返信

700件の閲覧回数
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 件の賞賛
返信