2024-01-10 07:39 AM
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:
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!