Skip to content

Fix buspirate fallback to byte write#2074

Open
alexwarg wants to merge 1 commit intoavrdudes:mainfrom
alexwarg:main
Open

Fix buspirate fallback to byte write#2074
alexwarg wants to merge 1 commit intoavrdudes:mainfrom
alexwarg:main

Conversation

@alexwarg
Copy link

The buspirate logic tries to detect different versions of supported features by the buspirate. One case is that the buspirate does not support paged writes, in this case the pgm->paged_write function pointer is set to NULL. However, the avr_write code unconditionally calls pgm->paged_write and crashes the avrdude.

This change checks if the paged_write pointer is still set and falls back to byte-by-byte write if not. This allows for byte-by-byte write, while still using paged_read for verification.

The buspirate logic tries to detect different versions of supported
features by the buspirate. One case is that the buspirate does not
support paged writes, in this case the pgm->paged_write function pointer
is set to NULL. However, the avr_write code unconditionally calls
pgm->paged_write and crashes the avrdude.

This change checks if the paged_write pointer is still set and falls
back to byte-by-byte write if not. This allows for byte-by-byte write,
while still using paged_read for verification.
@mcuee mcuee added the bug Something isn't working label Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants