Commit Graph

3475 Commits

Author SHA1 Message Date
Stefan Rueger
be895f8354 Merge pull request #1523 from stefanrueger/tempsense
Fix tempsense size, AVR-EB memory offsets and avrdude.conf memory order
2023-10-18 00:56:40 +01:00
Stefan Rueger
f8b5137bed Merge pull request #1522 from stefanrueger/prodsig-dryrun
Model prodsig for -c dryrun
2023-10-18 00:56:22 +01:00
Stefan Rueger
b763c2411a Merge pull request #1521 from stefanrueger/prodsig-avrftdi_jtag
Enable prodsig read for avrftdi_jtag type programmers
2023-10-18 00:56:05 +01:00
Stefan Rueger
8f2fcf6d43 Merge pull request #1520 from stefanrueger/prodsig-isp
Enable prodsig read for stk500v2 based programmers
2023-10-18 00:55:41 +01:00
Stefan Rueger
ed1c262d65 Enable prodsig read for jtag3 programmers 2023-10-17 11:13:50 +01:00
Stefan Rueger
0d1688d2b5 Enable prodsig read for jtagmkII programmers 2023-10-17 11:11:27 +01:00
Stefan Rueger
5f35b901b8 Enable prodsig read for jtagmkI programmers 2023-10-17 11:08:20 +01:00
Stefan Rueger
c1df5937db Initialise all prodsig sub-memories for -c dryrun UPDI-parts 2023-10-17 00:51:56 +01:00
Stefan Rueger
89c7143177 Bring parts in avrdude.conf into canonical order 2023-10-17 00:22:37 +01:00
Stefan Rueger
2883d13110 Bring memories into more logical order 2023-10-17 00:16:31 +01:00
Stefan Rueger
0fc2eac349 Fix tempsense memory size for AVR-Dx and AVR-Ex parts 2023-10-17 00:15:27 +01:00
Stefan Rueger
35eb26c74c Fix AVR-EB memory offsets 2023-10-17 00:13:46 +01:00
Stefan Rueger
d68110786d Fix tempsense memory typo 2023-10-17 00:12:18 +01:00
Stefan Rueger
cbcdaa1683 Merge branch 'avrdudes:main' into prodsig-dryrun 2023-10-16 23:01:38 +01:00
Stefan Rueger
61daaa31b6 Merge branch 'avrdudes:main' into prodsig-isp 2023-10-16 23:01:17 +01:00
Stefan Rueger
e83dede617 Merge branch 'avrdudes:main' into prodsig-avrftdi_jtag 2023-10-16 21:13:26 +01:00
Stefan Rueger
cbac6349b0 Update NEWS 2023-10-16 21:12:20 +01:00
Stefan Rueger
b2a5848b8a Merge pull request #1519 from stefanrueger/part-programmer-comments
Add id as comment to avrdude.conf definitions
2023-10-16 21:11:14 +01:00
Stefan Rueger
88b5fcd0fb Model prodsig for -c dryrun 2023-10-16 21:06:30 +01:00
Stefan Rueger
03e7ffda90 Enable prodsig read for avrftdi_jtag type programmers 2023-10-16 21:01:33 +01:00
Stefan Rueger
c342cce247 Enable prodsig read for stk500v2 based programmers 2023-10-15 18:54:55 +01:00
Stefan Rueger
6125bdcff7 Add id as comment to avrdude.conf definitions 2023-10-15 17:46:18 +01:00
Stefan Rueger
f2378875b0 Update NEWS 2023-10-15 16:59:19 +01:00
Stefan Rueger
5f97fdc08c Merge pull request #1518 from stefanrueger/prodsig
Review and update prodsig memories for U/PDI parts
2023-10-15 16:53:06 +01:00
Stefan Rueger
77a69aad54 Merge pull request #1517 from stefanrueger/scratchmonkey-leds
Add LED support for ScratchMonkey programmer
2023-10-15 16:52:43 +01:00
Stefan Rueger
59bc4354b0 Merge pull request #1511 from stefanrueger/usbtiny-readback
Adapt stk500 readback values for usbtiny.c
2023-10-15 16:51:46 +01:00
Stefan Rueger
40350be950 Read sigrow for ATmega32[48]PB using ISP (#1510)
* Read sigrow for ATmega32[48]PB using ISP
* Rename sigrow memory to progsig for 4 ISP/TPI parts
* Create a memory alias from sigrow to prodsig
* Exempt prodsig from checking irregular address patters in ISP command
* Update documentation for sigrow/prodsig
* Include signature in prodsig memory for ATtiny102 and ATtiny104
2023-10-15 16:45:03 +01:00
Hans
99a9a60608 Support for serial port "touch" functionality using libserialport (#1507)
This makes it possible to upload to boards like the Arduino Leonardo and Arduino Nano Every wwithout using an external tool to enter bootloader mode

Co-authored-by: Stefan Rueger <stefan.rueger@urclocks.com>
2023-10-15 16:42:52 +01:00
Stefan Rueger
f2480ea6b2 Make sigrow an alias for prodsig in modern parts (U/PDI i/f)
This reflects a change in language in data sheets over time for the
production signature row memory.
2023-10-14 14:38:43 +01:00
Stefan Rueger
33aefcb9f9 Include signature in prodsig memory
Data sheets include the signature in the production signature row
(prodsig/sigrow memory) while .atdf excludes the 3 signature bytes.

For example the AVR16EB14 datasheet lets sigrow start at 0x1080
with a size of 128 while the atdf file specifies the start as
0x1083 with a size of 125.

The former makes more sense.

This commit also sets page_size to the prodsig size if it is a power of 2
otherwise it is set to 1.
2023-10-14 14:13:22 +01:00
Stefan Rueger
0264c9cc03 Update prodsig memory size from .atdf files 2023-10-14 14:01:51 +01:00
Stefan Rueger
d82c2984e0 Add LED support for ScratchMonkey programmer 2023-10-13 13:26:44 +01:00
mcuee
331d46f15f Merge pull request #1516 from mcuee/revert_pr_1513 2023-10-13 12:09:04 +08:00
mcuee
8d71bc7ceb Update build.yml to revert PR #1513
PR #1513 (Add GNU readline to mingw github action) brings in undesired dependency of libwinpthread-1.dll to the mingw32/mingw64 binaries.
2023-10-13 11:07:51 +08:00
mcuee
55853eb422 Add GNU readline to mingw github action (#1513)
* Update build.yml to enable GNU readline for MinGW build

* Update build.yml to include termcap and ncurses
2023-10-11 12:02:43 +08:00
mcuee
7f8e8a1ad3 libserialport github action (#1512)
* Update build.yml to include libserialport except MSVC
2023-10-10 21:39:40 +08:00
Stefan Rueger
64f4646b1a Adapt stk500 readback values for usbtiny.c 2023-10-10 01:16:25 +01:00
Stefan Rueger
c8b4e915b3 Fix memory concatenation error 2023-10-06 16:47:28 +01:00
Stefan Rueger
9735789c21 Update NEWS 2023-09-29 00:29:18 +01:00
Stefan Rueger
70e5307841 Merge pull request #1506 from stefanrueger/reduce-stk500v2-getsync-timeout
Reduce stk500v2_getsync() timeout
2023-09-29 00:27:22 +01:00
Stefan Rueger
b76750d392 Merge pull request #1505 from stefanrueger/add-wiring-reset-delay
Add -xdelay=n for -c wiring to modify sleep after dtr/rts reset
2023-09-29 00:25:29 +01:00
Stefan Rueger
2f9cd84791 Improve FTDI documentation in avrdude.conf.in 2023-09-29 00:23:25 +01:00
Stefan Rueger
aa2f45111b Reduce DTR/RTS-low time for reset generation to 100 us
Standard AVR reset circuits deploy a connection from the DTR/RTS line of a
USB-to-serial chip to the AVR via a small capacitor, see

  https://onlinedocs.microchip.com/pr/GUID-F626284A-58F0-4C25-A6F3-0EA5054F3E2B-en-US-6/index.html?GUID-B80B25FF-E9D7-4766-B562-DA197B8B938C

Setting DTR/RTS low once will issue a reset. Setting this signal high
again after a short time ensures that a direct connection DTR/RTS to reset
also works. The duration of pulling DTR/RTS low must be relatively short,
say RC/10, in order to avoid a reset spike above Vcc. If Vcc exceeds 5.5 V
then a full 2 Vcc reset spike can potentially trigger HV programming.

See also
 - https://github.com/avrdudes/avrdude/pull/1504#issuecomment-1735295710
 - https://github.com/avrdudes/avrdude/pull/1505#issuecomment-1738053365
2023-09-28 00:04:06 +01:00
Stefan Rueger
2c7c12d109 Reduce stk500v2_getsync() timeout 2023-09-26 23:24:28 +01:00
Stefan Rueger
35dcf686a2 Add -xdelay=n for -c wiring to modify sleep after dtr/rts reset 2023-09-26 23:19:34 +01:00
Stefan Rueger
8ed9615f86 Update NEWS 2023-09-22 23:33:58 +01:00
Hans
0be6568b76 Add serial port discovery (#1498)
Co-authored-by: Stefan Rueger <stefan.rueger@urclocks.com>
2023-09-22 23:21:57 +01:00
Stefan Rueger
431fe61ffa Merge pull request #1497 from stefanrueger/add-serialadapter
Provide serialadapter entity in avrdude.conf
2023-08-31 17:52:55 +01:00
Stefan Rueger
5400005b50 Add is_serialadapter to programmer structure 2023-08-31 00:10:14 +01:00
Stefan Rueger
99373d109f Update serialadapter documentation 2023-08-29 18:21:16 +01:00