STM32F722 random initialization problem
Hello,
I am having troubles with a random chip lockup. In maybe 1 from 50 tries the chip loads few lines of code and then it will stop.
I dont know what could be wrong, because my app has just few lines of code that turns LED on only. No Cache is used.
The problem is caused very likely by a powering connector. During connecting it is loosing power for a few nano or miliseconds. So the MCU is booting, but it will end up in the middle and boot again. Sometimes for several times.
If the problem occur, it is enough to repower.
MCU will not forget everything during fast repowering, it end up in unknown condition - it has not reseted completely. So it will end in uncertain condition. Since even a single line of code might eventually not be executed correctly, I am unsure how to resolve it.
I can be only sure that for the first time, it will boot up. So enabling some watchdog could maybe help.
I tried changing latency only - without help. Interestingly, with STM32F1 and F4 with a same power circuit this issue never happened. I designed own board according datasheet.
I fear the issue is related to a capacitors. But I found F7 to be much more complex than F4. Or at least it is much more prone for code errors. So it can end up stucked somewhere, yet hard fault is not working yet.
Can you point me in some direction, what to try?