To know how to declare an array in D2 domain SRAM in STM32H743 Microcontroller using STM32CUBEIDE.
Hello,
I am using STM32CUBEIDE and STM32H743 microcontroller. I want to allocate an array in D2 domain SRAM
I tried the following approach:
1) In the linker script (STM32H743_RAM.ld) i created a separate section called dmabuffer
as follows
.dma_buffer :
{
*(.dma_buffer)
} >RAM_D2
2)In the main.c file declared the array as
uint32_t dmabuffer[1024] __attribute__ ((section(".dma_buffer")));
in main() function
tried loading some value in the dmabuffer
as dmabuffer[0]=0x12345671;
dmabuffer[1]=0x12312311;
3) Uncommented the line /* #define DATA_IN_D2_SRAM */ in the system_stm32hxx.c assuming the D2 domain SRAM is not active by default.
4)But still the array is not being initialised in D2 domain SRAM starting at address( 0x30000000) it is being initialised at D1 Domain SRAM
Looking forward ,
To know any more changes or suggestion on how to declare an array in D2 domain SRAM in STM32H743 microcontroller
Regards,
krishna.
