STM32H7A3ZIT6 Half Flash Bricked/Corrupted
Hi,
I'm facing this weird behavior with many STM32H7A3ZIT6 parts, where after we flash our Firmware, the MCU do not work and when we read the flash content, we can notice that one flash bank (1MB) is either corrupted with random data or erased. Sometimes we see Bank 0 in this state, other times Bank1.
When this happens we check using STM32CubeProgrammer, the option bytes are normal (no read or write protection is checked), and more interestingly is that STLink returns a weird Flash Size Value
First Bank with random data
Second Bank is normal (has valid code)
Invalid Flash Size (After mas erased this reads Ok, but fails again after FW is flashed)
While flashing the code, the STM32CubeProgrammer returns success, even though we can't read one of the banks properly.
I've also tried flashing using STM32CubeIDE with OpenOCD but the problem persists.
Below is the image of a Chip we are using
Option Bytes

I could not come to any conclusion so far, and I'm afraid the MCUs with this issue are bricked forever.
Has anyone faced such a problem before?
In the FW we don't do any access to write the internal Flash also we don't change any option byte. The MCU is running at 280MHz (we also tested with 120MHz). Data and Instruction Cache are enabled
