Commit Graph

3221 Commits

Author SHA1 Message Date
朝日薫
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
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
Stefan Rueger
7bdd61016f Replace avr_mem_is_...() functions with macros 2023-10-25 13:33:01 +01:00
Stefan Rueger
872fb9d53e Replace and remove avr_memstr_is_...() functions 2023-10-25 13:24:37 +01:00
Stefan Rueger
6e2a7a88a6 Add mem->type to encode memory types and attributes 2023-10-25 12:13:36 +01:00
Stefan Rueger
26aedba188 Rename memtype to memstr, memchr or mtype
The name memtype can mean different things in the AVRDUDE src.
Mostly it means the name string of the memory, eg, "flash" or
"eeprom"; sometimes it is a character designating a memory, eg, 'E'
for "eeprom"; and yet at other times it means a programmer-defined
memory type, eg, MTYPE_BOOT_FLASH. The occurrences of memtype in
the code have now neen renamed appropriately.
2023-10-25 00:05:25 +01: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