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

interrupts, large program, hang

Hi,

I have a problem with the interrupts, I am working with the LPC1768. In the main() function I have an infinite while() loop. In this loop is a complex program that analyzes data from the ADC. I use SysTick to periodically perform other tasks. Until this moment everything works fine. But if I get a UART interrupt then SysTick no longer works. Please help.

Regards,
Lukas

Parents
  • Whith a strage bug as you have,
    can be usefull to change the problem view.
    Yes maybe it is a stack overflow problem or not, a memory leak or other mistake with buffer or pointer.

    Experience can help: in the past I was fight with a similar problem: the project was RTX based and almost complex.

    After a lot of time the timer0 used by RTX stop to working...a USB host driver from another vendor that I used on my project was affected by an subdule bug:

    on particular circumstances the ISR of USB routine are not clear/assert the interrupt!!!

    Before review the code of thirty part software that my project was use, I'm view the problem on the wrong side: searching stack problem and so on.

    I hope that you can fix soon as possible your problem.

    Regards
    Maurizio

Reply
  • Whith a strage bug as you have,
    can be usefull to change the problem view.
    Yes maybe it is a stack overflow problem or not, a memory leak or other mistake with buffer or pointer.

    Experience can help: in the past I was fight with a similar problem: the project was RTX based and almost complex.

    After a lot of time the timer0 used by RTX stop to working...a USB host driver from another vendor that I used on my project was affected by an subdule bug:

    on particular circumstances the ISR of USB routine are not clear/assert the interrupt!!!

    Before review the code of thirty part software that my project was use, I'm view the problem on the wrong side: searching stack problem and so on.

    I hope that you can fix soon as possible your problem.

    Regards
    Maurizio

Children