Commit Graph

4506 Commits

Author SHA1 Message Date
MCUdude
28870323e3 Always initialize f_get 2023-04-21 12:30:27 +02:00
Stefan Rueger
0796820625 Emulate flash NOR-memory for paged write 2023-04-21 01:58:13 +01:00
Stefan Rueger
d764d1b636 Provide a programmer dryrun that emulates programming
There is no connection to a physical programmer or chip needed; this to
test the workings of AVRDUDE and/or check out factory settings of fuses:

$ avrdude -qqp m328p -c dryrun -U lfuse:r:-:h
0x62

$ avrdude -qqp m328p -c dryrun -t
avrdude> read flash 0 32
0000  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0010  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
avrdude> read hfuse
0000  d9                                                |.               |
avrdude> read signature
0000  1e 95 0f                                          |...             |
avrdude> read calibration
0000  55                                                |U               |
avrdude> write cal 0 0x56
avrdude error: cannot write to write-protected memory ATmega328P calibration
avrdude error: (write) error writing 0x56 at 0x00000, rc=-1
                write operation not supported on memory type calibration
2023-04-21 01:31:40 +01:00
Stefan Rueger
67a51eac64 Add case-insensitive string comparison and wildcard match to str_*() routines
... and apply new str_*() functions in urclock.c and developer_opts.c
2023-04-20 19:18:46 +01:00
Stefan Rueger
b038bd45dc Update NEWS 2023-04-20 18:28:20 +01:00
Stefan Rueger
545df084b5 Merge pull request #1343 from stefanrueger/avrdude.conf
Review avrdude.conf, add variants and reconcile with ATDFs
2023-04-20 18:24:52 +01:00
Stefan Rueger
6d40f95644 Document avrdude.conf's variants string list and -vp? 2023-04-20 17:35:17 +01:00
Stefan Rueger
860ebd711b Refine variants for some parts 2023-04-20 17:34:23 +01:00
Stefan Rueger
619ec2c3a4 Print variants = NULL for -p.../S when needed 2023-04-20 17:33:25 +01:00
Stefan Rueger
26e5a9316b Treat variants as an additive string list and provide '= NULL' assignment 2023-04-19 21:39:27 +01:00
Stefan Rueger
5cedfd713d Add part variants from vendor list and change display style 2023-04-19 21:38:15 +01:00
MCUdude
0e0124ceec Add -xvtarg, -xvaref and -xfosc to -xhelp 2023-04-19 22:10:54 +02:00
MCUdude
fe7f8298f5 Add -xfosc 2023-04-19 21:21:51 +02:00
MCUdude
caa779cb8a Add extra_features to native stk500v2 2023-04-19 21:07:27 +02:00
MCUdude
0e426cc34a Add -xvaref support
This makes it possible to adjust the analog reference voltage on STK500v1, STK500v2 and STK600
2023-04-19 11:30:29 +02:00
MCUdude
dde83a224e Handle invalid vtarg arguments 2023-04-19 11:16:47 +02:00
MCUdude
dfd8508439 Rename HAS_AREF_ADJ to HAS_VAREF_ADJ 2023-04-19 08:27:30 +02:00
MCUdude
4733b6b1c7 Fix -xvtarg for stk500v1 programmers 2023-04-18 23:47:46 +02:00
MCUdude
d0bd9543c8 Add -xvtarg to stk500/v2 2023-04-18 23:00:45 +02:00
Stefan Rueger
45a0881110 Reconcile more avrdude.conf's memory readback with ATDFs 2023-04-18 20:13:25 +01:00
Stefan Rueger
2ea302f05c Reconcile more avrdude.conf's memory delay with ATDFs 2023-04-18 20:13:15 +01:00
Stefan Rueger
bd08cc35db Populate initval of fuses and lock bits
... and at the same time remove tcd0cfg fuse from all but 20 modern AVR8X
parts, which were inherited in error according to the ATDF files
2023-04-18 20:03:56 +01:00
Stefan Rueger
7b7a7988ab Improve semi-automated rewrite of avrdude.conf for memory parameters 2023-04-18 20:01:43 +01:00
Stefan Rueger
1f1cbb6af4 Match variants part ids for -p and print variants on -vp? 2023-04-18 02:05:42 +01:00
Stefan Rueger
326ca384d8 Align avrdude.conf variants in columns 2023-04-18 02:03:10 +01:00
MCUdude
15e53a50b2 add -xvtarg to jtag3 TPI programmers
Currently, only the Power Debugger can supply voltage to a TPI device
2023-04-18 00:02:45 +02:00
MCUdude
a02948e2cf Last apptempt at trying to fix programmer info in verbose mode 2023-04-18 00:00:49 +02:00
MCUdude
d53f034ac6 Attempt to fix programmer info 2023-04-17 23:44:34 +02:00
MCUdude
44a6b101ce Only print programmer-to-target spesific data when...
pgm->display is called
2023-04-17 22:31:17 +02:00
MCUdude
723da383b4 pgm->parseextparams is an optional function 2023-04-17 22:18:54 +02:00
MCUdude
a8b263f1f0 Add -xvtarg to jtag3.c 2023-04-17 22:18:04 +02:00
MCUdude
7b5867943d Fix typo 2023-04-17 22:16:17 +02:00
MCUdude
73469a5e3a Add comment 2023-04-17 19:41:03 +02:00
MCUdude
1078cd656f Add non-supported functionality from AVR Dragon 2023-04-17 19:40:47 +02:00
MCUdude
e9492b564b make stk500v2 set_vtarget, set_varef and set_fosc hardware dependent
based on data from avrdude.conf
2023-04-17 19:40:09 +02:00
MCUdude
50df3a6303 Fix formatting 2023-04-17 19:39:26 +02:00
MCUdude
e0f5c552b7 make set_vtarget, set_varef and set_fosc hardware dependent
based on data from avrdude.conf
2023-04-17 19:38:55 +02:00
MCUdude
e67963bf26 Add comments 2023-04-17 19:37:10 +02:00
MCUdude
5c85a5a2fb Add HAS_AREF_ADJ 2023-04-17 19:36:19 +02:00
MCUdude
d82847c95b Merge branch 'main' into more-extra-parameters 2023-04-17 18:07:57 +02:00
Stefan Rueger
c70a3e3549 Update NEWS 2023-04-17 01:39:27 +01:00
Stefan Rueger
436a6f5e8b Update NEWS 2023-04-17 01:36:05 +01:00
Hans
999e412c41 Add -xhelp to programmers that supports extended parameters (#1338) 2023-04-17 01:31:42 +01:00
Stefan Rueger
51703dfc94 Move avrintel into libavrdude (#1341)
And update avrintel.[ch] collating vtab_<mcu> table pointers
2023-04-17 01:28:43 +01:00
Stefan Rueger
e83d4bda40 Populate avrdude.conf's variants from ATDFs 2023-04-17 01:14:24 +01:00
Stefan Rueger
3557ee0e77 Reconcile avrdude.conf's memory readsize with ATDFs 2023-04-17 01:11:09 +01:00
Stefan Rueger
6734ef4e82 Reconcile avrdude.conf's memory readback with ATDFs 2023-04-17 01:11:04 +01:00
Stefan Rueger
2da787c3fa Reconcile avrdude.conf's memory blocksize with ATDFs 2023-04-17 01:10:50 +01:00
Stefan Rueger
b347cb4931 Reconcile avrdude.conf's part togglevtg with ATDFs 2023-04-17 01:09:57 +01:00
Stefan Rueger
84a2701db9 Reconcile avrdude.conf's part resetdelayus with ATDFs 2023-04-17 01:09:34 +01:00