Is there a way for a program to know if it's executed under the simulator and not on an actual CPU?
Hi, Very nice solution...
Do you have a trick also to know if the Ulink is connected(Debug) or when the CPU is stand alone (No Ulink)?
Thanks, Doron
In Cortex-M3
if(CoreDebug->DHCSR & 1) { // Debugging with ULIK or similar ! } else { // No debugging tool }