Skip to content

debug: add debug boot delay to allow attaching a debugger/serial monitor - #105

Open
jthornblad wants to merge 1 commit into
mainfrom
debug_delay_startup
Open

debug: add debug boot delay to allow attaching a debugger/serial monitor#105
jthornblad wants to merge 1 commit into
mainfrom
debug_delay_startup

Conversation

@jthornblad

@jthornblad jthornblad commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Description

  • Add millis()/delay() helpers under TKEY_DEBUG, built on the existing millisecond timer
  • Insert a 2 second delay in hw_init() when TKEY_DEBUG is defined, giving time to attach before the rest of init proceeds
  • Include tkey/debug.h

Type of change

Please tick any that are relevant to this PR and remove any that aren't.

  • Bugfix (non breaking change which resolve an issue)
  • Feature (non breaking change which adds functionality)
  • Breaking Change (a change which would cause existing functionality to not work as expected)
  • Documentation (a change to documentation)

Submission checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my changes
  • I have tested and verified my changes on target
  • My changes are well written and CI is passing
  • I have squashed my work to relevant commits and rebased on main for linear history
  • I have added a "Co-authored-by: x" if several people contributed, either pair programming or by squashing commits from different authors.
  • I have updated the documentation where relevant (readme, dev.tillitis.se etc.)
  • QEMU is updated to reflect changes

@jthornblad
jthornblad requested a review from dehanj July 10, 2026 12:54
- Add millis()/delay() helpers under TKEY_DEBUG, built on the
  existing millisecond timer
- Insert a 2 second delay in hw_init() when TKEY_DEBUG is defined,
  giving time to attach before the rest of init proceeds
- Include tkey/debug.h
@jthornblad
jthornblad force-pushed the debug_delay_startup branch from bb50a68 to ce5a2aa Compare July 10, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant