Commit Graph

5274 Commits

Author SHA1 Message Date
Stefan Rueger
14eaae2768 Rectify pin names for RSTDISBL and CLKOUT configurations 2026-04-17 00:50:07 +01:00
Stefan Rueger
e307a47af8 Update avrduce.conf.in 2026-04-09 17:40:20 +01:00
Stefan Rueger
1bc0296680 Fix .atdf errors for some XMEGAs 2026-04-09 17:39:53 +01:00
Stefan Rueger
e88950e797 Update news and avrdude.pdf 2026-04-05 19:03:58 +01:00
Stefan Rueger
ff5e7630ce Merge pull request #2092 from stefanrueger/stk600-remove-tdi
Remove `PM_TPI` from `-c stk600` prog modes
2026-04-05 18:56:18 +01:00
Stefan Rueger
48cb4a9b28 Merge pull request #2090 from stefanrueger/dryboot
Make `-c dryboot` emulate `-c urclock -x nometadata`
2026-04-05 18:55:51 +01:00
Stefan Rueger
cf4793a2b2 Merge pull request #2087 from stefanrueger/buspirate
Simplify `buspirate_expect_bin_byte()` function
2026-04-05 18:55:16 +01:00
Stefan Rueger
83579e16a1 Merge pull request #2086 from stefanrueger/messages
Use verbosity levels consistently
2026-04-05 18:54:54 +01:00
Stefan Rueger
8a527c9bfe Merge pull request #2085 from stefanrueger/write_byte
Update single byte writes, ie, skip write if data already there
2026-04-05 18:53:28 +01:00
Stefan Rueger
051c1e5770 Merge pull request #2084 from stefanrueger/whereami
Update whereami.[ch] from github source
2026-04-05 18:52:39 +01:00
Stefan Rueger
6b694b0ff4 Furnish b/loader paged write with write protection 2026-04-05 18:48:43 +01:00
Stefan Rueger
ccf27a4736 Remove write protection from jmp-to-application vector
When serving a vector bootloader, both -c urclock and now -c dryboot used
to protect two vectors in the vector table, the reset vector and the
dedicated vector to jump to the application.

Only the reset vector needs protecting to avoid the vector bootloader to
be bricked. While overwriting the other vector might turn out not helpful,
it's the same as with many other interventions, so much so that the driver
should not prevent that. Hence, this commit withdraws the protection of
the jmp-to-application vector.
2026-04-05 09:49:19 +01:00
Stefan Rueger
f24ee04389 Remove PM_TPI from -c stk600 prog modes
While the STK600 protocol supports TPI (and JTAG and UPDI), the current
AVRDUDE implementation for stk600 doesn't. This PR adjusts the prog modes
in avrdude.conf accordingly.
2026-04-04 15:05:32 +01:00
Stefan Rueger
fbb7b0bafa Update -c dryboot documentation 2026-04-03 16:30:10 +01:00
Stefan Rueger
818078f20f Remove dryboot classic fuse protection 2026-04-03 12:05:45 +01:00
Stefan Rueger
37bc0afad7 Add bootloader and vector write protection 2026-04-03 01:49:16 +01:00
Stefan Rueger
bcb993f204 Patch sketches witch -c dryboot as with -c urclock -x nometadata 2026-04-03 01:12:20 +01:00
Stefan Rueger
fff6096902 Introduce int (*cmdhook)() 2026-04-02 23:18:23 +01:00
Stefan Rueger
03aa193722 Introduce int (*updatehook)() 2026-04-02 23:12:17 +01:00
Stefan Rueger
d1544c18ef Provide urbootPutVersion() 2026-04-02 22:51:41 +01:00
Stefan Rueger
3b481d45c9 Rename static urbootPutVersion() to urbootPutVersion8() 2026-04-02 19:06:31 +01:00
Stefan Rueger
7752adf740 Provide set_resetvector() 2026-04-02 12:29:14 +01:00
Stefan Rueger
378f364d8a Provide ur structure to describe bootloader 2026-04-02 00:44:01 +01:00
Stefan Rueger
944e347dfd Provide reset2addr() 2026-04-02 00:20:06 +01:00
Stefan Rueger
e7532789af Utilise avr_opcodes.c functions 2026-04-01 19:00:21 +01:00
Stefan Rueger
29f319b38f Improve comments 2026-04-01 18:59:38 +01:00
Stefan Rueger
e105e65bf1 Simplify buspirate_expect_bin_byte() function 2026-03-26 19:48:25 +00:00
Stefan Rueger
0ebc19eb99 Utilise effective verbosity level throughout
Again, this is a subtle change. The avr_message2() function introduced a
while ago an effective verbosity level, where verbosity is reduced by the
number of -q options above one. This commit uses that level throughout
instead of verbose.
2026-03-26 19:17:46 +00:00
Stefan Rueger
649bba8fe0 Guard notice and debugging message with verblevel
This is a sublte change but prevents numerous notice, debugging and trace
messages being executed during the AVRDUDE run only to return without any
printout. Should be (ever so slightly) more efficient.
2026-03-26 19:10:31 +00:00
Stefan Rueger
6efccab6eb Define verblevel as effective verbosity level 2026-03-26 19:08:51 +00:00
Stefan Rueger
f062636a25 Consider avr_write_byte_default() skips unnecessary writes 2026-03-25 21:30:39 +00:00
Stefan Rueger
bfba3364d5 Utilise avr/led_update_write_byte() functions 2026-03-25 21:19:31 +00:00
Stefan Rueger
bc0b77910e Fix typo 2026-03-25 21:18:32 +00:00
Stefan Rueger
76e622599a Initialise unused bits in classic & XMEGA fuses 2026-03-25 19:32:59 +00:00
Stefan Rueger
70cde43d66 Provide led_update_write_byte() 2026-03-25 19:30:26 +00:00
Stefan Rueger
88e05a9673 Remodel led_write_byte() wrt r/o and w/p memory 2026-03-25 19:05:14 +00:00
Stefan Rueger
5b0d7689d2 Provide avr_update_write_byte() 2026-03-25 18:27:37 +00:00
Stefan Rueger
f6e2a80379 Remodel avr_write_byte() wrt r/o and w/p memory 2026-03-25 18:20:52 +00:00
Stefan Rueger
2a5425245d Utilise avr_can_skip_write_byte() 2026-03-25 17:58:00 +00:00
Stefan Rueger
7a7b072a9b Provide avr_can_skip_write_byte() 2026-03-25 17:34:01 +00:00
Stefan Rueger
919bb1e83b Improve fallback_read/write_byte() error messaging 2026-03-25 17:02:36 +00:00
Stefan Rueger
ff3fd1c448 Improve comments 2026-03-25 16:59:53 +00:00
Stefan Rueger
5b74dbd102 Suppress warning messages for __sun elf structures 2026-03-24 12:28:10 +00:00
Stefan Rueger
103b4b915a Harden use of wai_getExecutablePath() 2026-03-24 12:25:58 +00:00
Stefan Rueger
566dfe55c5 Provide whereami stubs for unsupported platforms 2026-03-24 12:09:26 +00:00
Stefan Rueger
f9c393a05c Check PATH_MAX after #include's 2026-03-24 11:51:37 +00:00
Stefan Rueger
32b4790b5b Update whereami.[ch] from github.com/gpakosz/whereami 2026-03-24 11:33:14 +00:00
Stefan Rueger
17ac9da940 Update NEWS 2026-03-22 11:32:54 +00:00
Stefan Rueger
3f1f8ae45b Merge pull request #2078 from stefanrueger/guard-paged-access
Make `paged_write` independent from `paged_load`
2026-03-22 11:19:52 +00:00
Stefan Rueger
7f69c2ad9f Merge pull request #2077 from dl8dtl/udevadm_suggestion
Suggest udevadm control --reload instead of rebooting
2026-03-22 11:18:40 +00:00