RCM6600W: Difficulty setting up a basic ISR.

I’m having difficulty setting up a very basic ISR for a serial routine on the RCM6600W.

I’ve shaved the ISR down to the point that it’s just clearing the interrupt and exiting.

When the interrupt is triggered, the main loop stops running. Then, typically but not always, the debugger loses its connection.

Is there anything glaringly wrong with the bare-bones linked example:

https://gist.github.com/caseymarquis/81aac00cf99960c1d9872468b41b492e

If not, then does anyone have any suggestions as to what could be going wrong? The symptoms being failure to return to the main loop and loss of my connection to the debugger.

Turns out I was using SetVectIntern wrong, so the interrupt was never assigned. I switched to manually assigning interrupts via assembly like RS232.LIB does.