This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem with interrupt handlers in lpc 2368

Hi,

I am building a project on lpc2368 in which I am using the ethernet and the uart1.
Here when any interrupt is happening immediately when the data is send in the ethernet port then the control is moving to the startup file of lpc2368, and the system hangs up i am unable to solve the problem
please help me to solve the problem
since i am posting for first time I would be grateful if you come back to me if the problem is not clear

Thanking you

Parents
  • The code is jumping to one of the exception vectors; I'd guess Data Abort (DAbt_addr). By default the startup file defines the exception vectors as infinite loops.

    I'd suggest trying to isolate the spot where the code vectors to the exception, then make sure there's not a stack overflow/corrupt stack and check your pointers.

    If you make it to the interrupt, you could be improperly clearing it. Or if you use ienable/idisable, that could be the problem.

    I can't help anymore without specific details about what's going wrong.

Reply
  • The code is jumping to one of the exception vectors; I'd guess Data Abort (DAbt_addr). By default the startup file defines the exception vectors as infinite loops.

    I'd suggest trying to isolate the spot where the code vectors to the exception, then make sure there's not a stack overflow/corrupt stack and check your pointers.

    If you make it to the interrupt, you could be improperly clearing it. Or if you use ienable/idisable, that could be the problem.

    I can't help anymore without specific details about what's going wrong.

Children