NOTE: The function is tested with jlink debugger, and you are responsible for any problems with the use of this repository.