Virtual JTAG failed during debugging

I’m trying to debug one of the example program and the Pathfinder Console showed “Status 34: AJI_LOCKED”

This happened to me after I flashed and debugged programs on the DE2-115 a few times. Power off / on, then reflash the RISC-V core and try again and it should work. At least for me.