Skip to content

feat: add USB builk transfer support - #6

Open
dehanj wants to merge 1 commit into
mainfrom
allow_newer_version_of_rp2040_fw
Open

feat: add USB builk transfer support#6
dehanj wants to merge 1 commit into
mainfrom
allow_newer_version_of_rp2040_fw

Conversation

@dehanj

@dehanj dehanj commented Jul 1, 2026

Copy link
Copy Markdown
Member

Description

Uses the bulk transfer if the pico firmware supports it.

Type of change

  • Feature (non breaking change which adds functionality)

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

@dehanj
dehanj requested a review from mchack-work July 3, 2026 07:34
@dehanj
dehanj force-pushed the allow_newer_version_of_rp2040_fw branch from 4199cf4 to 5be96a4 Compare July 9, 2026 08:33
Use bulk endpoints when the device firmware reports BCD
version 0x0201 or newer. Falls back to control transfers for
older firmware.

- Add `_write_bulk()` and `_read_bulk()` helpers
- Adapt `spi_xfer()`, `gpio_set_all()` and `spi_clk_out()`to use bulk
  conditionally
@dehanj
dehanj force-pushed the allow_newer_version_of_rp2040_fw branch from 5be96a4 to a84d30e Compare July 9, 2026 08:35
@dehanj dehanj changed the title fix(iceflasher): accept Pico firmware versions >= 0x0200 feat: add USB builk transfer support Jul 9, 2026
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