Thanks for this nice wrap-up of interrupt handling. I think I may have a related problem using DT_INTS18: In my main program I use INT0, TMR1, and USBINT, but as I was adding function and the code grew INT0 and then TMR1 stopped working. The interrupt is called but I think the handler is not running properly (or as you said, does crash when it has to go back to the main program).
As far as I understand, Page locations in RAM should be dealt within DT_INTS, but should the program reside in specific page of the code memory in order for everything to work?
I remember seeing a piece of code to trigger an error if interrupt handler is not located in the appropriate memory bank but cannot find it back... could that be useful for debug?





Bookmarks