Stefan Rueger
6b03d7dc5a
Correct upper flash boundary for 8-bit AVR parts in elf_mem_limits()
2022-12-03 13:39:28 +00:00
Stefan Rueger
23dddef64b
Mark unused function parameters as such
2022-12-02 19:03:06 +00:00
Stefan Rueger
f688baabb7
Improve error messaging
2022-12-02 18:45:47 +00:00
Stefan Rueger
2e98ee3a1c
Check elf section fits into memory and fail elf2b() on elf handling errors
2022-12-02 18:28:19 +00:00
Stefan Rueger
3b30e5d424
Fix elf2b() to consider all sections in segments
2022-12-01 20:29:54 +00:00
Stefan Rueger
0ae632070f
Rewrite elf2b() in equivalent way absorbing elf_get_scn()
2022-12-01 20:21:33 +00:00
Jan Egil Ruud
8db18e64ed
Remove redundant mem-check.
2022-12-01 20:12:26 +01:00
Jan Egil Ruud
dc64fb716f
Fix wrongfully call to initCache() according to stefanrueger's instructions.
2022-12-01 20:05:55 +01:00
Jan Egil Ruud
f78e14ee96
Revert "Skip chaching when size of memory is 0."
...
This reverts commit bb808e8d5f
.
2022-12-01 20:01:11 +01:00
Jan Egil Ruud
bb808e8d5f
Skip chaching when size of memory is 0.
2022-12-01 15:16:23 +01:00
Jan Egil Ruud
e18b5c4fb0
Made the code a little prettier.
2022-12-01 00:01:29 +01:00
Jan Egil Ruud
b643f0a1a0
#822 Fixed bug in TPI byte write for ATtiny20 and ATtiny40.
2022-11-30 23:49:20 +01:00
Jan Egil Ruud
b52bd393de
#822 Added TPI support for JTAGICE3.
2022-11-30 23:39:37 +01:00
Jan Egil Ruud
95160e8801
Changed verbose level on TPI initialize notice.
2022-11-30 23:21:30 +01:00
Jan Egil Ruud
e87a9b59b6
#822 Added and tested TPI support for AtmelICE, PowerDebugger, PICkit4 and Snap.
2022-11-30 23:08:55 +01:00
Jan Egil Ruud
1eb6a06055
#822 Small refactoring and clean up.
2022-11-30 23:07:05 +01:00
Jan Egil Ruud
cad296f780
Attempt to fix msvc builds.
2022-11-30 00:27:25 +01:00
Jan Egil Ruud
90bd24a902
#822 Added support for TPI page write.
2022-11-30 00:14:19 +01:00
Stefan Rueger
ea2d7eec95
Fix fopen() file mode in fileio_fmt_autodetect()
2022-11-29 19:46:48 +00:00
Jan Egil Ruud
2f5566a8ed
#822 Added support for TPI page load.
2022-11-29 20:34:05 +01:00
Jan Egil Ruud
f2156b834d
#822 Added sigrow memory to tiny102 and tiny 104, and removed duplicate lockbits.
2022-11-29 09:52:45 +01:00
MCUdude
2d7ad8e373
Print meaningful ISP clock error message
...
Currently, only some JTAG3 compatible programmers are able to detect that the connected target's main clock speed actually is too low for for the programmer.
In this case, these will return 0xCC.
2022-11-27 22:52:45 +01:00
MCUdude
6385fb09f7
Add missing stk500v2 status constants
2022-11-27 22:41:29 +01:00
Stefan Rueger
bb14386f63
Merge pull request #1199 from stefanrueger/userrow
...
Fix userrow size and page_size for ATtiny3216 and ATtiny3217
2022-11-27 19:05:25 +00:00
Stefan Rueger
58e2bca42c
Update n_interrupts in avrdude.conf.in and introduce eind
2022-11-27 16:56:49 +00:00
Stefan Rueger
5a0975aee7
Allow / as path deliminator in Windows for urclock metadata
2022-11-27 14:44:46 +00:00
Stefan Rueger
0c96f5d6dc
Calibrate urboot's -xdelay for windows
2022-11-27 13:57:37 +00:00
Stefan Rueger
ba9d24fdd2
Fix userrow size and page_size for ATtiny3216 and ATtiny3217
2022-11-26 17:37:51 +00:00
Stefan Rueger
0e0a0ba0eb
Get boot section info from avrdude.conf and not from avrintel.c
2022-11-26 13:53:46 +00:00
Stefan Rueger
d774e87a59
Update documentation re the urclock programmer
2022-11-26 13:23:25 +00:00
Stefan Rueger
3a5f3735ba
Adapt urclock_getsync() to consider legacy bootloaders
2022-11-26 12:54:42 +00:00
Stefan Rueger
1cb169ec93
Establish avr_*timestamp() routines for timing
2022-11-25 22:09:02 +00:00
Stefan Rueger
231e88aaf9
Add autobaud_sync to avrdude.conf part description
2022-11-25 19:20:45 +00:00
Stefan Rueger
bbc52499e7
Merge branch 'main' into exitrc
2022-11-25 17:43:13 +00:00
Stefan Rueger
2cecf66a61
Merge pull request #1191 from stefanrueger/jtagice_mkii
...
Fix parameters for JTAGICE mkII and devices with bootloaders
2022-11-25 17:40:54 +00:00
Stefan Rueger
10ca3661bb
Merge pull request #1190 from stefanrueger/bootloader-hash
...
Provide bootloader-hash tool
2022-11-25 17:40:36 +00:00
Stefan Rueger
664b1aa1f6
Merge pull request #1189 from stefanrueger/culture
...
Deprecate mosi/miso in favour of sdo/sdi
2022-11-25 17:40:25 +00:00
Stefan Rueger
607f0c48be
Merge pull request #1188 from stefanrueger/not-all-is-nor-memory
...
Pad pages with input file contents before avr_write()
2022-11-25 17:40:11 +00:00
Stefan Rueger
289ca4f34c
Add optiboot_lgt8f328p.hex bootloader hashes to urclock.c
2022-11-25 17:26:17 +00:00
Stefan Rueger
7269370bf6
Change notices about libreadline presence in urclock.c
2022-11-25 13:58:11 +00:00
Stefan Rueger
e6f7e158cd
Change periphery to peripheral; document deprecated miso/mosi are now sdi/sdo
2022-11-24 13:18:06 +00:00
Stefan Rueger
2b3534ea8a
Remove tabs and reformat
2022-11-24 12:36:49 +00:00
Stefan Rueger
8e79b7dc52
Fix error detection for reading a page to pad unset bytes
2022-11-24 12:16:43 +00:00
Stefan Rueger
68c6ffd7fc
Silence compiler warnings, change comments, remove typos
2022-11-24 12:14:54 +00:00
Stefan Rueger
c3413ff0f4
Fix shell exit value when chip erase is delayed to next flash write
2022-11-23 19:53:55 +00:00
Jan Egil Ruud
f9a2bd0327
Got added support for reading and writing fuses, and chiperase.
2022-11-23 14:25:14 +01:00
Stefan Rueger
19cd7d8c69
Remove non-stk500v1 bootloaders from urclock hash table
2022-11-22 22:38:43 +00:00
Stefan Rueger
b925b5113d
Silence compiler warnings
2022-11-22 21:49:26 +00:00
Stefan Rueger
25ca91371d
Pad pages with input file contents before avr_write()
2022-11-22 21:32:42 +00:00
Stefan Rueger
33dd231e4c
Silence some compiler warnings
2022-11-22 21:17:39 +00:00
Stefan Rueger
8c73609c0e
Fix parameters for JTAGICE mkII and devices with bootloaders
2022-11-22 21:02:25 +00:00
Stefan Rueger
796e97ee3a
Update avrdude.conf.in wrt n_boot_sections, boot_section_size, eecr, spmcr
2022-11-22 20:49:12 +00:00
Stefan Rueger
9599bf2243
Add n_boot_sections and boot_section_size to part definitions
2022-11-22 20:44:12 +00:00
Stefan Rueger
7d5ab433ca
Replace gratuitous references to slave and master with technical terms
2022-11-22 17:11:33 +00:00
Stefan Rueger
adc333ea54
Deprecate mosi/miso in favour of sdo/sdi
...
See https://www.oshwa.org/a-resolution-to-redefine-spi-signal-names/
2022-11-22 17:04:05 +00:00
Jan Egil Ruud
5dc2545716
Cleaned and improved TPI send and receive.
2022-11-22 14:05:01 +01:00
Jan Egil Ruud
3afdd55089
Get rid of TPI magic numbers.
2022-11-22 13:23:57 +01:00
Jan Egil Ruud
32a6ca39e4
Cleaned up whitespace in jtag3.c so it at least is consistent within the file.
2022-11-22 13:05:14 +01:00
Stefan Rueger
883d9494c8
Silence compiler warnings for urclock.c
2022-11-22 01:39:27 +00:00
Stefan Rueger
ef824d4d89
Merge pull request #1184 from mcuee/cmake_print_readline
...
Print HAVE_LIBREADLINE status
2022-11-22 01:18:56 +00:00
Stefan Rueger
9c30ccc6ea
Merge pull request #1175 from stefanrueger/terminal
...
Make terminal write's automatic number width less surprising
2022-11-22 01:18:30 +00:00
Stefan Rueger
3400527c7d
Merge pull request #1174 from stefanrueger/default_programmer
...
Ensure default_programmer from config files is used
2022-11-22 01:17:55 +00:00
Cristiano De Alti
c3acdccbe5
Fix JTAGICE mkII by removing the initialize call after CMD_CHIP_ERASE_ISP ( #1172 )
...
- The extra call to initialize() sends CMD_ENTER_PROGMODE_ISP causing a flash
verification mismatch
2022-11-22 01:17:19 +00:00
Stefan Rueger
02e02be6f9
Merge pull request #1171 from stefanrueger/urclock
...
Provide Urclock programmer
2022-11-22 01:13:57 +00:00
Stefan Rueger
2063671a02
Merge pull request #1147 from mcuee/Xplained_Pro_PDI
...
Add xplainedpro_pdi programmer
2022-11-22 01:13:23 +00:00
Stefan Rueger
f9aea24fba
Reduce drain timeout value for Windows in urclock.c
2022-11-22 00:49:34 +00:00
Stefan Rueger
2e398916a7
Hash known bootloaders for urclock; they don't need -xbootsize=....
2022-11-22 00:47:26 +00:00
Jörg Wunsch
3892c5a459
Merge pull request #1181 from dl8dtl/add_em_evr_for_openbsd
...
Add fallback for EM_AVR
2022-11-21 23:31:14 +01:00
Jan Egil Ruud
10ccf0f515
Initial commit for jtag3 TPI support. Can read signature on ATtiny104 XPlained mini, but nothing else yet.
2022-11-21 21:18:13 +01:00
Joerg Wunsch
f90e36f231
Add a workaround for issue #1173
...
The readline compat layer for libedit which otherwise provides native
readline functionality in NetBSD and MacOS appears to have a bug that
causes subsequent prompts to be delayed until another line is being
processed.
Re-installing the callback over and over again works around that, and
does not seem to harm with GNU libreadline.
2022-11-20 22:52:41 +01:00
Stefan Rueger
7f4474f049
Delete previous metadata when writing new file to flash in urclock
2022-11-20 13:02:51 +00:00
Stefan Rueger
c0e4dd494e
Use file basename in -c urclock metadata under WIN32
2022-11-20 01:48:39 +00:00
mcuee
df4dccabfc
Update configure.ac to print libreadline status
2022-11-20 09:46:07 +08:00
Stefan Rueger
53de22cb83
Update avrintel.c for LGT8F(8|16|32)8P parts
2022-11-20 01:12:14 +00:00
Stefan Rueger
f276d325ec
Handle verification errors in read only memory areas gracefully
2022-11-20 00:27:49 +00:00
Stefan Rueger
ee25a62df6
Emulate chip erase in terminal when pgm->chip_erase() soft fails
2022-11-19 23:09:18 +00:00
Stefan Rueger
d65a9a3cee
Adapt -c urclock to new reset vector protection in urboot v7.7
2022-11-19 19:39:39 +00:00
Joerg Wunsch
77ad26ddf4
Replace the hint to AUTHORS by an URL
...
Suggested by: Hans
2022-11-18 21:24:10 +01:00
Joerg Wunsch
efad24e3de
Rewrite authors/copyrights
2022-11-18 10:31:45 +01:00
Joerg Wunsch
9df522a219
Add <sys/select.h> where appropriate
...
Under Posix systems, this header is documented to be required
when using select().
2022-11-17 14:14:22 +01:00
Joerg Wunsch
01be288b18
Add fallback for EM_AVR
...
OpenBSD still lacks this definition, so provide our own for
them.
2022-11-16 21:21:51 +01:00
Stefan Rueger
a3eeedd176
Silence some compiler warnings
2022-11-16 02:32:32 +00:00
Stefan Rueger
2abb666bd2
Prepare urclock for autobaud synchronisation
2022-11-16 02:08:13 +00:00
Stefan Rueger
d901e0a768
Update urbootPutVersion() to reflect urboot v7.7 changes
2022-11-16 00:42:36 +00:00
Stefan Rueger
82b9491cbd
Harden urclock against bootloader bricking
...
- Detect write restrictions with new pgm->readonly(..., addr)
- Check in byte-wise cached write whether mem/addr allows write
- Emulated chip erase tells user CE is delayed until first -U
- After bootloader CE urclock_chip_erase will init reset vector
- Low level paged write @ 0 unconditionally protects reset vector
- Low level paged read @ 0 checks and repairs reset vector
2022-11-16 00:08:46 +00:00
Stefan Rueger
afc2f7cf0c
Hint at option -xdelay=... for urclock programmer not responding messages
2022-11-12 13:47:48 +00:00
Stefan Rueger
ff9c8bbe46
Silence min()/max() compiler warnings, fix urclock.c typo etc
2022-11-12 13:32:53 +00:00
Stefan Rueger
e2b69dec75
Remove MacOS compiler warnings for urclock.c
2022-11-12 01:12:31 +00:00
Stefan Rueger
b178deef5f
Handle n_page_erase in urclock for parts t441, t841 and t1634
2022-11-11 01:33:42 +00:00
Stefan Rueger
6e3a99be87
Add write statistics for patched flash input files at notice2 level
2022-11-11 01:27:55 +00:00
Stefan Rueger
22bd977365
Indent erasing chip message in main
2022-11-10 23:18:43 +00:00
Stefan Rueger
c67bfe39a3
Show input file staistics before patching in update.c
2022-11-10 23:00:18 +00:00
Stefan Rueger
321bddbf7b
Rename urclock's option forcetrim to restore
2022-11-10 22:35:40 +00:00
Stefan Rueger
2434c3f7f6
Make terminal write's automatic number width less surprising
2022-11-10 19:38:21 +00:00
Stefan Rueger
4c4952d4f6
Ensure default_programmer from config files is used
2022-11-10 18:20:13 +00:00
Stefan Rueger
afa408e2c6
Make urclock.c iron out a bug in some bootloaders
2022-11-09 21:00:16 +00:00
Stefan Rueger
d5d0b940cc
Harden vector bootloaders more against reset overwrites
2022-11-09 19:28:29 +00:00
Stefan Rueger
84a3e2cc2b
Fix avr.c comment
2022-11-09 19:27:34 +00:00
Stefan Rueger
c7ba53bca0
Harden urclock against terminal time outs and vector overwrites
2022-11-09 16:16:59 +00:00
Stefan Rueger
ea65918dca
Omit verify after write failure in term.c
2022-11-09 15:43:57 +00:00