Skip to main content
FM_360
Associate II
April 1, 2021
Solved

Data Not Reflect in Shared Memory between 2 Cores (STM32 H745 - M7/M4)

  • April 1, 2021
  • 1 reply
  • 808 views

Hello Community,

I am using STM32H745 controller in one of my project.

I am trying to send data from M4 core to M7 core using SRAM. To test the same I am increment a variable and writing to 0x10040004 location from M4 and reading the same location (also 30040004) in M7 at every 1 minute. However the variable do not reflect every time in M7.

Below are the M7 logs from for the reference.

1 Minute timer timeout

devCount: 88 [0x10040004]

tDevCount: 87 [0x30040004]

1 Minute timer timeout

devCount: 88 [0x10040004]

tDevCount: 87 [0x30040004]

1 Minute timer timeout

devCount: 90 [0x10040004]

tDevCount: 89 [0x30040004]

Please let me know, If I need to configure anything for shared memory.

Thanks and Regards

FYI:

We have also tried below solution but still got failure :sad_but_relieved_face:

https://community.st.com/s/question/0D50X0000BVpPAqSQN/besteasiest-way-to-share-data-between-cores-in-stm32h745

This topic has been closed for replies.
Best answer by FM_360

issue was resolved by Disabling Data cache by simply commenting SCB_EnableDCache() API from main.

1 reply

FM_360
FM_360AuthorBest answer
Associate II
May 19, 2021

issue was resolved by Disabling Data cache by simply commenting SCB_EnableDCache() API from main.