I am using rtx kernel and mdk 3.50 with LPC2468. i am facing a problem in my software. The Main function is keep on called by somewhere or it is keep on resetting.
control is always coming to os_sys_init() and it is runnig in disassembly. the main function is given below
int main (void) { os_sys_init (job1); while (1); }
can anyone help me regarding this issue?
did you try to place a break point in your exception handlers? btw, the "while(1)" is redundant.
Yes. But the control is not coming to while(1) STATEMENT. the control is running in following statement of startup code.
PAbt_Handler B PAbt_Handler
any other info?
PAbt_Handler is the Prefetch Abort handler
The processor jumps to this location when you try to execute code from an invalid memory address.
Thanks for ur reply. But i have to solve it. can u help me? how do i solve this problem????
try to subtract 8 from the value of R14 when in the exception handler. that might tell you which instruction in the program caused the failure.
Thank u. I will try it out and come back to u.
tell me if any other solution is there..........
Executing code from the wrong location is a very vague failure and quite program specific. As Tamir says you need to identify the instruction that tries to call the invalid memory address to give yourself an idea as to the cause of the problem.
View all questions in Keil forum