Project not picking up RAM section from linker file
I am working with a dual core STM32H755 and attempting to create a shared memory location for the two cores to access. I am attempting to do this by modifying the linker script. I have added the following lines to the M7 core linker script, in the SECTIONS block:
/* Shared Memory section for inter core comms */
.sharedRAMsection 0x30040000 :
{
.= ALIGN(4);
KEEP(*(.sharedRAMsection))
. = ALIGN(4);
} > RAM_D2
Then in one of my .c files, I have declared the following global variable:
RegisterMap_t __attribute__((section(".sharedRAMsection"))) g_RegisterMap;
However, when I debug I can see the address of this variable has been assigned to memory location 0x24000064, as seen in the watch window:

I am using visual studio and visual GDB, and I am debugging with 2 separate VS instances for the two cores.
Is there something else that I need to do in order to get this variable into the correct memory location?
Thanks
