Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add legacy mode for third parties flashrom avrdude #85

Merged

Conversation

therealdreg
Copy link
Collaborator

@therealdreg therealdreg commented Aug 27, 2024

Bus Pirate v5* & v6-> (flashrom, avrdude & asprogrammer dreg mod, from #81 )

The idea here is to create something small and simple that works with third parties, not to implement everything. So the code I've written is a bit tricky (for example, I’m telling flashrom that I’m a Bus Pirate v2.5 (HW) so that it keeps the UART baud rate at 115200 by default...)


image

image


image


uf2 files:

build.zip


Example flashrom

flashrom.exe --progress -V -c "W25Q64JV-.Q" -p buspirate_spi:dev=COM5,spispeed=8M -r flash_content.img

Example avrdude

avrdude.exe -V -c buspirate -p m328p -P COM5 -b 115200 -U flash:r:"C:\Users\regue\Desktop\readed.bin":r

@therealdreg
Copy link
Collaborator Author

therealdreg commented Aug 27, 2024

@DangerousPrototypes all ready in one commit! merge it if you like it!

@AreYouLoco
Copy link
Contributor

AreYouLoco commented Aug 28, 2024

Just tested it with flashrom on some random chip and it worked.

Only thing that is missing pin labels on the LCD after entering the mode and maybe a way to get out of the legacy binmode without disconnecting and connecting.

@therealdreg
Copy link
Collaborator Author

Just tested it with flashrom on some random chip and it worked.

Only thing that is missing pin labels on the LCD and maybe a way to get out of the legacy binmode without disconnecting and connecting.

rigth, its a minor issue, It will improve it in a future PR, thx for your feedback @AreYouLoco

@therealdreg
Copy link
Collaborator Author

@DangerousPrototypes can you run the workflow again plz?

@therealdreg
Copy link
Collaborator Author

For me, it’s okay to merge. I’ll start making much smaller and more manageable PRs to gradually improve things. @DangerousPrototypes

@therealdreg
Copy link
Collaborator Author

I’ve compiled it manually on Windows, and it works. From looking at the workflows on macOS and Ubuntu, it compiles there as well, so everything is good.

@DangerousPrototypes DangerousPrototypes merged commit 5bbaed7 into DangerousPrototypes:main Sep 10, 2024
2 of 3 checks passed
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.

3 participants