Usage SRAM1, SRAM2, SRAM3 with initialized arrays
I changed linker to use all of these three memories in domain D2. Problem is next :
When i put for example
uint32_t tempArray[4] = {0x2B7E1516 ,0x28AED2A6 ,0xABF71588 ,0x09CF4F3C} __attribute__((section(".sram1")));
this line in my code, when MCU is in debug mode firstly on address of this array i see all zeroes. After calling __HAL_RCC_TIM2_CLK_ENABLE() macro, i can see data in those sram's but it is wrong initialized (random data).
Am I missing something? I read thru all documents RF, DS, AN's but neither one says that this memory is something specific. I used this part's of memory as DMA buffers for SDMMC2 and everything is working fine. Only problem is in initialized data.
I tried same code - just changed section to AXISRAM and everything is working as expected. So not problem in code.
Thanks
