2
0
mirror of https://github.com/mariusgreuel/avrdude.git synced 2025-10-09 04:01:01 +00:00
Commit Graph

788 Commits

Author SHA1 Message Date
Stefan Rueger
7ad5289d66 Silence sign-compare warnings in dfu.c 2023-01-11 23:50:26 +00:00
Stefan Rueger
b75e26bf6d Silence sign-compare warnings in flip1.c 2023-01-11 23:48:04 +00:00
Stefan Rueger
81f01939c2 Silence missing-field-initializers warning in flip1.c 2023-01-11 23:45:07 +00:00
Stefan Rueger
2a79faae86 Silence sign-compare warnings in flip2.c 2023-01-11 23:38:43 +00:00
Stefan Rueger
3c51fb6aae Silence sign-compare warnings in ft245r.c 2023-01-11 23:34:14 +00:00
Stefan Rueger
3b7f0d2c55 Use portable %lu and cast for size_t 2023-01-11 23:25:13 +00:00
Stefan Rueger
507031badf Silence compiler warnings in jtagm.c 2023-01-11 23:18:08 +00:00
Stefan Rueger
6d15d24a4d Fix fall through error in jtagmkI.c 2023-01-11 23:12:44 +00:00
Stefan Rueger
cec9715ba2 Silence sign-compare warnings in lists.c 2023-01-11 23:09:56 +00:00
Stefan Rueger
7f0fe41b6c Silence sign-compare warnings in micronucleus.c 2023-01-11 22:56:41 +00:00
Stefan Rueger
aa258ace36 Silence sign-compare warnings in pgm_type.c and clean up 2023-01-11 19:32:16 +00:00
Stefan Rueger
e089d7ecc5 Silence sign-compare warnings in pindefs.c 2023-01-11 19:07:02 +00:00
Stefan Rueger
3521c9d9fb Silence sign-compare warnings in ser_avrdoper.c 2023-01-11 19:01:00 +00:00
Stefan Rueger
c6b2f12c04 Silence sign-compare warnings in serialupdi.c 2023-01-11 18:48:14 +00:00
Stefan Rueger
3611c89ee0 Silence sign-compare warnings in usbasp.c 2023-01-11 18:32:51 +00:00
Stefan Rueger
246d2d502d Silence sign-compare warning in usb_hidapi.c 2023-01-11 18:25:00 +00:00
Stefan Rueger
79dd434d20 Silence sign-compare warnings in usbtiny.c 2023-01-11 17:42:05 +00:00
Stefan Rueger
319ee2db9c Silence fall through warning in update.c 2023-01-11 17:34:51 +00:00
Joerg Wunsch
a8931a4eb1 Post-release 7.1 changes 2023-01-08 22:40:45 +01:00
Joerg Wunsch
2e0be1e1ae This is AVRDUDE release 7.1 2023-01-08 22:28:14 +01:00
Stefan Rueger
4c1192e884 Merge pull request from stefanrueger/avrcache
Silence page erase in cache code
2023-01-05 16:44:05 +00:00
Stefan Rueger
653d66b014 Ensure full words are loaded, low-byte first, for ISP programming () 2023-01-05 16:43:35 +00:00
Stefan Rueger
cf64837391 Silence page erase in cache code 2023-01-04 19:04:16 +00:00
Stefan Rueger
fdcfb543fc Improve guessBootloaderStart() for modern AVR 2023-01-04 18:52:51 +00:00
Marius Greuel
c2a90f41f0 Set MSVC readline version to 0x0502, some cleanup 2023-01-04 18:02:01 +01:00
Marius Greuel
7b3cfd2724 Add readline library replacement for MSVC 2023-01-04 08:02:48 +01:00
Stefan Rueger
2ca87126e5 Merge pull request from stefanrueger/avrintel
Clean up avrdude.conf.in fixing a couple of bugs
2023-01-03 20:50:41 +00:00
Stefan Rueger
b5e4ea62b9 Remove butterfly_page_erase() function
... as it raises expectations but
  - Wrongly claims to page erase eeprom but doesn't
  - Prints errors messages for all other memory types only
2023-01-03 20:46:36 +00:00
Stefan Rueger
eeb92b3c52 Change libreadline version from which it's OK to run from a pipeline 2023-01-03 16:31:50 +00:00
Stefan Rueger
1d6f23cae7 Update avrintel.[ch] fixing boot section sizes 2023-01-03 00:21:55 +00:00
Stefan Rueger
872af44fcd Fix boot section size of AT90SPWM2 and related parts 2023-01-03 00:19:38 +00:00
Stefan Rueger
f8635451a2 Change avdude.conf.in into canonical form
avrdude -p*/s -c*/s outputs how avrdude understands the programmers
and parts defined in avrdude.conf.in that syntax (the canonical
form). This commit ensures that avrdude.conf.in is in canonical
form, typically removing assignments that are redundant owing to
inheritance.

Also changes a couple of comments and one programmer description
string to be more expressive.
2023-01-03 00:06:37 +00:00
Stefan Rueger
5eddc33864 Set pin number or pin list rather than adding them
Pin definitions in config_gram.y fail to clear existing pin
definitions when setting them for the second time, eg, through
inheritance, For example,

programmer parent "ft2232h"
    id                     = "tigard";
    reset                  = 5; # BD5 (GPIOL1)
;

would add pin 5 to the existing pin 3 for reset from the partent
programmer rather than overwriting the reset pin.

This commit clears any pre-existing pin definition first before
assigning the new pin number or pin list (for vcc or buff).
2023-01-02 23:57:53 +00:00
Stefan Rueger
c44d0e9c73 Fix duplicate lockbits memory output of -p*/s
In order to output memories of a part always in the same order the
developer options use an odered list of all known memories. Owing
to the partial match feature of dev_locate_mem_noalias() they
would therefore print an existing lockbits memory twice, once for
the memory lock and once for the memory lockbits.
2023-01-02 22:22:34 +00:00
Stefan Rueger
82cf688357 Stop printing redundant usbpid and hvupdi_support lists for -c*/s 2023-01-02 21:59:51 +00:00
Stefan Rueger
abdc65d79f Shift initial current_struct setting from grammar to parser 2023-01-02 21:48:53 +00:00
Stefan Rueger
74cbb51ef5 Clarify comment on copying usbsn 2023-01-02 17:10:15 +00:00
Stefan Rueger
0a883973a2 Move static usbsn into serdev structure, remove serno access function 2023-01-02 16:55:33 +00:00
Stefan Rueger
8d8157bf8b Merge pull request from dl8dtl/add_q_terminal_command
Add a "q" command to the terminal
2023-01-02 14:28:49 +00:00
Stefan Rueger
b5cabc1dcf Move q command to end of list 2023-01-02 14:26:11 +00:00
Stefan Rueger
bc198fd18d Merge pull request from stefanrueger/partial-matches
Fix partial matches for locate_mem() and do_cmd()
2023-01-02 14:23:25 +00:00
Bas Wijnen
dc0ab33a58 Change definition of NO_PIN to 1+PIN_MAX ()
Fixes bug  that gpio 0 could not be used by the linuxgpio system.

* Add sanity checks
* Loop over defined pins only

Co-authored-by: Stefan Rueger <stefan.rueger@urclocks.com>
2023-01-02 14:23:01 +00:00
Stefan Rueger
17e2feff26 Fix partial matches for locate_mem() and do_cmd() 2023-01-01 23:29:06 +00:00
Joerg Wunsch
b6d50ef0a9 Extend the comment for the serial number function
Hint that it is actually a function pointer rather than a serial
number itself (in whatever form).
2023-01-01 22:36:50 +01:00
Joerg Wunsch
e45195d643 Add a "q" command to the terminal
"q" used to be a unique abbrevation for "quit" before the introduction
of the "quell" command, and it was an easy way to exit terminal mode.

By adding it as an explicit command (must be before all longer
commands starting with "q"), this functionality is regained.
2023-01-01 22:33:30 +01:00
Joerg Wunsch
06e999b8c5 Check whether serial_serno is not NULL before calling it.
For devices connected through a real serial device rather than
USB, there is no transport-layer serial number available.

stk500v2.c (and jtag3.c) tried to always call this function.

Closes 
2023-01-01 22:23:44 +01:00
Stefan Rueger
f0649d76da Merge pull request from stefanrueger/urclock-drain
Guard urclock_getsync() against initial spurious input
2022-12-31 14:59:43 +00:00
Stefan Rueger
d09b83079c Merge pull request from mariusgreuel/pr-fix-win32-ser_recv-timeout
Make WIN32 implementation of ser_recv() fail on time-out
2022-12-31 14:58:42 +00:00
Stefan Rueger
90dfee80ba Change info on libreadline to notice2 level 2022-12-31 12:42:12 +00:00
Stefan Rueger
ac10272bb6 Lengthen delay after reset for benefit of autobaud bootloaders 2022-12-31 12:27:07 +00:00