Want to figure out how dig down into stacked LR and SP values on an STM32f429 programmed with Keil tools.
Have a device built around an 32f429 which appears to be hard faulting too infrequently to catch on the bench with debugger attached -- but have lab personnel running all day and getting the errors, not infrequently enough.
I can use some BKUP registers (BKUP RAM and RT Clock) to store away some info from the HardFault handler before resetting -- then dump out to a file after reset. I'm getting bits from the fault status registers and the values stacked when fault occurs (including address of a suspect instruction). All I've found about the ABI is the ARM Base ABI which says that SP and LR are callee saved. I'm using Keil tools (ARMCC ?? - not in front of the IDE at the moment) -- but so far I've evoked little hints about anything documented about where those registers are saved. I know the locations of variables will not be known (in general), but the calls preceding the fault should be extractable.
