I have an Cortex-M7 project that sometimes goes in the Hardfault exception interrupt, sometimes not. With the same code. When it happens it append all the time. My system is made of two board connected together, one has the M7 MCU. When I disconnect the board, the program run fine. When I connect the boards, it goes into HardFault even before initializing the hardware on the second board.
I suspect that the second board change some hardware parameter (Supply voltage, noise, whatever).
Do someone has already noticed that hardware (physical) condition can trigger an Hardfault on ARM cortex-M MCU ?