I want the code is copied from Flash to RAM after poweron,then the code is running at RAM.
I've changed the .ld file for STM32G474 generated by STM32CUBEIDE.
The part of old .ld file is like this,

I added ">RAM AT" at the last line like this,

But when I'm debugging,the code is running into the HardFault Handler.I want to know if something else need to be edited.