Commit Graph

4529 Commits

Author SHA1 Message Date
Stefan Rueger
ec084bb539 Reformat spacing/comments in src/avrdude.1 2024-08-18 01:54:03 +01:00
Stefan Rueger
41ee6806db Reformat spacing/comments in src/avrcache.c 2024-08-18 01:54:03 +01:00
Stefan Rueger
8a53ab4cef Reformat spacing/comments in src/avr_opcodes.c 2024-08-18 01:54:03 +01:00
Stefan Rueger
742a401048 Reformat spacing/comments in src/avr910.h 2024-08-18 01:54:03 +01:00
Stefan Rueger
038843c48d Reformat spacing/comments in src/avr910.c 2024-08-18 01:54:02 +01:00
Stefan Rueger
c393085013 Reformat spacing/comments in src/avr.c 2024-08-18 01:54:02 +01:00
Stefan Rueger
e80b03a773 Reformat spacing/comments in src/arduino.h 2024-08-18 01:54:02 +01:00
Stefan Rueger
0d83fce664 Reformat spacing/comments in src/arduino.c 2024-08-18 01:54:02 +01:00
Stefan Rueger
dc325d8828 Reformat spacing/comments in NEWS 2024-08-18 01:54:01 +01:00
Stefan Rueger
3baeab0b93 Update NEWS 2024-08-18 01:06:30 +01:00
Stefan Rueger
8c121cfadf Merge pull request #1891 from ndim/test-avrdude-bugfixes
Some bugfixes for the tools/test-avrdude script
2024-08-18 01:04:06 +01:00
Hans Ulrich Niedermann
8f64d849a5 test-avrdude: Determine mem sizes without the full command
Determine the flash and ee memory sizes without invoking the full
${avrdude[@]} command with logging etc.

Slight adaptation of code by Stefan Rueger from
https://github.com/avrdudes/avrdude/pull/1891#issuecomment-2293314322
2024-08-16 16:27:05 +02:00
Hans Ulrich Niedermann
cef23e252e test-avrdude: Condense two info lines into one
Condense the information about the avrdude binary executable
and its version from two output lines into a single output line.

Slight adaptation of code by Stefan Rueger from
https://github.com/avrdudes/avrdude/pull/1891#issuecomment-2293314322
2024-08-16 16:17:19 +02:00
Hans Ulrich Niedermann
b8718e6b5d test-avrdude: Replace associative array with function call
Macos ships a quite old version of bash (3.x) which does not have
associative arrays (declare -A) yet.

As the test-avrdude script only uses one associative array
for a static mapping of one character strings to one word
strings, this can be easily replaced by a shell function
containing a "case" statement.

Before this fix:

2024-08-15T15:39:59.9596380Z Prepare "-cdryrun -pm2560" and press 'enter' or 'space' to continue. Press any other key to skip
2024-08-15T15:40:00.5796130Z    0.155 s: flash raw format -T/-U write/verify cola-vending-machine.raw
2024-08-15T15:40:00.7006170Z    0.111 s: flash extended address and hole test
2024-08-15T15:40:00.7057180Z ./tools/test-avrdude: line 322: declare: -A: invalid option
2024-08-15T15:40:00.7057750Z declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
2024-08-15T15:40:00.9218810Z    0.212 s: flash writing R numbers
2024-08-15T15:40:01.1793950Z    0.240 s: flash reading and verifying R numbers
2024-08-15T15:40:01.3661060Z    0.173 s: flash writing R numbers
2024-08-15T15:40:01.6317540Z    0.254 s: flash reading and verifying R numbers
2024-08-15T15:40:01.8235780Z    0.182 s: flash writing R numbers
2024-08-15T15:40:02.0724260Z    0.239 s: flash reading and verifying R numbers
2024-08-15T15:40:02.2713120Z    0.188 s: flash writing R numbers
2024-08-15T15:40:02.4497490Z    0.162 s: flash reading and verifying R numbers
2024-08-15T15:40:02.5897960Z    0.128 s: flash writing R numbers
2024-08-15T15:40:02.8667350Z    0.263 s: flash reading and verifying R numbers
2024-08-15T15:40:03.0635260Z    0.181 s: flash writing srec format
2024-08-15T15:40:03.2152560Z    0.142 s: flash reading and verifying srec format file

After this fix:

2024-08-15T17:23:24.5161820Z Prepare "-cdryrun -pm2560" and press 'enter' or 'space' to continue. Press any other key to skip
2024-08-15T17:23:25.1088990Z    0.162 s: flash raw format -T/-U write/verify cola-vending-machine.raw
2024-08-15T17:23:25.2742090Z    0.157 s: flash extended address and hole test
2024-08-15T17:23:25.4795650Z    0.196 s: flash writing binary numbers
2024-08-15T17:23:25.6721130Z    0.180 s: flash reading and verifying binary numbers
2024-08-15T17:23:25.8423490Z    0.161 s: flash writing octal numbers
2024-08-15T17:23:26.0901770Z    0.235 s: flash reading and verifying octal numbers
2024-08-15T17:23:26.2308860Z    0.127 s: flash writing decimal numbers
2024-08-15T17:23:26.4667010Z    0.228 s: flash reading and verifying decimal numbers
2024-08-15T17:23:26.6574670Z    0.180 s: flash writing hexadecimal numbers
2024-08-15T17:23:26.8651240Z    0.200 s: flash reading and verifying hexadecimal numbers
2024-08-15T17:23:27.0446640Z    0.168 s: flash writing R numbers
2024-08-15T17:23:27.3074230Z    0.250 s: flash reading and verifying R numbers
2024-08-15T17:23:27.4962750Z    0.179 s: flash writing srec format
2024-08-15T17:23:27.6594570Z    0.150 s: flash reading and verifying srec format file
2024-08-16 16:13:28 +02:00
Hans Ulrich Niedermann
4323a43519 test-avrdude: Print the type of the avrdude_bin executable 2024-08-16 16:13:28 +02:00
Hans Ulrich Niedermann
f3e8524cb3 ci: linux-autotools use uninstalled avrdude for test-avrdude
Use the uninstalled avrdude executable and the avrdude.conf config file
which have just been built for the dry-run test with tools/test-avrdude.

Note that the parameter for the config file is a bit unexpected:

    -c "-C path/to/avrdude.conf"
2024-08-16 16:13:28 +02:00
Hans Ulrich Niedermann
a8a8711b34 test-avrdude: Abort if running "avrdude -v" fails 2024-08-16 16:13:28 +02:00
Hans Ulrich Niedermann
a2906da411 test-avrdude: Adapt version check to new version format
The output of the version information in "avrdude -v" has changed between
avrdude 7.3 and now (commit cf0822bb71):

avrdude: Version 7.3

Avrdude version 7.3-20240814 (250a663a)

This means that the old grep call looking for "Version" cannot
find anything any more, and therefore needs to be changed.

This was not discovered as the test-avrdude script neglected to
abort if no version information is found.
2024-08-16 16:13:28 +02:00
Stefan Rueger
e5f4429cc6 Update NEWS 2024-08-16 01:21:46 +01:00
Stefan Rueger
0350d6706b Merge pull request #1892 from stefanrueger/docu
Improve documentation
2024-08-16 01:20:17 +01:00
Stefan Rueger
baf178981e Update avrdude.pdf 2024-08-16 01:08:45 +01:00
Stefan Rueger
bd3426131a Update examples in documentation 2024-08-16 01:01:06 +01:00
Stefan Rueger
d8b977e2d0 Change verbosity for showing connected USB devices 2024-08-15 23:28:26 +01:00
Stefan Rueger
3a35adffb7 Add avrdude.1 docu for pickit5_updi 2024-08-15 22:44:15 +01:00
Stefan Rueger
d45bb3937e Update avrintel.c 2024-08-15 22:17:45 +01:00
Stefan Rueger
e230d8898e Fix filename for stdout 2024-08-15 13:09:52 +01:00
Stefan Rueger
f52748db0b Change libusb cannot configure warning to notice 2024-08-14 20:50:14 +01:00
Stefan Rueger
974e1d2171 Update NEWS and documentation 2024-08-14 18:42:25 +01:00
Stefan Rueger
a708c53103 Update AUTHORS 2024-08-14 18:42:04 +01:00
Stefan Rueger
c78b137782 Clean up documentation 2024-08-14 18:41:09 +01:00
Stefan Rueger
8fcd0fd71c Record command line when debugging 2024-08-14 18:34:44 +01:00
Stefan Rueger
2b7c9de71c Merge pull request #1887 from stefanrueger/jtag3_pdi
Fix addresses for jtag3_pdi boot and apptable
2024-08-14 18:05:43 +01:00
Stefan Rueger
90ecd9d8e9 Merge pull request #1886 from stefanrueger/readsize
Fix ATmega1284/P readsize
2024-08-14 18:02:40 +01:00
Stefan Rueger
55fbcbd368 Merge pull request #1883 from stefanrueger/erase
Silently skip erasing read-only parts of a memory
2024-08-14 18:02:01 +01:00
Stefan Rueger
24074248ba Merge pull request #1880 from MCUdude/usbproduct
Make usbproduct available to programmers
2024-08-14 18:01:42 +01:00
MX682X
beaebd989c PICkit 5 support (#1863) 2024-08-14 18:01:04 +01:00
Stefan Rueger
418e45492d Merge pull request #1714 from dl8dtl/swig_libavrdude
SWIG Python wrapper for libavrdude
2024-08-14 17:58:53 +01:00
Stefan Rueger
96023bb32d Add is_avr32() macro for completeness 2024-08-14 17:58:02 +01:00
Stefan Rueger
e4536c79e4 Replace (unsigned long) -1L with ~0UL 2024-08-14 14:02:51 +01:00
Stefan Rueger
7b0735d146 Fix addresses for jtag3_pdi boot and apptable 2024-08-14 13:55:37 +01:00
Joerg Wunsch
3ca1d7f761 Merge branch 'main' into swig_libavrdude 2024-08-13 22:37:56 +02:00
Joerg Wunsch
31a6b48dc0 Document prerequisites for the GUI 2024-08-13 22:36:50 +02:00
Joerg Wunsch
d55a7901c4 Turn init_cx() into a libavrdude member
Beyond initializing the cx pointer, it turns out more cleanup might be
required when re-initializing the context pointer.  (Normal CLI only
initializes it once, so that's not an issue there.)

Thus, join all the required actions into an init_cx() function
provided by the library.
2024-08-13 22:27:03 +02:00
Stefan Rueger
53dde4fce0 Fix ATmega1284/P readsize 2024-08-13 00:23:02 +01:00
Stefan Rueger
abb6fe6ca2 Refrain from erasing read-only parts of a memory 2024-08-12 18:37:18 +01:00
Stefan Rueger
cd956e827e Exclude all but flash/eeprom/sig from ALL in debugwire i/fce or -c urclock 2024-08-12 15:31:21 +01:00
Joerg Wunsch
7b7b3d8837 Merge branch 'main' into swig_libavrdude 2024-08-12 13:30:36 +02:00
Joerg Wunsch
3a9857f525 Document how to start the GUI demonstrator 2024-08-12 06:40:30 +02:00
MCUdude
14d6e16bcc Make usbproduct available to programmers 2024-08-11 23:10:14 +02:00
Joerg Wunsch
8af581640e Re-initialize AVRDUDE context cx on new programmer connection
This is meant to clean up everything that has been done before.

For this to work, free up the old pointer first.
2024-08-11 21:50:54 +02:00