Commit Graph

3694 Commits

Author SHA1 Message Date
Joerg Wunsch
76efcb614c Stylistic change: move inline comments to column 32 2024-04-19 22:43:57 +02:00
Joerg Wunsch
2026142511 Silence Qt warning
Was:

Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is created.
2024-04-17 23:08:23 +02:00
Joerg Wunsch
0b93a165e8 Allow editing the programmer selection combobox
This offers the same feature as for the device selection: typing
a partial programmer name filters the dropdown list to all
possible matches for a programmer.
2024-04-17 22:52:21 +02:00
Joerg Wunsch
8662c68668 Add a category "bootloaders" in the programmer selection dialog
This category triggers for all programmers that have PM_SPM
set.
2024-04-17 22:39:43 +02:00
Joerg Wunsch
5d7d0737eb Improve the device selection list
While typing the combobox text, the validator adapts the contents of
the dropdown menu to only those entries that match the text typed.
So one can enter "64", and will only be presented all device that
have a 64 in their name (which are a few more than just those with
64 KiB of flash).
2024-04-16 22:29:05 +02:00
Joerg Wunsch
1b74b0f260 Reduce size of dropdown list to 20
50 seemed to be a bit too large for some displays.
2024-04-16 22:29:05 +02:00
Joerg Wunsch
8ebf2ee631 Convert help text to HTML
Turns out PySide2 doesn't have a setMarkdown() method for the text widgets,
only setHtml().
2024-04-15 08:00:41 +02:00
Joerg Wunsch
69267f365c Only enable the device selection OK button of validator is OK
While the combobox validator prevents "QValidator.Invalid"
characters to be entered, the user could still get away with
any string that is considered "QValidator.Intermediate". In
that caes, disable the OK button of the button box so the
(intermediate) result could not be passed on.
2024-04-14 22:54:44 +02:00
Joerg Wunsch
ec3ecc6169 Enlarge the device list
The default of 10 entries is way too small.
2024-04-14 22:54:15 +02:00
Joerg Wunsch
2784f73721 Improve device selection
Make the combo box editable, and apply a QValidator subclass
to it so the users can type partial device names.
2024-04-14 22:18:55 +02:00
Joerg Wunsch
6cb1fb03ce log() is a method, so prefix it with self. 2024-04-14 21:51:07 +02:00
Joerg Wunsch
61302b3e9c Shorten and straighten the help message a bit
Changes have been suggested by Stefan Rueger.
2024-04-14 16:38:04 +02:00
Joerg Wunsch
24718e2a9a s/dangerous/difficult/ 2024-04-14 11:39:58 +02:00
Joerg Wunsch
6440aa73d3 Review comments: stylistic changes in libavrdude.h
Remove obsolete avrdude_message().
Place inline comments at position 32.
2024-04-14 10:33:45 +02:00
Joerg Wunsch
22e4b5b3ce Add some (exemplary) warnings about dangerous fuse values
Some fuse settings on some devices may be dangerous, like
disabling ISP, or changing the /RESET pin into a GPIO.

This adds some warning examples. Still does not consider
the actual programmer connection, but that could be added
in future.
2024-04-14 10:27:30 +02:00
Joerg Wunsch
4ab7e197ea Merge branch 'main' into swig_libavrdude 2024-04-14 00:28:17 +02:00
Joerg Wunsch
4013eed998 Remove modality on help window
That way, users can operate the GUI while the help window is
displaying.
2024-04-14 00:14:58 +02:00
Stefan Rueger
428ea42634 Update NEWS 2024-04-13 12:41:16 +01:00
Stefan Rueger
1d3f028a0b Merge pull request #1747 from stefanrueger/update-avrintel
Update avrintel files
2024-04-13 12:36:50 +01:00
Stefan Rueger
e10370e5fb Merge pull request #1746 from stefanrueger/locate_programmer_starts_set
Check all programmer ids for exact match
2024-04-13 12:36:17 +01:00
Stefan Rueger
2ee89824e0 Merge pull request #1745 from stefanrueger/override-signature-check
Consult -F option when signature cannot be read
2024-04-13 12:35:08 +01:00
Stefan Rueger
b302e708be Merge pull request #1741 from dl8dtl/msg_debug_fixes
Fix message levels in jtag3_print_data()
2024-04-13 12:34:22 +01:00
mcuee
d441501505 Adding arduino_packing_release github action (#1690)
Co-authored-by: Umberto Baldi <34278123+umbynos@users.noreply.github.com>
2024-04-13 12:33:09 +01:00
Stefan Rueger
ece8652162 Include <ac_cfg.h> instead of "ac_cfg.h"
See 9616b3709c
2024-04-13 00:59:26 +01:00
Stefan Rueger
1a46faaa6e Check all ids of a programmer for exact match 2024-04-13 00:30:24 +01:00
Stefan Rueger
c53a3ed866 Match programmer names irrespective of case 2024-04-13 00:19:01 +01:00
Stefan Rueger
5361668c0e No longer warn when part configuration disables SPI interface
SPI programming cannot disable SPI programming for the part configuration.
Hence. when another programming interface disables SPI that very same
interface can enable SPI again. The warning disabling SPI might brick the
part is therefore incorrect.
2024-04-12 23:28:35 +01:00
Stefan Rueger
3129ba277b Update avrintel based on current atdf 2024-04-12 23:22:17 +01:00
Stefan Rueger
fdfa0ac10e Consult -F option when signature cannot be read 2024-04-12 17:22:22 +01:00
Joerg Wunsch
82928d377d Fix message levels in jtag3_print_data()
These are debugging functions, and not supposed to print at
MSG_INFO level.
2024-04-08 22:20:15 +02:00
Joerg Wunsch
5227dbe689 Fix message levels in jtag3_print_data()
These are debugging functions, and not supposed to print at
MSG_INFO level.
2024-04-08 22:17:51 +02:00
Joerg Wunsch
89d959b6bb Workaround for a quite strange UnicodeDecodeError
Not really understood, but with level MSG_TRACE2, on a Curiosity Nano
board, I get two instances of unicode decode errors within the trace
messages. Trying to debug them did not yield any useful result, but
catching the exception, and enforcing the type to be "str" appear to
be able to continue.

Maybe an internal bug of my Python interpreter, don't know.
2024-04-08 22:03:30 +02:00
Joerg Wunsch
058f900ed2 Enlarge the fuses dialog
Virtually none of the messages would have fit into the small
initial size. Still looking for a more automatic solution,
but enlarging it might be a good first step to get things
better visible.
2024-04-07 23:43:16 +02:00
Joerg Wunsch
e39ad2c1ca Our probe is actually for SWIG + Python3
Indicate so in the final configuration overview.
2024-04-07 23:20:59 +02:00
Joerg Wunsch
57bab83374 Replace deprecated Python distutils by "site" module. 2024-04-07 15:32:45 +02:00
Joerg Wunsch
aab76b9f29 First attempt of establishing an installation process
It installs the Python and .ui files under datadir/avrdude/
(e.g. /usr/bin/share/avrdude/), and a batch or shell script
to call it as avrdude-gui into the normal bin directory.
2024-04-07 13:52:55 +02:00
Joerg Wunsch
01ed0174d5 If the fuse has an alias name, use that as display name
avrX uses names like 'syscfg0' and so on in the datasheet, but
we refer to them as 'fuse<N>' internally.
2024-04-07 10:40:45 +02:00
Joerg Wunsch
56246e5c1c Use correct Python3 CMake variables 2024-04-07 10:09:11 +02:00
Joerg Wunsch
9a8d5c1328 Replace PYTHONLIBS by PYTHON3 in CMakeLists.txt
https://cmake.org/cmake/help/latest/module/FindPython3.html
2024-04-07 09:55:15 +02:00
Joerg Wunsch
b39332d636 Probe for both, PySide6 as well as PySide2
The GUI is supposed to work on both versions.
2024-04-07 08:25:00 +02:00
Joerg Wunsch
b800d16481 Make the AVR logo class-internal data
This allows it to place it at the bottom of the file, so
the top area is not cluttered with lots of binary data.
2024-04-07 08:19:07 +02:00
Joerg Wunsch
6fb142dfee Mention the % pattern in fuse file names. 2024-04-07 08:16:44 +02:00
Joerg Wunsch
0be9a8865d Add help text 2024-04-07 01:07:04 +02:00
Joerg Wunsch
5f3dc74553 Handle fuse names of avrX devices
For avrX devices, fuses are named according to the datasheet,
rather than their internal naming "fuse<N>". So instead, use
the "memoffset" (which corresponds to <N>).
2024-04-07 00:15:32 +02:00
Joerg Wunsch
c03480a7d9 Initialize self.pgm and self.dev 2024-04-06 13:15:27 +02:00
Joerg Wunsch
69672a8470 Handle AVRMEM_ALIAS
Aliases are interesting for generic vs. datasheet names of
avrX fuses
2024-04-05 21:58:41 +02:00
mcuee
306d948bc5 No longer need to use CMAKE_VERBOSE_MAKEFILE 2024-04-05 20:24:56 +08:00
stefanrueger
f2b1c7e6cd Update NEWS 2024-04-05 17:13:23 +13:00
Stefan Rueger
89768468be Merge pull request #1731 from mcuee/avrdude_packing_fix
To use Static Libs for macOS arduino_packing build
2024-04-05 17:11:48 +13:00
Stefan Rueger
a8097eaee3 Merge pull request #1729 from stefanrueger/timestamp
Change return type for avr_(ms|us)timestamp() to uint64_t
2024-04-05 17:10:00 +13:00