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

chore: min change #10

Merged
merged 84 commits into from
Apr 22, 2024
Merged

chore: min change #10

merged 84 commits into from
Apr 22, 2024

Commits on Feb 25, 2024

  1. Configuration menu
    Copy the full SHA
    5c891b3 View commit details
    Browse the repository at this point in the history
  2. Directly use AVRDUDE_FULL_VERSION string macro

    Directly use the AVRDUDE_FULL_VERSION macro instead of first
    defining an initialized variable which is never changed and
    then using that variable.
    
    This means one less layer of indirection both for the computer
    and for the programmer to go through when trying to understand
    the code.
    ndim committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    dfcd5cc View commit details
    Browse the repository at this point in the history
  3. Fix cmake not finding generated ac_cfg.h

    When there is no `src/ac_cfg.h` (e.g. a fresh `git clone` or after
    a working dir cleanup like `git -f -d -x`), running `cmake` will
    complain about not being able to find `ac_cfg.h`.
    
    This is probably because cmake looks for source files in the
    `CMAKE_CURRENT_SOURCE_DIR`, but when cmake creates `ac_cfg.h`
    it does so ´CMAKE_CURRENT_BINARY_DIR`, which is often different.
    
    Anyway, this makes the location of files generated by `configure_file`
    explicit as `CMAKE_CURRENT_BINARY_DIR`, and uses that same location
    in the source file list for the `libavrdude` target (instead of just
    `ac_cfg.h` with the implicit `CMAKE_CURRENT_SOURCE_DIR`) and adds the
    same source file to the `avrdude` target to allow cmake to determine
    the dependencies properly.
    ndim committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    92e2dd4 View commit details
    Browse the repository at this point in the history
  4. Look for generated ac_cfg.h in builddir first

    As it can happen that there is a leftover `src/ac_cfg.h` when
    running an out of tree cmake build (you might have run `cmake .`
    or `./src/bootstrap`), the out of tree cmake build must look
    for `ac_cfg.h` in its builddir first (e.g. `build_linux/src/`).
    
    Otherwise the cmake build picks up and uses whatever data happens
    to be in `src/ac_cfg.h`.
    
    Both the MSVC and GCC C processors are documented to look in the
    location of the `#include` directive for the included file first
    for double quoted includes, so the old `#include "ac_cfg.h"` was
    exactly the wrong thing to do. clang probably does the same, and
    ISO C specifies the sequence of places to look for include files
    as implementation defined.
    
    So this changes all occurrences of `#include "ac_cfg.h"` to
    `#include <ac_cfg.h>` which follows the sequence of `-I` or `/I`
    directives as cmake builds add via `include_directories` or
    `target_include_directories`.
    
    Fixes: avrdudes#1706
    ndim committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    9616b37 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2024

  1. Add benchmark option -b to test-avrdude

    This executes five tests for typical programming tasks:
      - Write/verify a "difficult" sketch to flash: two code sections and one
        data section separated by "holes" of different sizes
      - Dump all flash, eg, to make a backup
      - Write/verify a "difficult" eeprom data file with holes
      - Dump all eeprom, eg, to make a backup
      - Chip erase (bootloaders are expected to page erase flash apart from
        the bootloader itself) and spot check whether flash was erased
    
    The reported times are realistic times with overhead of starting avrdude,
    resetting the board via DTR/RTS, establishing comms, including erasing the
    flash before writing/verifying the sketch and disengaging the chip.
    
    $ test-avrdude -b -d 0 \
      -p "u7.7/weu-jPrac -c urclock -P ch340 -p m328p -b 1000000" \
      -p "u7.7/-eu-jPrac -c urclock -P ch340 -p m328p -b 1000000"
    
    Testing avrdude version 7.3-20240225 (2078871)
    Prepare "u7.7/weu-jPrac -c urclock -P ch340 -p m328p -b 1000000" and press 'enter' or 'space' to continue. Press any other key to skip
    ✅   2.174 s: flash -U write/verify holes_rjmp_loops_32768B.hex
    ✅   1.339 s: flash -U read all flash
    ✅   1.415 s: eeprom -U write/verify holes_pack_my_box_1024B.hex
    ✅   1.034 s: eeprom -U read all
    ✅   1.604 s: chip erase and spot check flash is actually erased
    ✅   7.566 s: benchmark for u7.7/weu-jPrac -c urclock -P ch340 -p m328p -b 1000000
    Prepare "u7.7/-eu-jPrac -c urclock -P ch340 -p m328p -b 1000000" and press 'enter' or 'space' to continue. Press any other key to skip
    ✅   2.001 s: flash -U write/verify holes_rjmp_loops_32768B.hex
    ✅   1.333 s: flash -U read all flash
    ✅   1.405 s: eeprom -U write/verify holes_pack_my_box_1024B.hex
    ✅   1.029 s: eeprom -U read all
    ✅   1.618 s: chip erase and spot check flash is actually erased
    ✅   7.386 s: benchmark for u7.7/-eu-jPrac -c urclock -P ch340 -p m328p -b 1000000
    
    Note the benchmark line with the cumulative time for all five tasks
    stefanrueger committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    274ac34 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6e6404c View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2024

  1. Lowercase variable names in test-avrdude

    Uppercase names are typically used for environment variables in bash
    stefanrueger committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    3b56768 View commit details
    Browse the repository at this point in the history
  2. Add normalised avrbench number suitable for markdown tables

    The cumulative time for typical user tasks depends on the flash and EEPROM
    size of the part. This commit computes a size-normalised time. Lower is
    better. This avrbench number still depends on the part, but less so than
    the cumulative time of the tasks.
    
    The summary line is put in vertical bars to make creation of markdown
    tables easier.
    stefanrueger committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    df3c67f View commit details
    Browse the repository at this point in the history
  3. Clarify -b option

    stefanrueger committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    f088a9b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cd41d2b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    efd6bab View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    82c001b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    61ed3dd View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2024

  1. Configuration menu
    Copy the full SHA
    64c5d1d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e35714b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    71a9cb4 View commit details
    Browse the repository at this point in the history
  4. Merge pull request avrdudes#1707 from ndim/fix-cmake-builds-related-t…

    …o-ac_cfg.h
    
    Fix cmake build errors related to ac_cfg.h
    stefanrueger authored Feb 28, 2024
    Configuration menu
    Copy the full SHA
    e5304a4 View commit details
    Browse the repository at this point in the history
  5. Merge pull request avrdudes#1709 from stefanrueger/benchmark

    Add benchmark option `-b` for `test-avrdude`
    stefanrueger authored Feb 28, 2024
    Configuration menu
    Copy the full SHA
    076e2e9 View commit details
    Browse the repository at this point in the history
  6. Update NEWS

    stefanrueger committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    27eb695 View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2024

  1. Configuration menu
    Copy the full SHA
    34366a6 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2024

  1. Configuration menu
    Copy the full SHA
    07669a9 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2024

  1. Replace msg_info() by msg_debug() in jtag3_prmsg() and jtag3_prevent()

    Both these functions are called at verbosity level DEBUG and above,
    so they must not produce INFO level messages.
    
    Supposed to fix issue avrdudes#1726
    dl8dtl committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    b00c284 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2024

  1. Add MSG2_LEFT_MARGIN flag in lieu of \v messaging convention

    Some messaging needs a functionality to end an open line, so that the next
    message starts at the left margin, ie, the ability to print a \n if and
    only if the last printed character was not already a \n.
    
    This used to be effected by \v as first char in the message format.
    
    This commit introduces a dedicated lmsg_xyz() set of messaging functions
    that utilises a MSG2_LEFT_MARGIN flag to enforce a left margin start for
    the message.
    stefanrueger committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    7f9f82d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a26c434 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f027493 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d91a482 View commit details
    Browse the repository at this point in the history
  5. Merge pull request avrdudes#1727 from dl8dtl/fix-1726

    Replace msg_info() by msg_debug() in jtag3_prmsg() and jtag3_prevent()
    
    Closes avrdudes#1726
    dl8dtl authored Mar 29, 2024
    Configuration menu
    Copy the full SHA
    0ff5e84 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    674128c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    39eea96 View commit details
    Browse the repository at this point in the history
  8. Merge pull request avrdudes#1730 from stefanrueger/remove_avrdude_mes…

    …sage
    
    Remove unused avrdude_message()
    
    Fixes avrdudes#1719
    dl8dtl authored Mar 29, 2024
    Configuration menu
    Copy the full SHA
    8516243 View commit details
    Browse the repository at this point in the history
  9. Update NEWS

    dl8dtl committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    67867a6 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    0f21635 View commit details
    Browse the repository at this point in the history
  11. To use Static Libs for macOS arduino_packing build

    This is pointed out by @umbynos during the review of PR avrdudes#1690
    mcuee authored Mar 29, 2024
    Configuration menu
    Copy the full SHA
    9b7d4d8 View commit details
    Browse the repository at this point in the history
  12. Merge pull request avrdudes#1728 from stefanrueger/msg2_left_margin

    Provide lmsg_xyz() functions to start message at left margin
    stefanrueger authored Mar 29, 2024
    Configuration menu
    Copy the full SHA
    22a7bf9 View commit details
    Browse the repository at this point in the history
  13. Update NEWS

    stefanrueger committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    840a098 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    82e4513 View commit details
    Browse the repository at this point in the history
  15. Merge pull request avrdudes#1724 from stefanrueger/progress-reporting

    Document progress reporting in source code
    stefanrueger authored Mar 29, 2024
    Configuration menu
    Copy the full SHA
    cb61171 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. Configuration menu
    Copy the full SHA
    93ed537 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d939188 View commit details
    Browse the repository at this point in the history
  3. Update NEWS

    stefanrueger committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    08f70fe View commit details
    Browse the repository at this point in the history
  4. Merge pull request avrdudes#1729 from stefanrueger/timestamp

    Change return type for avr_(ms|us)timestamp() to uint64_t
    stefanrueger authored Apr 5, 2024
    Configuration menu
    Copy the full SHA
    a8097ea View commit details
    Browse the repository at this point in the history
  5. Merge pull request avrdudes#1731 from mcuee/avrdude_packing_fix

    To use Static Libs for macOS arduino_packing build
    stefanrueger authored Apr 5, 2024
    Configuration menu
    Copy the full SHA
    8976846 View commit details
    Browse the repository at this point in the history
  6. Update NEWS

    stefanrueger committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    f2b1c7e View commit details
    Browse the repository at this point in the history
  7. pup->pullups

    therealdreg authored Apr 5, 2024
    Configuration menu
    Copy the full SHA
    a5035c0 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. Fix message levels in jtag3_print_data()

    These are debugging functions, and not supposed to print at
    MSG_INFO level.
    dl8dtl committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    82928d3 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2024

  1. Configuration menu
    Copy the full SHA
    fdfa0ac View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3129ba2 View commit details
    Browse the repository at this point in the history
  3. No longer warn when part configuration disables SPI interface

    SPI programming cannot disable SPI programming for the part configuration.
    Hence. when another programming interface disables SPI that very same
    interface can enable SPI again. The warning disabling SPI might brick the
    part is therefore incorrect.
    stefanrueger committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    5361668 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c53a3ed View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1a46faa View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ece8652 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2024

  1. Adding arduino_packing_release github action (avrdudes#1690)

    Co-authored-by: Umberto Baldi <[email protected]>
    mcuee and umbynos authored Apr 13, 2024
    Configuration menu
    Copy the full SHA
    d441501 View commit details
    Browse the repository at this point in the history
  2. Merge pull request avrdudes#1741 from dl8dtl/msg_debug_fixes

    Fix message levels in jtag3_print_data()
    stefanrueger authored Apr 13, 2024
    Configuration menu
    Copy the full SHA
    b302e70 View commit details
    Browse the repository at this point in the history
  3. Merge pull request avrdudes#1745 from stefanrueger/override-signature…

    …-check
    
    Consult -F option when signature cannot be read
    stefanrueger authored Apr 13, 2024
    Configuration menu
    Copy the full SHA
    2ee8982 View commit details
    Browse the repository at this point in the history
  4. Merge pull request avrdudes#1746 from stefanrueger/locate_programmer_…

    …starts_set
    
    Check all programmer ids for exact match
    stefanrueger authored Apr 13, 2024
    Configuration menu
    Copy the full SHA
    e10370e View commit details
    Browse the repository at this point in the history
  5. Merge pull request avrdudes#1747 from stefanrueger/update-avrintel

    Update avrintel files
    stefanrueger authored Apr 13, 2024
    Configuration menu
    Copy the full SHA
    1d3f028 View commit details
    Browse the repository at this point in the history
  6. Update NEWS

    stefanrueger committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    428ea42 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2024

  1. Remove deprecated ucr2 part

    It's been deprecated for a while now.
    stefanrueger committed Apr 14, 2024
    Configuration menu
    Copy the full SHA
    6488cb6 View commit details
    Browse the repository at this point in the history
  2. Add support for libgpiod v2+ API

    libgpiod in version 2 or above introduced an API change which results
    in compile error with the current code.
    
    This commit adds some glue magic for the newer versions and
    tries to detect the used libgpiod version based on the information
    available in the pkg-config files.
    
    At the moment, this eliminates the possibility to statically link
    against this library.
    
    Signed-off-by: Michael Heimpold <[email protected]>
    mhei committed Apr 14, 2024
    Configuration menu
    Copy the full SHA
    ea701bc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    94561c8 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

  1. Configuration menu
    Copy the full SHA
    af8d832 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a5a94a0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cff9d88 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9850a8f View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Update avrdude.texi better doc

    better doc
    therealdreg authored Apr 16, 2024
    Configuration menu
    Copy the full SHA
    97cd1aa View commit details
    Browse the repository at this point in the history
  2. Update avrdude.texi

    therealdreg authored Apr 16, 2024
    Configuration menu
    Copy the full SHA
    cfc5c93 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c930a27 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b00d601 View commit details
    Browse the repository at this point in the history
  5. Merge pull request avrdudes#1733 from therealdreg/buspirate-hiz-and-p…

    …ullups
    
    Add buspirate hiz and pullups feature
    stefanrueger authored Apr 16, 2024
    Configuration menu
    Copy the full SHA
    8231b36 View commit details
    Browse the repository at this point in the history
  6. Merge pull request avrdudes#1725 from mhei/support-for-libgpiodv2

    Add support for libgpiod v2+ API
    stefanrueger authored Apr 16, 2024
    Configuration menu
    Copy the full SHA
    4761a70 View commit details
    Browse the repository at this point in the history
  7. Merge pull request avrdudes#1749 from stefanrueger/deprecated

    Remove deprecated ucr2 part
    stefanrueger authored Apr 16, 2024
    Configuration menu
    Copy the full SHA
    6aece29 View commit details
    Browse the repository at this point in the history
  8. Merge pull request avrdudes#1750 from stefanrueger/static-buspirate

    Move static buffer to PDATA region in buspirate.c
    stefanrueger authored Apr 16, 2024
    Configuration menu
    Copy the full SHA
    5858898 View commit details
    Browse the repository at this point in the history
  9. Update NEWS

    stefanrueger committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    8fe729f View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2024

  1. chore: minimize changes

    koen1711 committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    6067c07 View commit details
    Browse the repository at this point in the history
  2. chore: update .gitignore

    koen1711 committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    1ca431e View commit details
    Browse the repository at this point in the history
  3. fix: conflicts

    koen1711 committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    d874e0b View commit details
    Browse the repository at this point in the history
  4. fix: wrong emsdk version

    koen1711 committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    31c49f0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f2d1fac View commit details
    Browse the repository at this point in the history
  6. fix: logging

    koen1711 committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    90dbaa1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e99921e View commit details
    Browse the repository at this point in the history
  8. fix: es6

    sverben committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    f40617d View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2024

  1. chore: bump version

    koen1711 authored Apr 22, 2024
    Configuration menu
    Copy the full SHA
    e569767 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aff70c4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    98dc910 View commit details
    Browse the repository at this point in the history