Resolved! Memory/Instruction barriers before writing to the backup SRAM
The following code didn't worked because of a missing data barrier before writing to the backup SRAM:HAL_PWR_EnableBkUpAccess(); std::copy(buffer, buffer + num_bytes, BaseAddress + address); HAL_PWR_DisableBkUpAccess();Adding a DSB, solved the issue ...