Commit Graph

3189 Commits

Author SHA1 Message Date
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
d6c61f5fab Update NEWS 2023-10-24 00:05:18 +01:00
Stefan Rueger
9b97480f3a Merge pull request #1533 from MCUdude/sanguino-bl-hash
Add bootloader hashes from the Sanguino Arduino core repo
2023-10-24 00:02:18 +01:00
Stefan Rueger
9115cac592 Merge pull request #1531 from dbuchwald/nvm3
Fix SerialUPDI with NVM v3 controller
2023-10-24 00:01:00 +01:00
Stefan Rueger
2a50032214 Review LED support (#1528)
The RDY LED is set once the programmer is initialised and switched
off when AVRDUDE exits. During reading, writing or erasing the target
the PGM LED flashes with around 2.5 Hz, whilst the VFY LED comes on
during -U verification of the uploaded contents. Errors are indicated
with the ERR LED.

Assuming AVRDUDE got to the point where LEDs are accessible and the RDY
LED was switched on then, on exit, AVRDUDE will leave the LEDs in the
following states:

| PGM | VFY | ERR | Semantics                                        |
| --- | --- | --- | ------------------------------------------------ |
| off | off | off | OK: all tasks done without errors                |
| off | off | on  | Some error not related to read/write/erase       |
| on  | off | on  | Read/write/erase error                           |
| off | on  | on  | Verification error but no read/write/erase error |
| on  | on  | on  | Read/write/erase error and verification error    |

Other combinations should not show after exit.
2023-10-23 23:57:59 +01:00
Stefan Rueger
5adf0124c8 Add provenance of bootloaders considered in hash lish 2023-10-23 13:45:34 +01:00
MCUdude
4c62a347f7 Add bootloader hashes from the Sanguino Arduino core repo
https://github.com/Lauszus/Sanguino
2023-10-22 23:06:17 +02:00
Dawid Buchwald
fb7e65bd63 Fix candidate for issues with NVM v3 controller 2023-10-22 21:03:03 +02:00
Stefan Rueger
481a91dd95 Update NEWS 2023-10-18 01:05:21 +01:00
Stefan Rueger
809b33d411 Merge pull request #1526 from stefanrueger/prodsig-jtag3
Enable prodsig read for jtag3 programmers
2023-10-18 00:57:25 +01:00
Stefan Rueger
872e9090da Merge pull request #1525 from stefanrueger/prodsig-jtagmk2
Enable prodsig read for jtagmkII programmers
2023-10-18 00:57:10 +01:00
Stefan Rueger
b8a0347331 Merge pull request #1524 from stefanrueger/prodsig-jtagmk1
Enable prodsig read for jtagmkI programmers
2023-10-18 00:56:55 +01:00
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