Solved
How to use DTCMRAM in stm32h743
Hi All,
I want to use DTCRAM in stm32cubeide, the controller i used is stm32h743, earlier I
Used RAM_D2. shifting from RAM_D2 to DTCRAM is possible but both i cant use,
please guide me,
/DISCARD/ :
{
libc.a ( * )
libm.a ( * )
libgcc.a ( * )
}
.RAMD2buffers(NOLOAD) : {
. = ALIGN(4);
*(.buffers*)
} > DTCMRAM
.bssDTCMRAM(NOLOAD) : {
. = ALIGN(4);
*(.buffersDT*)
} > RAM_D2
.ARM.attributes 0 : { *(.ARM.attributes) }the above code is added to linker file,
//__attribute__ ((section(".buffers"), used))
char rData[BUF_SIZE];// Read data
__attribute__ ((section(".buffers"), used))
uint32_t DMA_ADC1[ADC1_Size];
__attribute__ ((section(".buffers"), used))
uint32_t DMA_ADC2[ADC2_Size];
__attribute__ ((section(".buffers"), used))
uint32_t DMA_ADC3[ADC3_Size];
__attribute__ ((section(".buffersDT")))
uint32_t DMA_ADC3_dummy[ADC3_Size];
this code added to main file,
thanking you
