Hi,
I am using ECOS on ARM946.
I have registered exception handlers for undefined instruction, data abort and pre-fetch abort, but i am unable to think of routine which can be useful for debugging in case of exception.
I can think of printing register values of other modes to UART. Printing registers of other modes can help in finding cause of exceptions using program counter stack pointers, CPSR and SPSR etc.
Other think stack can also be printed to get some clue of cause.
The problem is - i don't have any idea on how to retrieve register values of user, supervisor and other modes while processor is in exception mode. Please give me some idea on how to retrieve the values of registers of other modes.
I guess the stack area i can get from map file and i can print values in range to get stack please correct me if i am wrong or if there is any better approach.
Please help me on the problem.
Thanks Vikas
--------------------------------------- Posted through