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

Hello Li,

The following code should compile. But I have never tried to use the backup SRAM. So I’m curious whether it will work:

    typedef struct
    {
        int i;
        //
    } Foo;

    Foo* foos = (Foo*)BKPSRAM_BASE;

    foos[0].i = 100;