Is it possible to get an information in exception case which show me the exception source?
In Detail, we wanna save the register set in pre-exception state in exception handling. Especially LR, SP and PC are most interesting. This information should be saved to be read out later for further investigation.
The problem is that when entering the abort handlers (f.e. HwiP_undefined_handler on FreeRTOS) the register set of this mode (f.e. UNDEF mode) is active but the pre-exception state is stored in the banked USER-registers (f.e. R14_USER).
Is it possible to access these USER registers in another mode? We can switch to USER mode by manipulating the mode in CPSR and get these registers but can't switch back because USER mode is not privileged to do that.
Is there any solution available to determine f.e. the ProgramCounter from the exception source?
