Commit Graph

3330 Commits

Author SHA1 Message Date
朝日薫 / K.Sato
ed017002af jtagmkII_updi_term_keep_alive (#1603) 2024-01-04 02:04:41 +13:00
Stefan Rueger
d11e2f6232 Merge pull request #1602 from stefanrueger/eeprom-optiboot-updi
Force STK500 EEPROM paged r/w for bootloaders
2024-01-04 02:03:41 +13:00
Stefan Rueger
0b1ac3a4f5 Merge pull request #1601 from stefanrueger/avr64du28-32
Support AVR64DU28 and AVR64DU32
2024-01-04 02:03:18 +13:00
Hans
a245cd5370 Use -xmode to switch PICkit4 and SNAP application modes (#1596)
* Use libusb to switch a PICkit4 or SNAP to AVR mode

* Fix case

* implement -xmode=pic
Thanks Wireshark

* Print PIC switch info messages

* Fix typo

* Rename SNAP and PICkit4 USB PID

* Make it possible to enter avr mode even when the tool is in bootloader/recovery mode

* Add -xmode to docs

* Tweak grammar

* Add -xmode support for pickit4_isp and snap_isp
still need to figure out how to actually trigger the mode switch form stk500v2.c

* Don't print "unable to open port" error on pgm->open softfail

* Add const

* Simplify SNAP/PICkit4 mode switching code

* Formatting

* Add extra argument to jtag3_open_common
This makes it possible to switch SNAP/PK4 modes from stk500v2.c as well, using pickit4_isp and snap_isp

* Improve extended parameter parsing

* Improve error message

* Improve extended parameter parsing

* Immediately exit after a mode switch

* Remove unnecessary line

* Add missing serial_close

* Remove unnecessary else

* Minor code tweaks

* Update docs

* Formatting

* Improve external parameter parsing and error handling

* Remove unused parameter
2024-01-04 02:02:24 +13:00
stefanrueger
d08a14ced3 Correct bootrow size 2023-12-25 01:12:09 +13:00
stefanrueger
fe6671dca0 Force STK500 EEPROM paged r/w for bootloaders 2023-12-24 11:29:20 +13:00
stefanrueger
d36b5cac6c Provide AVR64DU28 and AVR64DU32 entry in config file 2023-12-22 00:27:49 +13:00
stefanrueger
0abea6fc5b Update avrintel.[ch] files from new .atdf files 2023-12-22 00:27:15 +13:00
stefanrueger
5fffedddf9 Print error message and location of unknown tokens in config files 2023-12-22 00:25:43 +13:00
stefanrueger
06156d9c33 Suppress overzealous compiler warning 2023-12-21 10:53:57 +13:00
stefanrueger
67792ca8c6 Update NEWS 2023-12-18 14:13:36 +13:00
Hans
62b15d205e Suggest programmers using weighted Damerau-Levenshtein #1593
* Add Damerau-Levenshtein algorithm
* Provide weighted Damerau-Levenshtein distance
* Suggest programmers using weighted Damerau-Levenshtein distance
* Only suggest compatible programmers
* Accept unique initial string for programmer name
* Only suggest part-compatible programmers for initial partial matches
---------
Co-authored-by: stefanrueger <stefan.rueger@urclocks.com>
2023-12-18 14:03:21 +13:00
Stefan Rueger
f5ad833310 Merge pull request #1592 from Ho-Ro/concept_index
Update avrdude.texi: more index entries; header uppercase; correct @xref
2023-12-18 13:59:53 +13:00
Stefan Rueger
e558c286e3 Merge branch 'main' into concept_index 2023-12-18 13:59:31 +13:00
Stefan Rueger
ec96244bfb Merge pull request #1590 from Ho-Ro/default_baudrate
Provide user config value "default_baudrate" (acc. discussion #1589)
2023-12-18 13:54:56 +13:00
Stefan Rueger
79f70356c1 Merge pull request #1588 from MikeRaffa/main
Issue #973: Differentiate multiple USB programmers of the same VID/PI…
2023-12-18 13:54:26 +13:00
Stefan Rueger
2bd6b5614a Merge pull request #1587 from MCUdude/get_sck_vtarg
Terminal sck command improvements
2023-12-18 13:53:24 +13:00
Stefan Rueger
ebd4597277 Merge pull request #1586 from Ho-Ro/build_fast
Faster build.sh script with option -j
2023-12-18 13:47:47 +13:00
Martin
2662a2dcd1 Distinguish between "Setting" and "Overriding" for baudrate; doc update
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
2023-12-14 15:17:37 +01:00
Martin
a16c5d034f Some programmer do not need a baudrate
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
2023-12-14 12:45:22 +01:00
Martin
8711ad579d baudrate > pgm->baudrate > default_baudrate
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
2023-12-12 16:16:08 +01:00
Martin
046ba3702a Update avrdude.texi: more index entries; header uppercase; correct @xref
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
2023-12-10 20:31:46 +01:00
MCUdude
092a94b370 Remove unnecessary else if 2023-12-09 22:40:36 +01:00
MCUdude
22532f458e Remove explicit cast 2023-12-09 22:37:33 +01:00
MCUdude
67db3f0190 Prevent possible divide by zero 2023-12-09 22:35:35 +01:00
MCUdude
ce6ddeca48 Improve bitclock calcumation routines 2023-12-09 22:33:05 +01:00
MCUdude
7a02d11db5 Add support for more suffixes to -B as well 2023-12-08 22:52:34 +01:00
MCUdude
af14559a81 Fix microsecond bug 2023-12-08 22:43:15 +01:00
MCUdude
aeae4bb0b3 Support more clock speed suffixes 2023-12-08 22:32:58 +01:00
MCUdude
684615b4c5 Add get_sck_period to dragon_jtag and jtagmkii 2023-12-08 21:52:54 +01:00
MCUdude
037dfbd595 add get_sck_period for AVR dragon and jtagmkii 2023-12-08 21:03:10 +01:00
MCUdude
fb77c56113 Add get_* functions to stk600pp and stk600hvsp 2023-12-08 20:14:34 +01:00
MikeRaffa
5dbbb4e6c5 Remove check for 'verbose' on call to pmsg_notice().
Remove some unnecessary braces and parens.
2023-12-06 20:03:31 -05:00
Martin
4834ec1997 baudrate is just an integer number, no numerical expression
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
2023-12-05 16:36:01 +01:00
Martin
4f07733277 provide user config value "default_baudrate" (#1589)
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
2023-12-05 10:33:15 +01:00
MikeRaffa
e351dc30b2 Documentation for Issue #973 changes. 2023-12-04 17:29:38 -05:00
MikeRaffa
fa2e69de57 Updates based on feedback from stefanrueger.
Change sense of check_for_port_argument_match() to return nonzero when there is a match.

Increase size of 'bus_num' and 'dev_addr' from 4 to 21.

Various cleanup, formatting changes, and simplifications.

Match trailing end of serial numbers.
2023-12-04 17:20:03 -05:00
MCUdude
bb4078e554 add pgm->get_varef support to stk600 2023-12-04 23:00:24 +01:00
MCUdude
f90a7cf909 Fix broken stk600 oscillator value in stk500v2_fosc_value
and add pgm->get_fosc to stk600
2023-12-04 22:12:22 +01:00
MCUdude
cf615f2209 add pgm->get_sck_speed support for STK600 2023-12-04 21:54:51 +01:00
MCUdude
88ec512b68 add pgm->get_vtarget support for STK600 2023-12-04 21:51:16 +01:00
MCUdude
c067a5a778 Add JTAG3 ISP clock and vtarg read 2023-12-04 21:32:49 +01:00
MCUdude
341e1354e9 Remove function name in error messages 2023-12-04 21:26:13 +01:00
MikeRaffa
447b176d11 Issue #973: Differentiate multiple USB programmers of the same VID/PID (libusb or hidapi or libftdi)
Added code for USBasp to check for bus:device match using the -P option. Syntax is -P usb:<bus>:<device> (same as current USBTiny implementation).

This also supports serial number check with the alternative -P usb:<serial_number> format (no ':').

In verbose mode, prints out bus/device/serial number for any found USBasps.

Only tested on Linux, but it works with HAVE_LIBUSB_1_0 on or off (there's some slightly different code in the two versions of usbOpenDevice()).
2023-12-04 01:28:53 -05:00
MCUdude
9524908a34 Add support for specifying bit clock in frequency as well 2023-12-02 23:31:01 +01:00
MCUdude
55c566d07c Add jtag3_get_vtarget 2023-12-02 22:53:48 +01:00
MCUdude
27e5e61c46 Add jtag3_get_sck_period 2023-12-02 22:39:49 +01:00
MCUdude
c118c3ae3c fix segfault when using the terminal sck command 2023-12-02 21:49:28 +01:00
Martin
6e19eda344 faster build.sh script with option -j (-> discussion #1585)
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
2023-12-02 21:23:46 +01:00
stefanrueger
5501c63a63 Update NEWS 2023-12-01 15:47:42 +13:00