I'm trying to dynamically analyze the firmware of a NXP LPC1752 (Cortex-M3) based USB device. This firmware contains a WFI instruction which seems to interfere my attempts in that the device sometimes can't be accessed by the JTAG-probe anymore. The probes used for testing are a Segger JLink-Edu v9.3 using Seggers own or OpenOCD as GDB-server, and a BusBlaster v2.5 with OpenOCD.
I tried to remove the WFI by replacing it with a NOP or an empty infinite loop. Either way the device does not enumerate anymore.
As this WFI instruction is accompanied with a couple NOP's I'm asking if there is a code sequence that can do what WFI does, just without entering sleep mode?