> > How can I insert an __HALT? It's defined in tigcclib.h: #define __HALT asm volatile("0:bra.s 0b") You simple insert __HALT; where you need it in the program.