Joerg Wunsch
b84e6862a7
Assign proper type to msg[] in errstr()
...
Obviously, the array ought to be of type char.
Closes Issue #856
2022-01-29 23:32:39 +01:00
MCUdude
7144a9f2ae
Replace incorrect warning message
...
Was mistakenly added in PR #854 .
2022-01-29 20:08:43 +01:00
MCUdude
28be45d8b6
Fix Ardino sync attempts
...
In order for the Arduino bootloader to re-sync with Avrdude, the microcontroller needs to be reset to start the bootloader again.
2022-01-29 19:53:42 +01:00
Jörg Wunsch
4ea4ff7fba
Merge pull request #850 from dl8dtl/usbasp-errstr
...
Fix libusb-1.0 error strings
2022-01-27 23:18:51 +01:00
Jörg Wunsch
7e7c4e630e
Merge pull request #854 from MCUdude/arduino-stk500
...
Set number of connection retry attempts for Arduino/STK500 programmer
2022-01-27 23:17:28 +01:00
Jörg Wunsch
39deb3a600
Merge pull request #852 from yegorich/cmake-split
...
CMake: split configuration in two files
2022-01-27 23:16:37 +01:00
Jörg Wunsch
dd8c3ff830
Merge pull request #843 from mariusgreuel/pr-ftdi-syncbb
...
Fix receive buffer implementation in ftdi_syncbb programmer
2022-01-27 23:15:10 +01:00
MCUdude
ad6eff0f76
Set number of Arduino/STK500 connection retry attempts
...
Using the extended parameter flag -x. Usage: . Default number of attempts is still 10 if not -x flag is specified
2022-01-25 09:40:24 +01:00
MCUdude
286c0f5e2a
Don't print irrelevant information for the Arduino programmer
2022-01-24 22:16:31 +01:00
MCUdude
f6bbaadfa6
Print clock info after the correct clock speeds has been set
...
The "new" clock speed set by the -B flag wasn't reflected in the output log
2022-01-23 22:45:54 +01:00
Yegor Yefremov
acee6afa4e
CMake: split configuration in two files
...
The main CMakeLists.txt file in the project's root directory takes
care of the main project settings like project name and version,
handling the options, finding dependencies, etc.
The src/CMakeLists.txt handles options that are necessary to build
libavrdude library and avrdude binary.
2022-01-23 21:22:07 +01:00
Joerg Wunsch
42a154dddf
Fix libusb-1.0 error strings
...
Previously, all libusb-1.0 error strings have been translated
by libusb_to_errno() into an errno-like integer, only in order
to pass that one straight into strerror().
For unhandled libusb-1.0 error codes, ERANGE was returned, which
is just nonsense ("Result too large", bug #848 ).
Instead, use a single function errstr() now that either can
use strerror() on some well-defined errno-like code, or otherwise
just return a string that mentions the numeric value.
2022-01-21 23:13:56 +01:00
Joerg Wunsch
37b0659951
PR #816 merged
...
Copy over man page additions into texinfo file as well.
2022-01-21 21:56:07 +01:00
Jörg Wunsch
cce7a934d6
Merge pull request #815 from MCUdude/add-memory-sections
...
Add more memory sections to read from
2022-01-21 21:49:29 +01:00
Jörg Wunsch
490558049e
Merge pull request #816 from andrewshadura/usbtiny-spi
...
Add SPI support to USBtiny
2022-01-21 21:40:00 +01:00
Jörg Wunsch
512cce405c
Merge pull request #829 from yegorich/cmake-install-liavrdude
...
CMake: add initial support for installing lib and include files
2022-01-21 21:37:21 +01:00
Hans
d401b2224e
Merge branch 'main' into jtagmkii-retry-attempts
2022-01-21 13:28:20 +01:00
MCUdude
b1cbbfc9f0
Reduce verbosity when setting fuses and uploading programs
...
Affects commands with no -v flag and one -v flag
2022-01-20 09:45:34 +01:00
MCUdude
dbac0ecf8c
Reduce the number of attempts to 10
...
+ print number of attempts
2022-01-19 23:25:47 +01:00
Yegor Yefremov
8be18c788e
CMake: add initial support for installing lib and include files
2022-01-18 14:54:42 +01:00
Marius Greuel
44b0c0715f
Fix receive buffer implementation in ftdi_syncbb programmer
2022-01-17 22:53:58 +01:00
Marius Greuel
7b9f258806
Add a new programmer 'ft232h', similar to ft232r. Improve and correct pinout documentation for um232h and c232hm programmer.
2022-01-17 22:49:03 +01:00
MCUdude
0e451f73cf
Print alias names if present
2022-01-17 21:34:09 +01:00
Jörg Wunsch
54d143d4a5
Merge pull request #836 from MCUdude/add-missing-targets
...
Add missing tinyAVR-2, AVR DD and AVR EA targets
2022-01-16 22:59:41 +01:00
MCUdude
4453d54296
Add memory name aliases for AVR DA/DB
...
+ add sernum and tempsense memory sections to read from
2022-01-15 21:53:58 +01:00
MCUdude
9c08c0c164
Attempt to fix incorrect readsize values
...
Values copied AVR64DD__.atdf and AVR64EA__.atdf. The order atdf files doesn't exist at the moment
2022-01-15 12:47:58 +01:00
MCUdude
628c48aff6
Add AVR EA targets
...
This includes AVR8EA28/32, AVR16EA28/32/48, AVR32EA28/32/48 and AVR64EA28/32/64
2022-01-14 20:30:49 +01:00
MCUdude
8e47768600
Add AVR DD targets
...
This includes AVR16DD14/20/28/32, AVR32DD14/20/28/32 and AVR64DD14/20/28/32
2022-01-14 19:52:22 +01:00
Jörg Wunsch
b99687f33c
Merge pull request #811 from dbuchwald/main
...
Added missing RTS/DTR management feature to serialupdi programmer
2022-01-14 08:24:58 +01:00
Joerg Wunsch
153031d6d6
Copy over description of extended parameters to avrdude.1
2022-01-14 08:18:56 +01:00
MCUdude
310fe49b73
Add missing tinyAVR-2 series targets
...
Includes ATtiny3224, ATtiny3226 and ATtiny3227
2022-01-13 22:29:22 +01:00
Jörg Wunsch
77a5703c5c
Merge pull request #832 from MCUdude/add-even-more-missing-targets
...
Add missing ATmega and ATtiny targets
2022-01-13 21:26:43 +01:00
Joerg Wunsch
822578cffd
Mention PR #809
...
Also fix signatures for ATmega169A, ATmega165 and ATmega165A.
2022-01-13 20:08:40 +01:00
Jörg Wunsch
d1634e4d96
Merge pull request #809 from MCUdude/add-missing-atmega-targets
...
Add missing ATmega__5 and ATmega__9 targets to avrdude.conf
2022-01-13 19:59:42 +01:00
MCUdude
99d8fa5d88
Add missing ATtiny targets
...
+ a little formatting
2022-01-13 19:45:45 +01:00
MCUdude
cc77f89953
Add missing ATmega targets
...
+ a little formatting
2022-01-13 19:45:30 +01:00
MCUdude
7064447378
Add all possible ATmega__5 and ATmega__9 targets
...
This includes the "non-P", A, P and PA suffixes
2022-01-13 18:27:36 +01:00
MCUdude
77ed8b98c5
Add ATmega165A/P targets
2022-01-13 18:27:36 +01:00
MCUdude
32232faa2b
Add missing ATmega targets
2022-01-13 18:27:34 +01:00
Dawid Buchwald
ab57f38387
Replaced tabs by spaces
2022-01-13 10:01:01 +01:00
Dawid Buchwald
90d0fa7346
Merge remote-tracking branch 'avrdudes/main' into main
2022-01-13 09:57:42 +01:00
Marius Greuel
3fbac230b3
Enable printf %n format specifier for MSVC
2022-01-12 20:41:52 +01:00
Joerg Wunsch
65d5cfadc1
Fix for TPI fuse write
...
In get_fuse_bitmask(), ensure the AVR_OP_READ and AVR_OP_WRITE
m->op[] fields are actually filled in, before referencing them.
If they are missing, just return a full byte mask (0xFF).
In avr_write(), for TPI memory, if the write consist of one byte onle
(which is the case for fuse byte writing), resort to avr_write_byte()
instead as it already implements everything needed. This leaves the
avr_write() implementation to handle full paged writes with an even
number of bytes only.
2022-01-11 22:00:22 +01:00
Jörg Wunsch
4e1bbf07ac
Merge pull request #826 from yegorich/cmake-dll
...
CMake: enable dynamic-link library for libavrdude
2022-01-11 15:40:58 +01:00
Yegor Yefremov
e72fa01073
Fix libavrdude library file name
...
CMake adds "lib" prefix to the library name and hence we get the
following name "liblibavrdude". Use set_target_properties to
set the prefix to "".
2022-01-11 14:58:40 +01:00
Jörg Wunsch
2d833e7ceb
Merge pull request #820 from dl8dtl/libavrdude-remove-ac_cfg_h
...
Remove ac_cfg.h from libavrdude.h
2022-01-11 12:44:26 +01:00
Yegor Yefremov
8374564665
CMake: enable dynamic-link library for libavrdude
...
Add on option BUILD_SHARED_LIBS to also build a DLL variant
of the libavrdude library. Turn it off by default to preserve
current behavior.
2022-01-11 12:02:36 +01:00
Joerg Wunsch
c7f7fcda8e
Fix URL for linuxgpio programmer
...
Closes #419
2022-01-10 22:12:36 +01:00
Jörg Wunsch
22e6c4b325
Merge pull request #818 from yegorich/pindefs-fix-warning
...
pindefs: conform to the function declaration
2022-01-10 21:33:04 +01:00
Joerg Wunsch
a3bf6cc4c5
Fix names of Logic Green devices
...
There's some confusion as the datasheet calls the device family
LGT8FX8P but the devices itself are LGT8F88P through LGT8F328P.
Obviously, the "X" is actually a wildcard denoting the flash size.
2022-01-10 21:29:09 +01:00
Jörg Wunsch
0a4193f742
Merge pull request #817 from mariusgreuel/pr-print-expected-part
...
Print expected part
2022-01-10 21:25:39 +01:00
Joerg Wunsch
48bcc269e2
Remove ac_cfg.h from libavrdude.h
2022-01-10 15:12:33 +01:00
Joerg Wunsch
cf35b7fe32
Include ac_cfg.h before libavrdude.h
...
On MSVC, this is required in order to have a definition of
PATH_MAX in place.
2022-01-10 14:51:48 +01:00
Joerg Wunsch
fa8a31740f
Remove ac_cfg.h from libavrdude.h
2022-01-10 14:27:08 +01:00
Dawid Buchwald
92a3eb1080
Merge remote-tracking branch 'avrdudes/main' into main
2022-01-09 23:39:09 +01:00
MCUdude
2fd967866c
Don't display target info that's not present in Avrdude.conf
...
I still have to figure out why all parts are flagged with support for both serial and parallel programming interfaces, even when this is not the case
2022-01-09 18:13:07 +01:00
Yegor Yefremov
1a85e01b63
pindefs: conform to the function declaration
...
The last parameter in the pins_check() routine is declared as
"const bool". Add the missing "const" specifier.
2022-01-09 15:57:45 +01:00
Marius Greuel
f67cb3c224
Preserve the insertion order of programmers and parts when parsing the avrdude.conf file
2022-01-09 11:52:52 +01:00
Marius Greuel
1297098eae
When the specified part has a matching signature, print the specified part instead of one from the parts list
2022-01-09 11:52:47 +01:00
David Fries
40f0fae5a4
Update manpage for USBtiny and direct SPI
2022-01-09 10:57:22 +01:00
David Fries
cffa6c7ca0
Add direct SPI mode to USBtiny
...
It is limited to exactly sending (and receiving) multiples of 4 bytes,
and unlike programming mode where slave select isn't required, SS must
be held low for SPI to work. USBtiny programmers don't usually have
a wire for SS.
2022-01-09 10:57:22 +01:00
David Fries
112b6edd1c
Set back to programming mode on quit
...
Otherwise it can't read the fuses and the safe fuse code complains.
2022-01-09 10:27:36 +01:00
MCUdude
8f16c2a1e4
Add more memory sections to read from
...
+ improve Avrdude output in verbose mode
2022-01-08 23:57:37 +01:00
Joerg Wunsch
a182ef5a26
Notify user if pgm->open() failes
...
This is supposed to fix issue #813
2022-01-08 22:02:25 +01:00
Dawid Buchwald
a8de8b8b8f
Merge branch 'avrdudes:main' into main
2022-01-08 19:44:20 +01:00
Dawid Buchwald
4a26aac5c8
Added RTS/DTR release message
2022-01-08 19:14:33 +01:00
Dawid Buchwald
b70fe0e956
Added RTS/DTR status message
2022-01-08 18:53:46 +01:00
Marius Greuel
d2ae6a824f
Add C code alternative to __builtin_popcount.
2022-01-08 16:13:32 +01:00
Marius Greuel
21d7fc58b6
Add -Wall to CMake compiler options
2022-01-08 16:13:26 +01:00
Dawid Buchwald
1631fc4dd8
Implemented extended parameter for RTS/DTR lines management
2022-01-08 10:04:25 +01:00
Marius Greuel
428f5828b4
Add cross-compile to GitHub build actions
2022-01-07 23:57:54 +01:00
Marius Greuel
b87b527b3a
Add advapi32.lib to MSVC builds
2022-01-07 23:57:54 +01:00
Marius Greuel
80d53839dd
Replace MSVC implementation of __builtin_popcount with C code
2022-01-07 23:57:54 +01:00
Marius Greuel
e1221e22ff
Fix -Wpointer-sign warning in micronucleus.c
2022-01-07 23:48:56 +01:00
Yegor Yefremov
f2d6342d21
buspirate: fix invalidScanfArgType_int warning
...
"%x" specifies an unsigned int, hence change the type of spi_write, spi_read
accordingly.
2022-01-07 19:22:57 +01:00
Jörg Wunsch
6a737a0c13
Merge pull request #798 from mariusgreuel/pr-msvc
...
Add MSVC builds and better WinUSB/FTDI support
2022-01-07 18:30:19 +01:00
Marius Greuel
fc54ef5e59
Clean up legacy code
2022-01-07 17:57:02 +01:00
Marius Greuel
fe6f08d48f
Use alloca for stack based memory allocation
2022-01-07 17:54:36 +01:00
Marius Greuel
d05c2db3fb
Add a missing define to the MSVC compatiblity shim
2022-01-07 17:54:36 +01:00
Marius Greuel
1fb88c3040
Add external libraries to CMake project
2022-01-07 17:54:36 +01:00
Marius Greuel
c035c91db5
Add compatibility shim for MSVC
2022-01-07 17:54:36 +01:00
Jörg Wunsch
a91e389a5e
Merge pull request #807 from yegorich/src-typos
...
Fix typos all over the code
2022-01-07 13:15:14 +01:00
Yegor Yefremov
f29b2a283a
Fix typos all over the code
2022-01-07 11:31:16 +01:00
Jörg Wunsch
539eec79e6
Merge pull request #801 from dl8dtl/conffile-clean-up
...
Conffile clean up
2022-01-07 09:23:17 +01:00
Marius Greuel
f20c4bd9e6
Add support for Teensy bootloader
2022-01-06 23:39:17 +01:00
Jörg Wunsch
118993a584
Merge pull request #803 from MCUdude/add-missing-targets
...
Add missing ATtiny targets to avrdude.conf
2022-01-06 22:51:57 +01:00
Joerg Wunsch
6cfdb3a04b
Remove obsolete file
2022-01-06 22:39:36 +01:00
Yegor Yefremov
d5b2106644
term: fix memleakOnRealloc
...
Assign the newly allocated value to a temporary variable and in the
case where we cannot allocate memory, free the initial pointer.
2022-01-06 11:28:39 +01:00
Jörg Wunsch
97c34f7b26
Merge pull request #792 from yegorich/ftdi-fix-deprecated-call
...
avrftdi: don't use the deprecated ftdi_usb_purge_buffers routine
2022-01-05 17:41:08 +01:00
Joerg Wunsch
1529277477
When finding LIBFTDI, don't clobber LIBS but extend it
2022-01-05 17:26:39 +01:00
MCUdude
50e15a5cf8
Add missing ATtiny targets
...
ATtiny48, 87, 102, 104, 167 and 828
2022-01-05 11:50:31 +01:00
Hans
4b76ccc951
Merge branch 'main' into main
2022-01-05 08:05:38 +01:00
Jörg Wunsch
e27990bd54
Merge pull request #786 from mariusgreuel/pr-micronucleus
...
Add support for Micronucleus bootloader
2022-01-04 23:52:00 +01:00
Jörg Wunsch
b8c825c9af
Merge pull request #795 from MCUdude/add-pkobn_updi-vtarg
...
Add target voltage adjustment for Curiosity Nano boards
2022-01-04 23:50:20 +01:00
Joerg Wunsch
124ef7fe3d
Move the backslash replacement out into a separate function
2022-01-04 23:10:14 +01:00
Joerg Wunsch
6a87a110cc
Move the config file names out as #define into avrdude.h
2022-01-04 23:03:47 +01:00
Joerg Wunsch
374861f62e
Move the system config file search after option processing
...
For one, this allows us to use MSG_DEBUG in order to emit debug
messages (requires -v processing).
As another effect, if the -C conffile option was given, there is no
need at all to run through all the process of looking up a system
config file - it's right there already.
Also, move it after the logfile creation if -l logfile was given, so
the respective debug message can go to the logfile.
2022-01-04 22:45:47 +01:00
Marius Greuel
3747db516a
Add support for Micronucleus bootloader
2022-01-04 18:37:57 +01:00
Joerg Wunsch
863f77d827
Fix a (valid) warning about comparison of char vs. int against EOF
...
Closes PR #796
2022-01-04 13:48:11 +01:00
Joerg Wunsch
f9ea588525
Update the man page to reflect the search order for avrdude.conf
2022-01-03 23:53:51 +01:00