-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
target/{esp32s2,esp32s3,esp32c3}: disable SWD on reset or halt
ESP32-S2, ESP32-S3, ESP32-C3 chips include a "Super watch-dog" module. This is an additional watchdog which can reset the entire chip (both digital and RTC domains). On ESP32-C3/S3 it is enabled by default at start-up. On the ESP32-S2 it isn't enabled, but theoretically can be enabled by the program being debugged. To prevent SWD from resetting the chip during debugging, enable the "auto-feed" feature. The RTC controller will keep feeding the SWD as long as the RTC module clock (RTC_SLOW) is present. For ESP32-S2, only need to modify esp32s2_disable_wdts function, as esp32s2_soc_reset is implemented on OpenOCD side. For ESP32-S3, need to modify both esp32s2_disable_wdts and the reset stub, since the esp32s3_soc_reset is still implemented via a stub. For ESP32-C3, there is no target-specific source file yet, so only modify the esp32c3_wdt_disable procedure in the TCL scripts. Closes #153.
- Loading branch information
Showing
4 changed files
with
78 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters