Stefan Rueger
38781c8afd
Merge pull request #1658 from stefanrueger/update-test-script
...
Update test script
2024-02-06 10:30:46 +13:00
stefanrueger
cf2b362532
Remove -l $logfile when listing avrdude commands
2024-02-05 15:13:43 +13:00
stefanrueger
7bf69aad43
Check $avrdude_bin is executable
2024-02-05 14:51:18 +13:00
stefanrueger
f9246b81c4
Remove wildcard string matches in test script
2024-02-05 14:33:02 +13:00
stefanrueger
8f8316f08b
Change integer test to string test to allow non-integer $elapsed
2024-02-05 14:11:41 +13:00
stefanrueger
e6c1229b71
Remove config eesave output from test-avrdude -v runs
...
-v is meant to only show AVRDUDE errors and warnings
Before this commit:
$ tools/test-avrdude -v -p "-c dryrun -p m328p"
Testing avrdude version 7.2-20240201 (571a8063 )
Prepare "-c dryrun -p m328p" and press 'enter' or 'space' to continue. Press any other key to skip
✅ 0.064 s: fuse access: clear, set and read eesave fuse bit
config eesave=ee_erased # 1
✅ 0.068 s: fuse access: set eesave fusebit to delete EEPROM on chip erase
✅ 0.068 s: chip erase
✅ 0.068 s: flash -U write/verify holes_rjmp_loops_32768B.hex
✅ 0.068 s: flash -T write/verify holes_rjmp_loops_32768B.hex
✅ 0.068 s: eeprom check whether programmer can flip 0s to 1s
✅ 0.069 s: eeprom -U write/verify holes_pack_my_box_1024B.hex
✅ 0.067 s: eeprom -T write/verify holes_{the_five_boxing_wizards,pack_my_box}_1024B.hex
✅ 0.068 s: chip erase and spot check flash is actually erased
✅ 0.068 s: spot check eeprom is erased, too
After:
$ tools/test-avrdude -v -p "-c dryrun -p m328p"
Testing avrdude version 7.2-20240201 (571a8063 )
Prepare "-c dryrun -p m328p" and press 'enter' or 'space' to continue. Press any other key to skip
✅ 0.065 s: fuse access: clear, set and read eesave fuse bit
✅ 0.068 s: fuse access: set eesave fusebit to delete EEPROM on chip erase
✅ 0.067 s: chip erase
✅ 0.068 s: flash -U write/verify holes_rjmp_loops_32768B.hex
✅ 0.068 s: flash -T write/verify holes_rjmp_loops_32768B.hex
✅ 0.066 s: eeprom check whether programmer can flip 0s to 1s
✅ 0.069 s: eeprom -U write/verify holes_pack_my_box_1024B.hex
✅ 0.068 s: eeprom -T write/verify holes_{the_five_boxing_wizards,pack_my_box}_1024B.hex
✅ 0.067 s: chip erase and spot check flash is actually erased
2024-02-05 14:04:38 +13:00
stefanrueger
571a8063b9
Update test-avrdude usage
2024-02-01 18:29:00 +13:00
stefanrueger
e3d4132997
Update NEWS
2024-02-01 17:30:33 +13:00
Stefan Rueger
0c8ac315cc
Merge pull request #1651 from stefanrueger/tmpfiles
...
Create test-avrdude's temporary files in the script itself
2024-02-01 17:19:17 +13:00
stefanrueger
acd5584c62
Provide -T option for test-avrdude to add dryrun/dryboot tests
2024-02-01 15:21:34 +13:00
stefanrueger
2c677693f8
Exit test-avrdude with 1 if any failure occurred
2024-02-01 15:09:00 +13:00
stefanrueger
213fe7561f
Create test-avrdude's temporary files in the script itself
2024-02-01 15:02:48 +13:00
stefanrueger
5684b85f86
Update NEWS
2024-01-31 15:08:40 +13:00
Stefan Rueger
03d9fb854c
Merge pull request #1650 from stefanrueger/sed+tmp
...
Update test-avrdude script
2024-01-31 15:05:19 +13:00
Stefan Rueger
070a3f0b41
Merge pull request #1647 from MCUdude/pgm-delay
...
Add a fixed delay for AVR Dragon and Arduino Nano Every on port close
2024-01-31 15:04:35 +13:00
stefanrueger
370a15d032
Reduce default delay between avrdude test runs
...
- From 4 s to 0.75 s
- Do not delay at all for -c dryrun/dryboot
- Do not delay before first avrdude call in a series
2024-01-31 14:49:46 +13:00
stefanrueger
86af6b6d01
Add option test-avrdude -t <dir> for tmp directory
2024-01-31 11:44:16 +13:00
stefanrueger
8f46c531f1
Avoid sed -i in test-avrdude script
2024-01-31 11:38:53 +13:00
stefanrueger
3d3a387d1a
Check test-avrdude can write to /dev/shm
2024-01-30 23:15:06 +13:00
stefanrueger
742cb9dd77
Update test-avrdude script
...
- Simplify command to make eesave fusebit delete EEPROM on chip erase
- Replace ${var,,} construct with tr A-Z a-z so older bash shells work
- Make -l work for fuse access tests
2024-01-30 14:31:25 +13:00
MCUdude
f3ca6958ac
Use usleep for compatibility reasons
2024-01-29 15:45:01 +01:00
MCUdude
129aba5c86
Add a fixed delay for AVR Dragon and Arduino Nano Every on port close
2024-01-29 15:35:07 +01:00
stefanrueger
68dd7db87c
Update NEWS
2024-01-29 21:20:14 +13:00
Stefan Rueger
b220db2573
Merge pull request #1646 from mcuee/github_test_dryrun
...
Add tools/test-avrdude to Linux x86_64 github action
2024-01-29 20:55:39 +13:00
stefanrueger
ceb78a125f
Update NEWS
2024-01-29 19:04:55 +13:00
stefanrueger
9b1f4e1920
Enable -U upload of file with holes for urclock
2024-01-29 18:55:22 +13:00
stefanrueger
5e2409b9fc
Remove EEPROM spot check after chip erase from bootloaders
...
Bootloaders emulate chip erase (if at all) so EEPROM is unlikely erased
2024-01-29 18:31:32 +13:00
mcuee
a6b343d13b
Add tools/test-avrdude to Linux x86_64 github action
2024-01-29 13:12:13 +08:00
stefanrueger
9407dc049d
Update NEWS
2024-01-29 12:26:49 +13:00
Stefan Rueger
b0ba6b60f2
Merge pull request #1645 from stefanrueger/test-avrdude
...
Add tools/test-avrdude
2024-01-29 12:16:11 +13:00
Stefan Rueger
1f985354f5
Merge pull request #1642 from stefanrueger/factory-reset
...
Provide terminal command `factory reset`
2024-01-29 12:15:59 +13:00
Stefan Rueger
d9511238ff
Merge pull request #1641 from stefanrueger/dryboot
...
Add dryboot programmer
2024-01-29 12:15:29 +13:00
Stefan Rueger
d0e444cea1
Merge pull request #1640 from MCUdude/ch343
...
Add CH343 USB to serial adapter
2024-01-29 12:15:02 +13:00
Stefan Rueger
ebbcdba3f7
Merge pull request #1634 from stefanrueger/one-byte-flash-files
...
Fix upload of one-byte files to flash
2024-01-29 12:14:43 +13:00
Stefan Rueger
d4ca977596
Merge pull request #1627 from dbuchwald/issue_1609
...
Multiple updates to SerialUPDI protocol based on discussion 1609 and issues 1621, 1622 and 1623.
2024-01-29 12:14:25 +13:00
stefanrueger
73adee82e2
Update test-avrdude error message
2024-01-29 10:26:11 +13:00
stefanrueger
be9c2a507d
Add tools/test-avrdude
...
$ tools/test-avrdude -h
Syntax: test-avrdude {<opts>}
Function: test AVRDUDE for certain programmer and part combinations
Options:
-c <configuration spec> additional configuration options used for all runs
-d <sec> delay between test commands (default 4 seconds)
-e <avrdude path> set path of AVRDUDE executable (default avrdude)
-l list test commands but do not execute them
-p <programmer/part specs> can be used multiple times, overrides default tests
-s skip EEPROM tests for bootloaders
-v verbose: show AVRDUDE error and warning messages
-? or -h show this help text
Example:
$ test-avrdude -d 0 -p "-c dryrun -p t13" -p "-c dryrun -p m4809"
$ echo | tools/test-avrdude -p"-cdryrun -pm328p" -d0
Testing avrdude version 7.2-20240128 (09345002 )
Prepare "-cdryrun -pm328p" and press 'enter' or 'space' to continue. Press any other key to skip
✅ 0.064 s: fuse access: clear, set and read eesave fuse bit
✅ 0.083 s: fuse access: set eesave fusebit to delete EEPROM on chip erase
✅ 0.066 s: chip erase
✅ 0.068 s: flash -U write/verify holes_rjmp_loops_32768B.hex
✅ 0.067 s: flash -T write/verify holes_rjmp_loops_32768B.hex
✅ 0.067 s: eeprom check whether programmer can flip 0s to 1s
✅ 0.067 s: eeprom -U write/verify holes_pack_my_box_1024B.hex
✅ 0.066 s: eeprom -T write/verify holes_{the_five_boxing_wizards,pack_my_box}_1024B.hex
✅ 0.069 s: chip erase and spot check flash is actually erased
✅ 0.067 s: spot check eeprom is erased, too
2024-01-29 01:39:08 +13:00
stefanrueger
775dea2ce6
Shrink emulated bootloader for parts with small flash
2024-01-29 01:18:07 +13:00
stefanrueger
09345002b3
Emulate io/sram access depending on classic/xmega/modern part
2024-01-28 15:39:37 +13:00
stefanrueger
889b585db3
Only erase flash, eprom and user-type memories
2024-01-28 00:51:08 +13:00
stefanrueger
4708f6e14e
Emulate 512-byte protected bootloader for dryboot
2024-01-28 00:32:07 +13:00
stefanrueger
aa9369cd73
Fix warning grammar
2024-01-27 18:03:28 +13:00
stefanrueger
a460fcad55
Clarify documentation
2024-01-27 17:46:50 +13:00
stefanrueger
91d7c9f702
Document factory reset command
2024-01-27 13:13:10 +13:00
stefanrueger
bfd14562f9
Provide factory reset command
2024-01-27 13:12:49 +13:00
stefanrueger
084f25f188
Make terminal command args constant strings
2024-01-27 12:10:46 +13:00
stefanrueger
652ef2efc7
Document factory_fcpu part property
2024-01-27 12:09:57 +13:00
stefanrueger
6b71a8d253
Populate factory_fcpu values in avrdude.conf.in
2024-01-27 12:01:30 +13:00
stefanrueger
aa668fa6a3
Provide factory_fcpu variable
2024-01-27 11:54:01 +13:00
MCUdude
a757d8639c
Add CH343 documentation URL
2024-01-26 13:40:39 +01:00