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

Problems with program and SWI_Handler

I've a problem with the A/D Converter example. I modified the programm, so that I can scale the voltage and different LED are ligthing. Furthermore the voltage could be changed with the potentiometer.
Now I have a problem, if I upload the to the board, I can't see anything of these funktions. Now when I try to debug, the program hangs on the SWI_handler. So the main funktion never can be achieved!
Does anybody know what the problem is?

Thanks

Timo

Parents
  • Are you sure you have your interrupt table correct.
    Are you expecting to receive a software interrupt?
    What interrputs are you expecting to get?
    for example you could be getting a data abort interrupt, but because the interrupt table is incorrect, it is being caught by the SWI interrupt handler. I am assuming the the SWI interrupt handler is a loop as follows:

    SWI_Handler B SWI_Handler

Reply
  • Are you sure you have your interrupt table correct.
    Are you expecting to receive a software interrupt?
    What interrputs are you expecting to get?
    for example you could be getting a data abort interrupt, but because the interrupt table is incorrect, it is being caught by the SWI interrupt handler. I am assuming the the SWI interrupt handler is a loop as follows:

    SWI_Handler B SWI_Handler

Children
No data