How to place an array in backup ram on STM32F4 MCUs?

Here is an example of adding CCM (Core Coupled Memory) for the STM32F407VE (Arch Max) which worked for me. Try to replace CCM/ccm with BKPSRAM/bkpsram and modify the address and length according to the BKPSRAM data. If your target is different then use the corresponding .ld file and add the BKPSRAM related sections.