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

Make programmer ft245r libavrdude ready #1778

Merged
merged 4 commits into from
Apr 25, 2024

Conversation

stefanrueger
Copy link
Collaborator

  • Implemented PDATA programmer memory and moved all static variables there
  • Utilised magic memory tree interface
  • Fixed memory leaks

This one I have myself:

$ tools/test-avrdude -p"-c usb-bub-ii -pm328p"
Testing avrdude version 7.3-20240417 (8fe729f0)
Prepare "-c usb-bub-ii -pm328p" and press 'enter' or 'space' to continue. Press any other key to skip
✅   0.215 s: fuse access: clear, set and read eesave fuse bit
✅   0.087 s: fuse access: set eesave fusebit to delete EEPROM on chip erase
✅   0.341 s: chip erase
✅   6.744 s: flash -U write/verify holes_rjmp_loops_32768B.hex
✅   3.280 s: flash -T write/verify holes_rjmp_loops_32768B.hex
✅   0.237 s: eeprom check whether programmer can flip 0s to 1s
✅   1.862 s: eeprom -U write/verify holes_pack_my_box_1024B.hex
✅   3.892 s: eeprom -T write/verify holes_{the_five_boxing_wizards,pack_my_box}_1024B.hex
✅   3.539 s: chip erase and spot check flash is actually erased
✅   0.457 s: spot check eeprom is erased, too

And here the programmer definition

#------------------------------------------------------------
# usb-bub-ii
#------------------------------------------------------------

# Connect up your target as below and use avrdude -c usb-bub-ii ... voila

programmer
    id                     = "usb-bub-ii";
    desc                   = "FT232R Synchronous BitBang";
    type                   = "ftdi_syncbb";
    prog_modes             = PM_TPI | PM_ISP;
    connection_type        = usb;
    reset                  = 3;  # CTS = D3 (green)
    sck                    = 2;  # RTS = D2 (yellow)
    sdo                    = 0;  # TxD = D0 (blue)
    sdi                    = 1;  # RxD = D1 (white)
;

156757

@stefanrueger stefanrueger added the enhancement New feature or request label Apr 21, 2024
@stefanrueger stefanrueger merged commit 8068aae into avrdudes:main Apr 25, 2024
12 checks passed
@stefanrueger stefanrueger deleted the ft245r branch April 25, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant