STM32F205 SWD-only debugging during sleep?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-01-05 2:53 AM
Hi, I recently tracked down an issue with PA15 staying high during Standby (and therefore holding an external component in reset). It only happened in debug builds where we need the debugger to stay attached during standby using:
DBGMCU_Config(DBGMCU_STANDBY, ENABLE); We use SWD debugging, so I wanted to know if there was any way of disabling the JTAG interface (specifically JTDI) but keeping SWD debugging alive? Any tips appreciated.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-01-05 3:51 AM
The debug features are just ''alternate functions'' for the pins that happen to be activated at reset. So you should just configure the pin to be input or output (whatever suits you) and disable its alternative function. You can ''lock out the debugger'' that way if you do it on a pin that your debugger needs....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-01-05 5:19 AM
Thanks for the reply. I thought that the alternate mapping would be invalidated once the processor entered standby, but if it preserves state and only gets reset when the processor wakes from standby (I use EXTI and RTC to wake up), than that would be great. Will post results.
