The source code nanoexec has been uploaded to Github- https://github.com/imagecraft/nanoexec-cortex-m There are some explanations in the file nanoexec.h