Hardfault (Usage Fault INVSTATE) on STM32H743 - how can I find the position where the fault happened?
I have a system with several SPIs and logging of data to SD Card. During a test which logged data over night the system ran into a Hard Fault (INVSTATE) after some hours.
My questions:
What is the reason for an INVSTATE Hard Fault?
How can I detect, where the fault occurred?
I dumped the Memory of the Stack (MSP = 0x2406DB20) and the registers - see screen
I see adresses like 0x0808C3E9 in the stack, but not at the address where MSP is pointing to.
How do I have to interpret this?