cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H745 - Shared memory definitions

ACohe.3
Associate II

Hey,
I use STM32H745ZI, I want to create an area for shared memory between the cores, I chose AXI SRAM because I need access as fast as possible for the M7 core.
The shared memory is intended solely for shared information between the cores.

I have two questions about it:

1. I read about the different settings that are defined in MX for a shared memory area and this is how I decided to define:

ACohe3_0-1704899678699.png

Is there anything that can improve memory access speed? Is anything recommended to be done differently for my purpose?

 

2. I did a test of the main while rate through the STM32CubeMonitor for two different situations:

The first: in the main while there is an if(variable) condition, the condition is on a local variable (I checked and it was created in AXI SRAM).

The second: in the main while there is an if(variable) condition, the condition is on a variable that is in the area that is defined as shared memory (in AXI SRAM).

The results in STM32CubeMonitor show that the first situation is much faster than the second situation, why does this happen if in both cases AXI SRAM is accessed?

 

Thanks for the helpers!

0 REPLIES 0