Commit Graph

3240 Commits

Author SHA1 Message Date
Hans
664d36df07 Update part cmd (#1568)
Co-authored-by: stefanrueger <stefan.rueger@urclocks.com>
2023-11-22 23:35:47 +13:00
Martin
92c576d942 Support for STK500 v1 and v2 devices with STK500_XTAL != 7372800 (#1566)
* fix -x vtarg handling (HAS_VTARG_READ vs. HAS_VTARG_ADJ)
* stk500v1: implement new option -x xtal=nnn (part of #1560)
* fix parsing of frequencies, values w/o k or M prefix were not recognised
   now frequency parameter fosc=nnnn or fosc=nnnnH[z] are also ok
* stk500v2: xtra argument -x xtal=nnnn
* unify xtra argument messages for v1 and v2, better error message wording
* update man and doc
* stk500v1: add option -B handling identical to stk500v2
* allow spaces in extra parameter, e.g. -x "fosc= .1e3 kHz"

Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
2023-11-22 22:23:45 +13:00
stefanrueger
c82fec9c4b Update NEWS 2023-11-13 02:33:24 +00:00
Hans
ce59853981 Print warning when avrdude and avrdude.conf versions doesn't match (#1564) 2023-11-13 02:31:11 +00:00
Hans
71bf4f72a9 Always print error if part and programmer doesn't have a common programming interface (#1563)
* Harmonize WIN32 implementation of serial time-outs with Posix

This is from @mariusgreuel in Issue #1249.
https://github.com/avrdudes/avrdude/issues/1249

> The WIN32 time-out is specified as ReadTotalTimeoutConstant + buflen * ReadTotalTimeoutMultiplier, which makes it potentially much longer than the Posix one (i.e. at least double). ReadIntervalTimeout is also set to timeout, which essentially renders the interval timeout ineffective, so IMHO, we should explicitly disable that feature.

* Update NEWS

* Always print error if part and programmer doesn't have a common programming interface
even though the user uses -F. It won't exit though.

* Don't mention -F in error message if -F is already used

---------

Co-authored-by: mcuee <xiaofanc@gmail.com>
Co-authored-by: Stefan Rueger <stefan.rueger@urclocks.com>
2023-11-13 02:30:30 +00:00
Stefan Rueger
fb550221c7 Merge pull request #1555 from stefanrueger/option-N
Provide option -N for do not load personal config file
2023-11-13 02:29:10 +00:00
stefanrueger
0c385910a8 Update NEWS 2023-11-11 17:10:05 +00:00
Stefan Rueger
9596faac79 Merge pull request #1557 from stefanrueger/programmer-not-recognised
Test programmers for prog_modes and type
2023-11-11 16:47:43 +00:00
Stefan Rueger
0fe1bf0e29 Merge pull request #1556 from stefanrueger/no-paged-eeprom
Remove paged eeprom property from ATtiny43U
2023-11-11 16:47:02 +00:00
Stefan Rueger
736c158d0b Merge pull request #1554 from stefanrueger/signature-write
Review write_byte() functions
2023-11-11 16:31:36 +00:00
Stefan Rueger
84e7ff134d Suppress multiple-modes warnings for dryrun type programmers 2023-11-04 15:08:47 +00:00
Stefan Rueger
cf4285f5b8 Test programmers for prog_modes and type
This corrects the error message when AVRDUDE cannot use a programmer to
say it is owing to lack of prog_modes or type.
2023-11-03 17:21:52 +00:00
Stefan Rueger
3f647ec6db Remove paged eeprom property from ATtiny43U
The property paged should only be used for flash of classic parts.
2023-11-03 17:18:38 +00:00
Stefan Rueger
ff3e65e34a Provide option -N for do not load personal config file 2023-11-03 17:15:15 +00:00
Stefan Rueger
97badba85d Review write_byte() functions ...
adding code that allows read-only memories to appear written successfully
provided the data to be written is already in the memory. This is useful
so that "writing" a backup to read-only memories works
  - Without generating an error
  - Without actually trying to write to the part

Trying to write a read-only memory with a byte that is not there will
cause a write error. This is useful if for example one tries to write a
backup of a part to another part with different signature. If the
signature is written back first, this constitutes a "check we are writing
to the same type of part".
2023-11-03 17:07:03 +00:00
Stefan Rueger
08b82ea69e Update NEWS 2023-11-03 13:46:13 +00:00
Stefan Rueger
c37a90907b Merge pull request #1550 from mcuee/issue1249
Harmonise WIN32 and POSIX serial comms timeout
2023-11-03 13:40:24 +00:00
朝日薫
a0dfe3b377 Issue#1546 Allow UPDI_SIB of AVR_EB in serialupdi (#1549) 2023-11-03 13:38:31 +00:00
朝日薫
d42f7d8ae1 Change execution position of REVID check (#1543) 2023-11-03 13:33:51 +00:00
mcuee
8222ad8ffc Add Arduino avrdude_packing github action for git man (#1540)
Co-authored-by: Umberto Baldi <34278123+umbynos@users.noreply.github.com>
2023-11-03 13:27:36 +00:00
Stefan Rueger
d8b9b92b2a Merge pull request #1538 from stefanrueger/memory-types
Introduce memory types in lieu of string comparisons with memory names
2023-11-03 13:24:12 +00:00
Stefan Rueger
f9920fc11e Treat chip_rev as unsigned char 2023-11-03 13:05:01 +00:00
Stefan Rueger
291f9ff288 Remove unused variables 2023-11-03 13:00:27 +00:00
Stefan Rueger
9c894e159d Set readsize and page_size of UPDI fuses to 1 ...
... so that the fuses access is byte-wise not by paged_load/wite
2023-11-02 22:42:25 +00:00
Stefan Rueger
528b56b1c7 Use __func__ in calls of trace_buffer() 2023-11-02 18:32:13 +00:00
Stefan Rueger
37df3462e0 Fix usbdev_recv_frame communication trace 2023-11-02 18:16:40 +00:00
Stefan Rueger
124fcc8110 Unify communication traces using trace_buffer() or trace2_buffer() 2023-11-02 16:58:24 +00:00
Stefan Rueger
0fc5749c24 Merge branch 'avrdudes:main' into memory-types 2023-11-02 11:48:21 +00:00
Stefan Rueger
96b081b2f9 Update NEWS 2023-11-02 01:18:48 +00:00
Stefan Rueger
53d161d1a3 Fix typo 2023-11-02 01:13:54 +00:00
mcuee
0db4cb0125 Harmonize WIN32 implementation of serial time-outs with Posix
This is from @mariusgreuel in Issue #1249.
https://github.com/avrdudes/avrdude/issues/1249

> The WIN32 time-out is specified as ReadTotalTimeoutConstant + buflen * ReadTotalTimeoutMultiplier, which makes it potentially much longer than the Posix one (i.e. at least double). ReadIntervalTimeout is also set to timeout, which essentially renders the interval timeout ineffective, so IMHO, we should explicitly disable that feature.
2023-11-01 10:58:06 +08:00
Stefan Rueger
76cbf91a19 Add notice2() messages for sigrow access 2023-10-31 17:09:18 +00:00
Stefan Rueger
c9eb0659f6 Suggest -xrestore when flash overlaps the bootloader in -c urclock 2023-10-31 13:31:56 +00:00
Stefan Rueger
4622a6d429 Add sigrow sub-memories to jtagmkII_read_byte() 2023-10-31 11:30:39 +00:00
Stefan Rueger
566cfad7e9 Review and fix single fuse r/w for jtag2/jtag3 2023-10-31 00:20:23 +00:00
Stefan Rueger
dab59045de Review and fix fuses r/w for jtag3 2023-10-30 23:32:44 +00:00
Stefan Rueger
af4614e2d8 Handle sigrow sub-memories in jtagmkII_read_byte() 2023-10-30 19:17:28 +00:00
Stefan Rueger
d6f4cdd72b Show parameter that could not be set 2023-10-30 18:49:03 +00:00
Stefan Rueger
2bb36b9b0b Merge pull request #1547 from stefanrueger/parse-avrdude_version
Add avrdude_conf_version to grammar
2023-10-30 14:26:21 +00:00
Stefan Rueger
685d9bcf77 Add AVRDUDE_FULL_VERSION to configure.ac 2023-10-30 10:43:26 +00:00
Stefan Rueger
54eacc5119 Convert avr_locate_mem(p, string) to avr_locate_mem_by_type()
Rather than finding memories by name this finds memories by the correct
type further separating memory names from their functionality.

Also fixes a few unchecked avr_locate_mem() calls that could lead to
segmentation faults.
2023-10-30 02:14:05 +00:00
Stefan Rueger
2736663b21 Add avrdude_conf_version to grammar 2023-10-30 02:01:21 +00:00
mcuee
9dfb61646a Merge pull request #1542 from Youw/main
Add Avrdude build version into avrdude.conf
2023-10-29 10:46:34 +08:00
Ihor Dutchak
7cf7c73636 Add Avrdude build version into avrdude.conf 2023-10-28 23:46:35 +03:00
mcuee
e99991202f Merge pull request #1539 from mcuee/avrdude_packing
To support MinGW cross compiler
2023-10-28 12:56:04 +08:00
mcuee
54f2fe5ee5 To support MinGW cross compiler
This is the same as avrdude-packing patch.
https://github.com/arduino/avrdude-packing/blob/main/patches/0007-Cmake-fix-build-not-working-with-mingw-toolchain.patch
2023-10-28 12:47:42 +08:00
Stefan Rueger
2be7f7e527 Refer to memory rather than memory type 2023-10-27 00:28:29 +01:00
Stefan Rueger
03db6e5ca9 Use memory type for fuse memories instead of fuse names 2023-10-27 00:07:34 +01:00
Stefan Rueger
c8d11f6547 Replace str_eq(m->desc, "(usersig|userrow|prodsig|sigrow") with macros 2023-10-25 16:44:55 +01:00
Stefan Rueger
cd53766d1d Replace str_eq(m->desc, "...") with mem_is_...(m) 2023-10-25 16:35:11 +01:00