I.mx RT1176 M4 core cannot write to OCRAM part of shared memory

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

I.mx RT1176 M4 core cannot write to OCRAM part of shared memory

717 次查看
Milan_Ignjatovic
Contributor II

Hi,

i am working on custom board with Imx RT1176 microcontroller onboard. I am trying to establish communication between cores. My goal is for both cores to be able to read and write in shared memory. IDE is Keil, debugger Ulink2.

I started from SDK example MU communication with interrupt. It works fine.

I have read AN13264 and tried using shared memory to write from M7 and from M4.

When i use CM4 DTCM I can write and read from both cores, but when I try to write to OCRAM only M7 core can write. I can read the data from M4 side, but I cannot write.

I tried disabling bus cache like this thread posted:

https://community.nxp.com/t5/i-MX-Processors/Cortex-M4-bare-metal-application-cannot-read-data-from-...

but nothing changes. 

 What could be the reasons M4 core cannot write to OCRAM part of the shared memory?

Any help is appreciated,

Best Regards,

Milan. 

标签 (1)
5 回复数

42 次查看
nasihs
Contributor I

Hi @Milan_Ignjatovic ,

I'm facing a similar problem, virables defined in CM4 DTCM can be read by M7, but couldn't be modified by M7(changes couldn't be detected by M4).

Would you please share the CM4 DTCM demo project? Thanks

0 项奖励
回复

658 次查看
Milan_Ignjatovic
Contributor II

Hi Kan,

i tried writing to OCRAM1, OCRAM2, OCRAM1 ECC and OCRAM2 ECC as those regions are mentioned in AN13264 as typical memory which can be used as shared memory:

OCRAM1: 0x2024_0000

OCRAM2: 0x202C_0000

OCRAM1_ECC: 0x2034_0000

OCRAM2_ECC: 0x2035_0000

Best Regards,

Milan.

0 项奖励
回复

625 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @Milan_Ignjatovic ,

 

Not sure how M7 core communicate with M4 on your side, but if M7 is writing to the RAM, M4 can read but not write in the same time.

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复

660 次查看
Milan_Ignjatovic
Contributor II

Hi Kan,

i tried writing to OCRAM1, OCRAM2, OCRAM1 ECC and OCRAM2 ECC as those regions are mentioned in AN13264 as typical memory which can be used as shared memory:

OCRAM1: 0x2024_0000

OCRAM2: 0x202C_0000

OCRAM1_ECC: 0x2034_0000

OCRAM2_ECC: 0x2035_0000

Best Regards,

Milan.

 

 

0 项奖励
回复

665 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @Milan_Ignjatovic ,

 

Which OCRAM are you referring to ? Please kindly clarify.

Kan_Li_0-1701244440683.png

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

0 项奖励
回复