Oliver Betz

SRS=0 safe to detect BDM operation?

Discussion created by Oliver Betz on Jan 19, 2011
Latest reply on Jan 20, 2011 by kef

Hello All,


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.