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.
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?
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.
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