Is the word(uint32_t) access atomic in shared memory in dual core STM32H7
Hi Friends,
In STM32H7 MCU, both M7 and M4 can access shared memory, such as D3 SRAM4. I am going to use a D3 SRAM4 address as a place to share some status information between M7 and M4. If a 32bits word is defined shown as below, can the access from both sides(M7 and M4) be guaranteed atomic? Does it need HSEM?
-----
Code example:
volatile uint32_t *status_ptr = (status4_7 *)0x38000000;
In M4 side, *status_ptr = 0x1234abcd;
In M7 side, uint32_t status = *status4to7_ptr;
I know a 32bits word access is atomic in single core STM32 MCU.
Thank you in advance.
