<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tinyusb.git/AGENTS.md, branch dcd_ch32hs_spd</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/tinyusb.git/atom/AGENTS.md?h=dcd_ch32hs_spd</id>
<link rel='self' href='http://cgit.235523.xyz/tinyusb.git/atom/AGENTS.md?h=dcd_ch32hs_spd'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/'/>
<updated>2026-06-11T16:19:17Z</updated>
<entry>
<title>Merge pull request #3695 from hathach/claude/adoring-pasteur-kbaFa</title>
<updated>2026-06-11T16:19:17Z</updated>
<author>
<name>Ha Thach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2026-06-11T16:19:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=5014146fef1aac07362ee35c0c361b8475f7636d'/>
<id>urn:sha1:5014146fef1aac07362ee35c0c361b8475f7636d</id>
<content type='text'>
Add pvs skill to run PVS-Studio analysis for a board</content>
</entry>
<entry>
<title>pvs skill: harden credentials parsing; note compile DB is exported by default</title>
<updated>2026-06-11T14:56:16Z</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-06-11T14:56:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=dd31ba4530f1904b0d2d83fa6b008502354fb400'/>
<id>urn:sha1:dd31ba4530f1904b0d2d83fa6b008502354fb400</id>
<content type='text'>
- Parse PVS_STUDIO_CREDENTIALS into two quoted fields (no glob/word-split).
- AGENTS.md: examples build sets CMAKE_EXPORT_COMPILE_COMMANDS ON already.

Addresses Copilot review on #3695.
</content>
</entry>
<entry>
<title>pvs skill: mirror CI --security-related-issues flag and ignore SARIF output</title>
<updated>2026-06-11T14:53:24Z</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-06-11T14:53:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=65b2aeb6a92a4681ec495a4d89565862dfaa55cf'/>
<id>urn:sha1:65b2aeb6a92a4681ec495a4d89565862dfaa55cf</id>
<content type='text'>
- Add --security-related-issues to run_pvs.sh and AGENTS.md analyze commands
  so local runs reproduce the CI SAST classification (static_analysis.yml).
- Ignore *.sarif so a successful run leaves the worktree clean.

Addresses Codex review on #3695.
</content>
</entry>
<entry>
<title>Fix stm32f723disco host/cdc_msc_hid HIL: UART RX starvation + DWC2 DMA split-IN NAK storm (#3677)</title>
<updated>2026-06-11T03:17:28Z</updated>
<author>
<name>Ha Thach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2026-06-11T03:17:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=dffc57135846a4b00aca06b2f588daa6d13b67ef'/>
<id>urn:sha1:dffc57135846a4b00aca06b2f588daa6d13b67ef</id>
<content type='text'>
Fix stm32f723disco host HIL: UART RX starvation + DWC2 split bulk NAK/XactErr handling (#3677)
stm32f7 BSP — UART RX starvation
- The host console USART shared interrupt priority with the USB OTG ISR, so a long
  OTG interrupt could starve RXNE and drop received bytes. Raise the USART RX IRQ
  above OTG_FS/OTG_HS in both the bare-metal and FreeRTOS init paths, guarded by
  #ifdef UART_ID so boards without a UART console keep the default OTG priority.

dwc2 host — split NAK/XactErr handling
- Slave mode: a persistently-NAKing split bulk/control IN poll re-armed the
  start-split immediately, storming the ISR and starving task context. Throttle by
  disabling the channel and re-arming on the resulting halt (no frame deferral).
- Buffer-DMA mode: a pure split bulk-OUT NAK was unhandled, leaving the channel
  halted and stalling the transfer — the dominant cause of CDC echo truncation.
  Handle it by rewinding the buffer pointers and retrying the start-split
  (Programming Guide v4.20a 5.1.4.2).
- Buffer-DMA mode: a split bulk-OUT XactErr was retried immediately, exhausting
  HCD_XFER_ERROR_MAX before the transient cleared. Throttle via channel_disable +
  re-arm to give the hub TT a recovery gap, mirroring slave mode.
- All three are scoped to split transfers (hcsplt.split_en); non-split NAK/XactErr
  keep the core-handled / immediate-retry behavior. The OUT XactErr throttle also
  excludes periodic split, where channel_disable() is a no-op and would wedge the
  channel. The nak_disabled flag is generalized to retry_disabled and honors
  xfer-&gt;closing so an endpoint close during a throttled retry tears down cleanly.

Verified on stm32f723disco HIL (slave + CFG_TUH_DWC2_DMA_ENABLE): host/cdc_msc_hid,
msc_file_explorer, and device_info all pass on both variants; DMA CDC echo went
from ~15-25% raw failure to 10/10 clean.</content>
</entry>
<entry>
<title>Compact pvs skill; fix PVS-Studio -S/--dump-files docs in AGENTS.md</title>
<updated>2026-06-05T07:30:23Z</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-06-05T07:30:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=c3b4ef03aa26f29d5ab28313130b677c1ea00c51'/>
<id>urn:sha1:c3b4ef03aa26f29d5ab28313130b677c1ea00c51</id>
<content type='text'>
The AGENTS.md '-S src/foo.c' example was inaccurate: -S takes a plaintext
file listing source paths, not paths directly. Drop --dump-files from the
documented commands (it scatters .PVS-Studio.i/.cfg dumps across the tree;
FP-debugging only) and reference the new pvs skill.

https://claude.ai/code/session_015inWmFhRYSq17CxMukdoqX
</content>
</entry>
<entry>
<title>Improve remote execution in `hil_ci.sh`</title>
<updated>2026-04-29T05:32:25Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2026-04-29T04:56:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=f5d6c6ba91e7176ddf5965608c361ccf5d515bde'/>
<id>urn:sha1:f5d6c6ba91e7176ddf5965608c361ccf5d515bde</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add `code-size` skill and integrate `metrics_compare_base.py` tool</title>
<updated>2026-04-29T04:46:34Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2026-04-29T04:46:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=fd715afcc52b27127de4e7a6a89a7782fdef5676'/>
<id>urn:sha1:fd715afcc52b27127de4e7a6a89a7782fdef5676</id>
<content type='text'>
- Introduced a `code-size` skill under `.claude/skills` for evaluating TinyUSB code size changes between the base branch and current branch.
- Added `metrics_compare_base.py`, automating code size comparison with granular options for examples, boards, and CI-wide runs.
- Updated `AGENTS.md` to include quick references and usage guidance for the new feature.
</content>
</entry>
<entry>
<title>address review feedback for AGENTS.md and hil skill</title>
<updated>2026-04-29T04:09:48Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2026-04-29T04:09:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=47f2228cedfb216411c1ac50c4f10a30907cdb51'/>
<id>urn:sha1:47f2228cedfb216411c1ac50c4f10a30907cdb51</id>
<content type='text'>
AGENTS.md:
- fix build dir to cmake-build-&lt;board&gt; (matches hil_test.py expectation)
- reformat flash section to avoid shell-pipe ambiguity, use &lt;board&gt;
- mention board.mk for Make-based builds
- complete OpenOCD jlink interface example
- update stale "Build Option 2" references to "All examples for a board"
- split PVS-Studio command so it is copy-pasteable

.claude/skills/hil/SKILL.md:
- clarify local.json is user-supplied, not tracked in repo
- use python3 consistently
- add all-boards variant for remote execution
- delegate remote execution to test/hil/hil_ci.sh

test/hil/hil_ci.sh:
- portable shebang (/usr/bin/env bash)
- set -euo pipefail
- env overrides for REMOTE, REMOTE_DIR, CONFIG, ROOT_DIR
- --prune-empty-dirs on rsync to skip empty subdirs
- fail-fast sanity check on repo layout

Co-Authored-By: Claude Opus 4.7 (1M context) &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>update AGENTS.md and claude hil skill</title>
<updated>2026-04-28T15:18:21Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2026-04-28T15:18:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=da9d36fa4cef193abf12b581ac02e1986ea215a7'/>
<id>urn:sha1:da9d36fa4cef193abf12b581ac02e1986ea215a7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add hil test for host msc and cdc</title>
<updated>2026-03-17T14:38:46Z</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2026-03-17T14:38:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/tinyusb.git/commit/?id=45e80a1042ea802b74ebe97db350f9da17cb2fe4'/>
<id>urn:sha1:45e80a1042ea802b74ebe97db350f9da17cb2fe4</id>
<content type='text'>
</content>
</entry>
</feed>
