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;