STM32H743 Battery backed ram issue - ideas wanted
I'm using the 4K of battery backed RAM on the STM32H743 to preserve variables between power cycles. This works fine on 90% of identical systems running identical firmware and with identical H/W, identical chip versions etc. i.e. data is exactly what it should be after power cycling. I always flush the cache after writing to the RAM as this is a known issue.
On a small percentage of systems the Backup RAM is completely overwritten and this is always to the same values. Obviously I've checked the batteries and the RTC keeps time after power cycling so I know the RTC power domain is OK.
I'm at a loss as to where to look for the problem - any ideas appreciated.
The initialisation code for the RAM is taken from the ST example code and as explained above on most versions of "identical" H/W with identical firmware works perfectly.
On all systems the RAM is correct after a reset, it is only after a power cycle that I see the problem