Commit Graph

4506 Commits

Author SHA1 Message Date
Stefan Rueger
8231b36f85 Merge pull request #1733 from therealdreg/buspirate-hiz-and-pullups
Add buspirate hiz and pullups feature
2024-04-17 00:37:48 +01:00
Stefan Rueger
b00d601f92 Use mmt_malloc() macro instead of cfg_malloc() function 2024-04-17 00:25:07 +01:00
Stefan Rueger
c930a27871 Introduce magic memory tree 2024-04-17 00:23:39 +01: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
Dreg
cfc5c937d7 Update avrdude.texi 2024-04-16 02:39:52 +02:00
Dreg
97cd1aa541 Update avrdude.texi better doc
better doc
2024-04-16 02:37:35 +02:00
Stefan Rueger
9850a8f484 Use cfg_malloc() instead of calloc() 2024-04-16 00:54:59 +01:00
Stefan Rueger
cff9d889ed Make static const array local 2024-04-15 11:53:04 +01:00
Stefan Rueger
a5a94a08df Make static functions greppable 2024-04-15 11:42:22 +01:00
Stefan Rueger
af8d832f38 Make string variables local const 2024-04-15 11:39:20 +01: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
Stefan Rueger
94561c8205 Move static buffer to PDATA region 2024-04-14 22:56:18 +01:00
Michael Heimpold
ea701bc2f5 Add support for libgpiod v2+ API
libgpiod in version 2 or above introduced an API change which results
in compile error with the current code.

This commit adds some glue magic for the newer versions and
tries to detect the used libgpiod version based on the information
available in the pkg-config files.

At the moment, this eliminates the possibility to statically link
against this library.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2024-04-14 23:45:26 +02:00
Stefan Rueger
6488cb6102 Remove deprecated ucr2 part
It's been deprecated for a while now.
2024-04-14 22:24:12 +01: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