cancel
Showing results for 
Search instead for 
Did you mean: 

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

FM_360
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
FM_360
Associate II

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

View solution in original post

1 REPLY 1
FM_360
Associate II

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