Hello Dear Danial,
I would give few of details you needed:-
Q1) Is it a BusFault, UsageFault, or MemManage fault?
A1) It's BusFault
Q2) Check whether BFAR/MMFAR are valid (via the BFARVALID/MMARVALID bits) and report the fault address if available.
A2) Sorry I could not get it, but my stack pointer points within valid ram address.
Q3) Can you determine the PC (program counter) of the faulting instruction from the stacked frame?
A3) Its not always same, but its valid address.
In my case, after wakeup, the MCU does not proceeds through a functional reset.
I am using CORE_STANDBY with exit on sleep
MY application uses the DTCM of CM1 via backdoor.
Here are 2 observation I have:-
1) When debugger is connected If I initialize ECC for ITCM0 just after wakeup and reload the itcm rom content to itcm ram , application wakeup and either runs few second and crash or gets exception immediately after wakeup.
2) When debugger is NOT connected, if I initialize ECC for ITCM0 just after wakeup and reload the itcm rom content to itcm ram, the application DOES NOT crash, and runs for hours, even my sleep logic works as expected.
what is your thought on this ?
I am using SWD via J-trace pro.