Is there a way for firmware running on the nRF52 to detect the presence of a SEGGER (or other) SWD capable device? I've looked through all the nRF registers but couldn't find anything appropriate.
Is there a way for firmware running on the nRF52 to detect the presence of a SEGGER (or other) SWD capable device? I've looked through all the nRF registers but couldn't find anything appropriate.
( ( CoreDebug->DHCSR & CoreDebug_DHCSR_C_DEBUGEN_Msk ) != 0 )
ought to do the trick.
( ( CoreDebug->DHCSR & CoreDebug_DHCSR_C_DEBUGEN_Msk ) != 0 )
ought to do the trick.
Wow. Thanks very much. I am not up to speed on all that CMSIS offers. Guess I better seek out a tutuorial. There appears to be a ton of stuff there that the Nordic API docs don't discuss.
Thanks for this :)