Skip to content

Commit

Permalink
default debug speed 5000khz
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Feb 10, 2024
1 parent 5837ff8 commit 5c84057
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ def configure_debug_session(self, debug_config):
build_extra_data = debug_config.build_data.get("extra", {})
flash_images = build_extra_data.get("flash_images", [])

if "openocd" in (debug_config.server or {}).get("executable", ""):
debug_config.server["arguments"].extend(
["-c", "adapter speed %s" % (debug_config.speed or "5000")]
)

ignore_conds = [
debug_config.load_cmds != ["load"],
not flash_images,
Expand Down

0 comments on commit 5c84057

Please sign in to comment.