Content originally posted in LPCWare by Muis on Thu Feb 13 12:43:05 MST 2014
Okay, I finally found the problem..
I was calling:
__disable_irq(); (which executes ASM "cpsid i" behind the scenes)
right before ReinvokeISP().
Removing that line solved the problem and USB bootloader works fine. Also the IRCOUT has to be powered (which the example doesnt do). However, in all documentation it is mentioned that you should disable interrupts before entering ISP mode, so Im still not sure why this could cause any problem.