Why do I get hardfault before reaching main in app running on external flash ?
Hello,
I have one custom board using STM32H750 MCU. Everything was working perfectly until while doing some testing my code is not launch anymore. This is the second board that was working and stop working for "no" reason. On the first board, after analyzing, I decide to change the MCU, and that solve the problem. But here is the second time I get, so I really need to find the root cause.
my code is running on the external flash, and I am stuck in the startup file during the variable initialization. I run it step by step, expected to find a bad address somewhere, but I reach the end of the init without trouble. But as soon as I do a RUN (still in debug) it does to hardfault.
I try to slow down my clocks (systick and QSPI), but no improvement. I also try to change the RAM where all the variable are store during init, but same thing. Looks like something is really dead.
I will go to production in a few weeks now, and I am really afraid that this will happen on all my product sooner or later...
So any idea is welcome...
Some information that might be usefull.
The startupfile, is the ST one. no modification at all. I have FreeRTOS/TouchGFX as thirdparty library, so quite a lot of initializing. I run at 1.8V.
MemManage, BusFault etc are existing interrupt with while(1) inside. But this is really Hardfault which is triggered.
