Skip to content

tests/hw-ab: write the flash hex in byte order so DAPLink can decode it - #11610

Open
Eric Anderson (humanapp) wants to merge 1 commit into
microsoft:masterfrom
humanapp:humanapp/hwab-device-copy-fix
Open

Eric Anderson (humanapp) wants to merge 1 commit into
microsoft:masterfrom
humanapp:humanapp/hwab-device-copy-fix

Conversation

@humanapp

Copy link
Copy Markdown
Contributor

Replaces the buffered copy in run-capture.js with a sequential per-chunk-synced write.

DAPLink parses the incoming hex as a stream and cannot tolerate blocks arriving out of order. A buffered copy lets the page cache reorder writes, and the board fails the flash with a 521 error; its FAIL.TXT reads "File sent out of order by PC". Writing 4KB chunks and syncing each before the next forces on-device order.

Observed on macOS, where the buffered copy produced repeatable 521 errors on the microbit. With the ordered write the same hexes flash cleanly.

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