Commit Graph

4506 Commits

Author SHA1 Message Date
Stefan Rueger
68d8023b6c Utilise magic memory tree interface for avr910.c 2024-04-18 21:03:30 +01:00
Stefan Rueger
7e3854ff2f Do not use m->desc for memory type: use mem_is_...(m) 2024-04-18 20:58:57 +01:00
Stefan Rueger
f5881e9cd2 Rework butterfly_paged_load()
- Return correct value (number of bytes loaded)
  - Do not use m->desc for memory type: use mem_is_...(m)
2024-04-18 20:56:22 +01:00
Stefan Rueger
924c9b0a38 Rework butterfly_paged_write()
- Return correct value (number of bytes written)
  - Do not use m->desc for memory type: use mem_is_...(m)
2024-04-18 20:47:25 +01:00
Stefan Rueger
45b4f7ab09 Provide PDATA cache for avr910_read_byte_flash() 2024-04-18 20:31:49 +01:00
Stefan Rueger
9ed9053671 Provide meaningful pgm->disable() method
It is customary that pgm->disable() leaves programming mode; as such it is
the closing part of pgm->program_enable()
2024-04-18 19:28:34 +01:00
Stefan Rueger
04956f0dc7 Provide meaningful program_enable() method 2024-04-18 19:24:46 +01:00
Stefan Rueger
89473ccf17 Change error message and return value of avr910_vfy_cmd_sent() 2024-04-18 19:21:47 +01:00
Stefan Rueger
bf37d34002 Explicitly ignore error checks for avr910_drain() 2024-04-18 19:20:17 +01:00
Stefan Rueger
70901f95d8 Check return value of avr910_recv() calls for errors 2024-04-18 19:17:42 +01:00
Stefan Rueger
2e0f666b07 Avoid duplication of butterfly_recv() error message 2024-04-18 18:59:07 +01:00
Stefan Rueger
47e46fc97c Check return value of avr910_send() calls for errors 2024-04-18 18:55:38 +01:00
Stefan Rueger
3de5457718 Utilise magic memory tree interface for butterfly.c 2024-04-18 18:05:03 +01:00
Stefan Rueger
5e221a1fd6 Rework butterfly_write_byte()
- Refactor flash/eeprom writes
  - Emphasise flash/userrow writes not implemented
  - Invalidate read cache (lest it gets forgotten)
2024-04-18 18:05:03 +01:00
Stefan Rueger
010969c197 Rework butterfly_paged_write()
- Invalidate read cache
  - Return correct value (number of bytes written)
  - Do not use m->desc for memory type: use mem_is_...(m)
2024-04-18 18:05:03 +01:00
Stefan Rueger
f027e70cdf Rework butterfly_paged_load()
- Return correct value (number of bytes loaded)
 - Do not use m->desc for memory type: use mem_is_...(m)
2024-04-18 18:05:02 +01:00
Stefan Rueger
9305dae3f5 Move static cache to PDATA for butterfly_read_byte_flash() 2024-04-18 18:05:02 +01:00
Stefan Rueger
7de846054a Provide meaningful program_enable() method
It is customary for progammers to provide an enter-programming-mode method
in  the program_enable() and a leave-programming-mode in disable(). The
former was missing and might be useful for libavrdude applications.
2024-04-18 18:05:02 +01:00
Stefan Rueger
7c958ea306 Change error message in butterfly_vfy_cmd_sent() 2024-04-18 18:05:02 +01:00
Stefan Rueger
470d07c959 Explicitly ignore error checks for butterfly_drain() 2024-04-18 18:05:01 +01:00
Stefan Rueger
cfb040f184 Check return value of butterfly_recv() calls for errors 2024-04-18 18:05:01 +01:00
Stefan Rueger
e579554874 Check return value of butterfly_send() calls for errors 2024-04-18 18:04:49 +01:00
Stefan Rueger
5223750361 Inform gcc that avrdude_message2() has printf-like varargs 2024-04-18 10:58:35 +01: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
Stefan Rueger
8f15ec46dc Remove gcc warning when printf format is ""
This warning only occurs when checking the msg_...() functions for having
the correct parameters. The way I do that is by replacing the avrdude.h
file with one that #defines the msg_... functions to printf for which the
compiler knows which paramaters of which type are expected given that the
format is a string constant. That check, however, produces false alarms
which are not helpful.

This commit switches these unhelpful warnings from gcc off.
2024-04-17 19:50:28 +01:00
Stefan Rueger
4b2c99470a Make default eeprom readback values 0xff for STK500 v1 programmer 2024-04-17 19:12:48 +01:00
Stefan Rueger
73eb16f3c8 Simplify FTDI port printing 2024-04-17 18:36:33 +01:00
Stefan Rueger
33525eff91 Simplify printed string length computation 2024-04-17 18:36:32 +01:00
Stefan Rueger
a65486b756 Simplify snprintf format 2024-04-17 18:36:32 +01:00
Stefan Rueger
bd42d5c07b Reduce scope of pinno variable 2024-04-17 18:36:32 +01:00
Stefan Rueger
be1f7ea5f1 Simplify interface expression 2024-04-17 18:36:32 +01:00
Stefan Rueger
faa1e22fc9 Introduce mmt_free() to free mmt_...() allocated memory 2024-04-17 18:36:31 +01:00
Stefan Rueger
c30a7b2005 Update error message for failed memory allocation 2024-04-17 18:36:31 +01:00
Stefan Rueger
3a41205507 Use mmt_malloc() for PDATA allocation 2024-04-17 18:36:31 +01:00
Stefan Rueger
6d41e6baa3 Move static struct pindef_t valid_pins_others to PDATA 2024-04-17 18:36:31 +01:00
Stefan Rueger
05b1226765 Move static struct pindef_t valid_pins[4] to PDATA 2024-04-17 18:36:30 +01:00
Stefan Rueger
925cb7c8af Adjust white space to exiting costum 2024-04-17 18:36:30 +01:00
Stefan Rueger
47fa0d2dff Move static struct pindef_t valid_pins to PDATA 2024-04-17 18:36:30 +01:00
Stefan Rueger
8fddac70eb Ensure valid buf access 2024-04-17 18:36:30 +01:00
Stefan Rueger
f6842c9000 Bring avrftdi's messaging into the msg_...() fold 2024-04-17 18:36:29 +01:00
Stefan Rueger
a3189140e1 Simplify format selection 2024-04-17 18:35:41 +01:00
Stefan Rueger
b71c29897b Protect buffer from potential overflow 2024-04-17 17:49:30 +01:00
Stefan Rueger
1bfbc2771d Move static char str[] to PDATA 2024-04-17 17:49:12 +01:00
Stefan Rueger
1ae28a7efa Make static functions greppable 2024-04-17 12:18:33 +01:00
Stefan Rueger
8fe729f0a2 Update NEWS 2024-04-17 00:40:54 +01:00
Stefan Rueger
5858898846 Merge pull request #1750 from stefanrueger/static-buspirate
Move static buffer to PDATA region in buspirate.c
2024-04-17 00:38:52 +01:00
Stefan Rueger
6aece29a34 Merge pull request #1749 from stefanrueger/deprecated
Remove deprecated ucr2 part
2024-04-17 00:38:37 +01:00
Stefan Rueger
4761a701ad Merge pull request #1725 from mhei/support-for-libgpiodv2
Add support for libgpiod v2+ API
2024-04-17 00:38:24 +01:00