STM32 gotchas
320. In Cortex-M7-based STM32, TCM error may be triggered without explicitly accessing TCM (due to speculative prefetch)

Branch prediction and speculative prefetch are some of the mechanisms which are used in Cortex-M7 core to increase raw computational performance beyond the what a strictly sequential processor allows. These are operations performed in advance and when execution and evaluation of conditional branches reveal that the prefetched code is not needed, it is simply discarded.

These mechanisms thus have no consequences on the executed code. However, the reads to memories are real, and while reads to memory range tagged as Normal (in MPU, as opposed to Device) should have no consequences, in case of uninitialized ECC RAM such unexpected read will cause an ECC error/interrupt.

User ChrisO observed, that in the Cortex-M7-based STM32H7xx, DTCM ECC errors occur, even if DTCM is not used in the program. ChrisO also experimentally determined circumstances, under which the issue did not occur. Strangely, these appeared to revolve around having FLASH cacheable, while disabling DTCM cacheability did not help (which is sort-of expected, as TCMs are not cacheable at all).

While there's no definitive explanation to this behaviour, it may be that this ARM knowledge-base (KB) article provides a hint:

[...] most read accesses initiated on the AXIM are prevented if those accesses are not targeting any defined MPU region [...] However, read accesses initiated by a PLD (Preload Data) instruction are only prevented if the data cache is disabled or if the memory address is Non-Cacheable. In this case, the Non-Accessible and XN attributes are ignored. [...]
There is a rare case, where the user does not have any PLD instruction in their software code, but due to a mispredicted branch, the processor fetches in some random data that appears to be a PLD instruction, and then it gets speculatively executed.

While TCM is not at the AXIM port, maybe this (probably unintended) mechanism allowing to ignore the default attributes extends to TCM accesses, too.

Nevertheless, ARM does recommend to explicitly initialize TCM memories within the startup code, in this and in this KB article, and they probably do that for a good reason, even if they don't provide explanation of the underlying mechanisms.