to detect whether a target is run under BDM control, my code checks whether SRS is zero.
This way I enable some workarounds in the code during BDM debug sessions (i.e. a loop instead of WAIT because my debugger dislikes WAIT).
Is this a safe method? IOW is it guaranteed that SRS is not zero if I don't run the target under BDM control?
Some of the workarounds should not be run in production mode because they make the product less stable.