DangerousPrototypes / BusPirate5-firmware

Bus Pirate v5 Firmware
MIT License
136 stars 42 forks source link

Add legacy mode for third parties flashrom avrdude #85

Closed therealdreg closed 1 month ago

therealdreg commented 2 months ago

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 commented 2 months ago

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

AreYouLoco commented 2 months ago

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 commented 2 months ago

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 commented 1 month ago

@DangerousPrototypes can you run the workflow again plz?

therealdreg commented 1 month ago

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

therealdreg commented 1 month ago

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.