Problem with STM32h755, when expanding the accessed RAM area by Cortex M7 core, the program crashes.....
Hi every body! I chose STM32H755ZI MCU mainly because it has 1MB of RAM. In my project, I need to at least store 180 KB of Data. 45000 of float samples. I use the M7 Core which accesses the AXI RAM the size of which is 512KB; on the other hand, the Build analyzer shows the amount of RAM around 128KB and in STM32H755ZITX_FLASH.ld file the ram size is defined 128KB.
I decided to expand this area based on the memory file were presented in data sheet of the MCU but the program could not even be started and debugged. I got hard-fault error.
in STM32H755ZITX_FLASH.ld file the default memory setting was like this:
_estack = 0x20020000; /* end of RAM */ /* _estack = 0x20020000; */
/* Generate a link error if heap and stack don't fit into RAM */
_Min_Heap_Size = 0x200 ; /* required amount of heap */ /* _Min_Heap_Size = 0x200 */
_Min_Stack_Size = 0x400 ; /* required amount of stack */ /* _Min_Stack_Size = 0x400 */
/* Specify the memory areas */
MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K
}
I thought that maybe if I change the RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
to RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 256K and also change this line
_estack = 0x20020000; to _estack = 0x20040000; I may be able to expand the accessed RAM area.
Here is also the memory mapped file of my MCU:
I would really appreciate if you inform me What is my mistake ?
Thanks in advance.

