Stefan Rueger
dc4ce4766e
Merge pull request #1580 from stefanrueger/regfile
...
Provide terminal `regfile` command
2023-12-01 15:39:28 +13:00
Stefan Rueger
633669b1cc
Merge pull request #1574 from Ho-Ro/get_4_1570
...
new functions (#1570 ): get_vtarget, get_varef, get_fosc, get_sck_period
2023-12-01 15:39:06 +13:00
Martin
af226823df
parms spacing correction (jtagmkI); parms sequence correction (stk500v2)
...
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com >
2023-11-30 17:34:19 +01:00
Martin
aaa26d9169
Last (?) tidying according review from MCUdude and stefanrueger
...
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com >
2023-11-29 22:17:22 +01:00
stefanrueger
43f36484e1
Downgrade message reporting change of Vtarg
2023-11-29 23:18:22 +13:00
stefanrueger
de3a15d664
Document regfile terminal command
2023-11-28 00:57:03 +13:00
Martin
b438ba5233
update stk500v1 sck display
...
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com >
2023-11-26 19:39:23 +01:00
Martin
2ec638f94b
variable xtal setting; formatting
...
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com >
2023-11-26 19:39:23 +01:00
Martin
64c82fdb35
fosc / sck test for most stk500v2 based programmer (except mk3?)
...
difficult to test w/o programmer HW (only orig STK500 (v2) and SMo)
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com >
# Conflicts:
# src/stk500v2.c
2023-11-26 19:39:23 +01:00
Martin
42a7f671bb
fosc / sck test for most stk500v2 based programmer (except mk3?)
...
difficult to test w/o programmer HW (only orig STK500 (v2) and SMo)
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com >
2023-11-26 19:39:23 +01:00
Martin
d3a142961c
fix sck typo wrong parameter
...
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com >
2023-11-26 19:39:23 +01:00
Martin
c5e117dacb
get_sck_period() and get_vtarget() for JTAG1
...
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com >
2023-11-26 19:39:23 +01:00
Martin
29a315c36d
fix memory access error, provide 4 get_ functions for stk50v2
...
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com >
2023-11-26 19:39:23 +01:00
Martin
4444ca8b9c
new functions ( #1570 ): get_vtarget, get_varef, get_fosc, get_sck_period
...
this is only a proof of concept
declarations for libavrdude, parser in term.c
sample implementations in stk500v1.c
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com >
2023-11-26 19:39:23 +01:00
stefanrueger
7c180e4559
Provide terminal regfile command
2023-11-27 00:12:55 +13:00
stefanrueger
56a192bb82
Initialise dryrun io memory from register file
2023-11-27 00:12:23 +13:00
stefanrueger
7b64287fba
Provide str_matched_by(), str_casematched_by(), str_is_pattern()
2023-11-27 00:11:01 +13:00
stefanrueger
c37933720f
Provide avr_locate_isrtable(), avr_locate_register_file(), avr_locate_register(), avr_locate_registerlist()
2023-11-27 00:07:59 +13:00
stefanrueger
5830fbfdc3
Update avrintel.[ch] with register files
2023-11-27 00:04:00 +13:00
stefanrueger
9464b0c35a
Update NEWS
2023-11-26 23:00:26 +13:00
Stefan Rueger
e0aee95805
Merge pull request #1577 from stefanrueger/config_value
...
Provide and use libavrude functions to access part config values
2023-11-26 22:57:08 +13:00
stefanrueger
f4de378751
Provide avr_locate_upidx(), avr_locate_configitems(), avr_locate_configlist()
2023-11-26 19:09:42 +13:00
stefanrueger
65901cf570
Fix access of internal uP_table given the part
2023-11-24 15:49:12 +13:00
stefanrueger
879ea06545
Use avr_get_config_value() to determine OCDEN fuse setting
2023-11-23 17:44:54 +13:00
stefanrueger
fd1c49e538
Provide avr_get_config_value() and avr_set_config_value() functions
...
Example usage:
int ocden = 0;
if(avr_get_config_value(pgm, p, "ocden", &ocden) == 0 && ocden) // ocden == 1 means disabled
pmsg_warning("OCDEN fuse not programmed, single-byte EEPROM updates not possible\n");
2023-11-23 17:42:07 +13:00
stefanrueger
606658a12d
Update NEWS
2023-11-22 23:50:16 +13:00
Stefan Rueger
bf1aa2bcb8
Merge pull request #1576 from mcuee/mingw_readline_test
...
Add GNU readline to mingw github action
2023-11-22 23:41:34 +13:00
Stefan Rueger
6df3f9894b
Merge pull request #1571 from stefanrueger/sram
...
Add memory sram and remove memory data
2023-11-22 23:37:47 +13:00
Stefan Rueger
c394fcf23e
Merge pull request #1569 from mcuee/cmake_update
...
Update src/CMakeLists.txt
2023-11-22 23:36:49 +13:00
Hans
664d36df07
Update part cmd ( #1568 )
...
Co-authored-by: stefanrueger <stefan.rueger@urclocks.com >
2023-11-22 23:35:47 +13:00
Martin
92c576d942
Support for STK500 v1 and v2 devices with STK500_XTAL != 7372800 ( #1566 )
...
* fix -x vtarg handling (HAS_VTARG_READ vs. HAS_VTARG_ADJ)
* stk500v1: implement new option -x xtal=nnn (part of #1560 )
* fix parsing of frequencies, values w/o k or M prefix were not recognised
now frequency parameter fosc=nnnn or fosc=nnnnH[z] are also ok
* stk500v2: xtra argument -x xtal=nnnn
* unify xtra argument messages for v1 and v2, better error message wording
* update man and doc
* stk500v1: add option -B handling identical to stk500v2
* allow spaces in extra parameter, e.g. -x "fosc= .1e3 kHz"
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com >
2023-11-22 22:23:45 +13:00
mcuee
c4b5097b1f
Use -static linking option for MinGW
...
This will prevent the dependency to libwinpthread-1.dll.
2023-11-20 15:39:36 +08:00
mcuee
390e3bacd8
Add GNU readline to mingw github action
...
Same as https://github.com/avrdudes/avrdude/pull/1513 .
2023-11-20 15:23:02 +08:00
stefanrueger
a3a1871d9b
Sort all memories of all parts in canonical order
2023-11-17 14:28:51 +13:00
stefanrueger
1b9d087004
Handle SRAM r/w
2023-11-16 11:27:22 +13:00
stefanrueger
1d2a36c6db
List memory sram after io
2023-11-16 11:14:07 +13:00
stefanrueger
309e6baf18
Add memory sram at the expense of data
...
The memory data was introduced for the sole purpose to provide an
nvm_data_offset for Microchip programmers. As an address offset it would
tell programmers to read/write in data space. It so turned out that this
nvm_data_offset always was 0x1000000 for PDI and UPDI parts.
This commit removes this artificial data memory and treats the data offset
in the code as what it currently is: a constant.
At the same time the commit introduces an sram memory with offset and size
for virtually all parts known to AVRDUDE.
2023-11-15 22:55:10 +13:00
mcuee
20b6df6b04
Update src/CMakeLists.txt
...
This is to adopt the CMake improvements in PR #1553 even though the PR itself was abondoned.
The author of the change is @Youw.
2023-11-14 20:55:35 +08:00
stefanrueger
c82fec9c4b
Update NEWS
2023-11-13 02:33:24 +00:00
Hans
ce59853981
Print warning when avrdude and avrdude.conf versions doesn't match ( #1564 )
2023-11-13 02:31:11 +00:00
Hans
71bf4f72a9
Always print error if part and programmer doesn't have a common programming interface ( #1563 )
...
* Harmonize WIN32 implementation of serial time-outs with Posix
This is from @mariusgreuel in Issue #1249 .
https://github.com/avrdudes/avrdude/issues/1249
> The WIN32 time-out is specified as ReadTotalTimeoutConstant + buflen * ReadTotalTimeoutMultiplier, which makes it potentially much longer than the Posix one (i.e. at least double). ReadIntervalTimeout is also set to timeout, which essentially renders the interval timeout ineffective, so IMHO, we should explicitly disable that feature.
* Update NEWS
* Always print error if part and programmer doesn't have a common programming interface
even though the user uses -F. It won't exit though.
* Don't mention -F in error message if -F is already used
---------
Co-authored-by: mcuee <xiaofanc@gmail.com >
Co-authored-by: Stefan Rueger <stefan.rueger@urclocks.com >
2023-11-13 02:30:30 +00:00
Stefan Rueger
fb550221c7
Merge pull request #1555 from stefanrueger/option-N
...
Provide option -N for do not load personal config file
2023-11-13 02:29:10 +00:00
stefanrueger
0c385910a8
Update NEWS
2023-11-11 17:10:05 +00:00
Stefan Rueger
9596faac79
Merge pull request #1557 from stefanrueger/programmer-not-recognised
...
Test programmers for prog_modes and type
2023-11-11 16:47:43 +00:00
Stefan Rueger
0fe1bf0e29
Merge pull request #1556 from stefanrueger/no-paged-eeprom
...
Remove paged eeprom property from ATtiny43U
2023-11-11 16:47:02 +00:00
Stefan Rueger
736c158d0b
Merge pull request #1554 from stefanrueger/signature-write
...
Review write_byte() functions
2023-11-11 16:31:36 +00:00
Stefan Rueger
84e7ff134d
Suppress multiple-modes warnings for dryrun type programmers
2023-11-04 15:08:47 +00:00
Stefan Rueger
cf4285f5b8
Test programmers for prog_modes and type
...
This corrects the error message when AVRDUDE cannot use a programmer to
say it is owing to lack of prog_modes or type.
2023-11-03 17:21:52 +00:00
Stefan Rueger
3f647ec6db
Remove paged eeprom property from ATtiny43U
...
The property paged should only be used for flash of classic parts.
2023-11-03 17:18:38 +00:00
Stefan Rueger
ff3e65e34a
Provide option -N for do not load personal config file
2023-11-03 17:15:15 +00:00