Debian Codegraph @

ChangeLog

raw
1 2021-08-23 Joerg Wunsch <[email protected]>
2
3 Submitted by Joris Putcuyps:
4 patch #40 Remove old style exception throw specifier
5 (bug #34 AVaRICE 2.14 won't compile on Arch Linux)
6 * src/jtag2.h: (Dito.)
7 * src/jtag2io.cc: (Dito.)
8 * src/jtag3.h: (Dito.)
9 * src/jtag3io.cc: (Dito.)
10
11 2020-09-17 Joerg Wunsch <[email protected]>
12
13 patch #39 Compilation error in jtag3io.cc: (avarice 2.14)
14 * src/jtag2usb.cc: replace __unused by __attribute__((unused))
15 * src/jtag3io.cc: (Dito.)
16 * src/jtag3prog.cc: (Dito.)
17
18 2020-09-05 Joerg Wunsch <[email protected]>
19
20 * configure.ac: Bump release number to post-2.14
21
22 2020-09-05 Joerg Wunsch <[email protected]>
23
24 * configure.ac: Bump release number to 2.14
25
26 2020-08-31 Joerg Wunsch <[email protected]>
27
28 bug #22 Unknown device is not clearly named
29 * src/avarice.h: Declare unknownDevice()
30 * src/utils.cc (unknownDevice): New function
31 * src/jtagio.cc (jtag1::deviceAutoConfig): Use unknownDevice()
32 * src/jtag2io.cc (jtag2::deviceAutoConfig): Use unknownDevice()
33 * src/jtag3io.cc (jtag3::deviceAutoConfig): Use unknownDevice()
34
35 2020-08-31 Joerg Wunsch <[email protected]>
36
37 Submitted by Ryan Schmidt:
38 bug #25 error: use of undeclared identifier 'bfd_get_section_name'
39 * src/jtagprog.cc: Supply fallbacks for deprecated bfd functions
40 * src/jtag2prog.cc: (Dito.)
41
42 2020-08-31 Joerg Wunsch <[email protected]>
43
44 Submitted by Jack Bradach:
45 bug #21 Deprecated feature used as example of Avarice use
46 * src/main.cc (usage): update example usage
47
48 2020-08-31 Joerg Wunsch <[email protected]>
49
50 * src/jtag2prog.cc: Silence warnings
51 * src/jtag2usb.cc: Silence warnings
52 * src/jtag3io.cc: Silence warnings
53 * src/jtag3prog.cc: Silence warnings
54 * src/jtag3run.cc: Silence warnings
55 * src/jtagprog.cc: Silence warnings
56
57 2020-08-31 Joerg Wunsch <[email protected]>
58
59 Submitted by MJH:
60 patch #26 Fix build error if ENABLE_TARGET_PROGRAMMING is on
61 * src/jtag2prog.cc: Include "autoconf.h"
62 * src/jtagprog.cc: (Dito.)
63
64 2020-08-31 Joerg Wunsch <[email protected]>
65
66 Submitted by Christian Kastner:
67 patch #30 Man page fixes
68 patch #31 Spelling fixes
69 patch #32 Man pages for start-avarice
70 patch #33 Man page for kill-avarice
71 * doc/avarice.1: Minor fixes
72 * doc/ice-gdb.1: (Dito.)
73 * doc/start-avarice.1: (New file)
74 * doc/kill-avarice.1: (New file)
75 * src/jtag2misc.cc: Spelling ("paramater" => "parameter")
76 * src/jtag3misc.cc: (Dito.)
77 * doc/Makefile.am (man_MANS): Add new man pages
78
79 2020-08-30 Joerg Wunsch <[email protected]>
80
81 Submitted by Mark Rages and nichtleiter:
82 patch #25 adds atxmega32e5
83 patch #37 Add support for atxmega8e5
84 * src/devdescr.cc (ATxmega8E5, ATxmega32E5) New entries
85
86 2020-08-30 Joerg Wunsch <[email protected]>
87
88 * src/jtag.h: Fix inconsistent naming between struct
89 and class jtag
90
91 2020-08-30 Joerg Wunsch <[email protected]>
92
93 Submitted by Uwe Frank:
94 patch #38 Patch to support XMEGA64A3
95 * src/devdescr.cc (ATxmega64A3): New entry
96
97 2020-08-29 Joerg Wunsch <[email protected]>
98
99 Submitted by Tobias Frost:
100 patch #35 configure.ac overwrites variable if both ...
101 * configure.ac: Avoid clobbering AM_CPPFLAGS
102
103 2018-10-15 Joerg Wunsch <[email protected]>
104 Submitted by Fabian Blaese:
105 * src/devdescr.cc (ATmega48P, ATmega88P, ATmega168P,
106 ATmega328P, ATtiny24, ATtiny44, ATtiny84): add addresses for
107 IDR and SPMCR so software breakpoints will work
108
109 2018-10-15 Joerg Wunsch <[email protected]>
110 * doc/avarice.1: Update to match reality
111
112 2016-04-18 Joerg Wunsch <[email protected]>
113
114 * src/jtag2usb.cc (openhid): Correctly calculate the part
115 of the (HID) serial number to compare with
116
117 2016-03-03 Joerg Wunsch <[email protected]>
118
119 * src/jtag2prog.cc (jtag2::eraseProgramMemory): bail out if
120 running on debugWIRE
121 * src/jtag3prog.cc (jtag3::eraseProgramMemory): (Dito.)
122
123 2016-03-03 Joerg Wunsch <[email protected]>
124
125 * src/jtag2rw.cc(jtag2::jtagWrite): omit chip erase when
126 operating on debugWIRE
127 * src/jtag3rw.cc(jtag3::jtagWrite): (Dito.)
128
129 2016-03-03 Joerg Wunsch <[email protected]>
130
131 * src/jtag3.h: Mark jtag3::doSimpleJtagCommand() as throwing
132 exceptions
133 * src/jtag3rw.cc: (Dito.)
134
135 2016-03-02 Joerg Wunsch <[email protected]>
136
137 * src/jtag2usb.cc (hid_thread): Support packet fragmentation and
138 assembly (for mEDBG).
139
140 2016-03-01 Joerg Wunsch <[email protected]>
141
142 * src/jtag2usb.cc: Determine max. transfer size from DAP_Info
143 response
144
145 2016-02-29 Joerg Wunsch <[email protected]>
146
147 * configure.ac: Bump version date after merging jwunsch_edbg
148 branch back into trunk
149
150 2016-02-29 Joerg Wunsch <[email protected]>
151
152 * src/main.cc: Improve explanation of -4 option, default EDBG to
153 USB, and set debug output to line buffered mode
154 * src/jtag2usb.cc: Fix packet size when passing event upstream
155
156 2016-02-26 Joerg Wunsch <[email protected]>
157
158 * src/jtag2usb.cc: Implement libhidapi support for EDBG-based ICEs
159
160 2016-02-22 Joerg Wunsch <[email protected]>
161
162 * configure.ac: Add hooks for libhidapi
163
164 2015-06-24 Joerg Wunsch <[email protected]>
165
166 Submitted by Uwe Frank <[email protected]>
167 * src/devdescr.cc (ATxmega192A3): New entry
168 * doc/avarice.1: Document the new entry.
169
170 2015-05-18 Joerg Wunsch <[email protected]>
171
172 Submitted by Tobias Frost <[email protected]>:
173 Bug #34 Fix compilation with GCC 5
174 * src/pragma.h: Fix pragmas for GCC > 4
175
176 2014-12-10 Joerg Wunsch <[email protected]>
177
178 * configure.ac: Bump version date.
179
180 2014-10-13 Joerg Wunsch <[email protected]>
181
182 * src/remote.cc (monitor): implement a "mon reset" command.
183
184 2014-09-19 Joerg Wunsch <[email protected]>
185
186 * tools/edbg.lua: New file.
187
188 2013-06-29 Joerg Wunsch <[email protected]>
189
190 * src/jtag3bp.cc (jtag3::updateBreakpoints): don't accidentally
191 truncate code breakpoints to 64 KiB
192
193 2013-04-24 Joerg Wunsch <[email protected]>
194
195 * src/jtag2rw.cc (jtagRead, jtagWrite): Handle Xmega page sizes of
196 more than 256 bytes which need to be split into multiple transfers
197 on the JTAGICEmkII.
198
199 2013-04-16 Joerg Wunsch <[email protected]>
200
201 * src/remote.cc (talkToGdb): When returning a memory map to GDB,
202 treat the possible EEPROM range just like normal RAM, so GDB
203 won't refuse to load it.
204
205 2013-03-19 Joerg Wunsch <[email protected]>
206
207 * src/devdescr.cc (ATmega256RFR2, ATmega2564RFR2, ATmega128RFR2,
208 ATmega1284RFR2, ATmega64RFR2, ATmega644RFR2):
209 New devices
210 * src/ioreg.cc (atmega256rfr2_io_registers): New entry, used for
211 all of the ATmega*RFR2 devices.
212 * src/ioreg.h: (Dito.)
213
214 2013-02-08 Joerg Wunsch <[email protected]>
215
216 * src/jtag2usb.cc: Turn the write operation of the packet length
217 and the packet itself into an atomic one when writing to the
218 upstream pipe, in order to avoid a race condition when handling
219 JTAGICE3 event messages.
220
221 2013-01-11 Joerg Wunsch <[email protected]>
222
223 * src/jtag3run.cc (jtag3::getProgramCounter): Add some ugly hack
224 to work around problems single-stepping a SLEEP instruction
225 * src/jtag3rw.cc (jtag3::jtagRead): (Dito.)
226
227 2013-01-11 Joerg Wunsch <[email protected]>
228
229 * src/jtag3io.cc (jtag3::setDeviceDescriptor): avoid an overly
230 aggressive compiler optimization on a parameter struct d3
231
232 2013-01-11 Joerg Wunsch <[email protected]>
233
234 * src/jtag2rw.cc (jtag2::jtagRead): delete response before throwing
235 out
236 * src/jtag3rw.cc (jtag3::jtagRead): (Dito.)
237
238 2013-01-10 Joerg Wunsch <[email protected]>
239
240 * src/jtagrw.cc (jtag1::jtagRead): When attempting to read more than
241 256 bytes, throw an exception rather than returning a nonsensical
242 value.
243 * src/jtag3io.cc (jtag3::startJtagLink): Fix an off-by-one error
244 when preparing the AVR sign-on command.
245 * src/jtag2usb.cc (opendev): fix devnamecopy deletion.
246
247 2013-01-09 Joerg Wunsch <[email protected]>
248
249 * src/jtag3io.cc (initJtagOnChipDebugging): reenable CMD3_START_DEBUG
250 for Xmega (even over JTAG)
251
252 2013-01-09 Joerg Wunsch <[email protected]>
253
254 * doc/avarice.1: Document the JTAGICE3 support.
255 * src/main.cc (usage): (Dito.)
256
257 2013-01-09 Joerg Wunsch <[email protected]>
258
259 * src/main.cc (makeSocket): Be a little more verbose if bind()
260 failed with EADDRINUSE.
261
262 2013-01-08 Joerg Wunsch <[email protected]>
263
264 * src/jtaggeneric.cc: Remove enableProgramming()/disableProgramming()
265 calls in fuse handling; the respective backend jtagRead()/jtagWrite()
266 functions are in charge of deciding whether they need a programming
267 mode or not
268 * src/jtag3io.cc: fix device ID recognition when operating on
269 debugWIRE targets; activate the #ifdef'ed out jtagActivateOcdenFuse
270 call; only call CMD3_START_DEBUG for debugWIRE; at the end of
271 initialization, attempt resetProgram() a second time if the first
272 time failed (appears to be needed after just activating the OCDEN
273 fuse)
274
275 2013-01-08 Joerg Wunsch <[email protected]>
276
277 * src/jtag3rw.cc(jtag3::jtagWrite): fix off-by-one error that lead
278 to writing wrong data
279 * src/remote.cc: Implement GDB 7+ flash write protocol
280
281 2013-01-07 Joerg Wunsch <[email protected]>
282
283 * src/remote.cc: Implement the "monitor" GDB command.
284
285 2013-01-07 Joerg Wunsch <[email protected]>
286
287 * src/jtag.h (struct breakpoint2): Introduce the has_mask flag.
288 * src/jtaggeneric.cc: Fix the logic to commit data mask breakpoints
289 to the ICE.
290
291 2013-01-07 Joerg Wunsch <[email protected]>
292
293 * src/jtag2io.cc: Centralize addBreakpoint(), deleteBreakpoint(),
294 and layoutBreakpoints() as they are common between the JTAGICE mkII
295 and JTAGICE3.
296 * src/jtag2.h: (Dito.)
297 * src/jtag3.h: (Dito.)
298 * src/jtag.h: (Dito.)
299 * src/jtag2bp.cc: (Dito.)
300 * src/jtag3io.cc: (Dito.)
301 * src/jtaggeneric.cc: (Dito.)
302 * src/jtag3bp.cc: (Dito.)
303
304 2013-01-07 Joerg Wunsch <[email protected]>
305
306 * jtag.h: Remove codeBreakpointBetween() and stopAt() methods
307 * jtag1.h: (Dito.)
308 * jtag2.h: (Dito.)
309 * jtag3.h: (Dito.)
310 * jtagbp.cc: (Dito.)
311 * jtagio.cc: (Dito.)
312 * jtag2bp.cc: (Dito.)
313 * jtag2io.cc: (Dito.)
314 * jtag3bp.cc: (Dito.)
315 * jtag3io.cc: (Dito.)
316
317 2013-01-04 Joerg Wunsch <[email protected]>
318
319 * configure.ac (AC_INIT): Bump version.
320
321 2013-01-04 Joerg Wunsch <[email protected]>
322
323 Bring in the initial JTAGICE3 support. Not quite everything is
324 working, but it's good enough for a start.
325 * src/jtag.h: Add parameter structure for ICE3.
326 * src/jtag2.h: Move enum debugproto and class jtag_io_exception
327 out into jtag.h as the ICE3 also uses them.
328 * src/main.cc: Add the -3/--jtag3 option, and handle jtag3 object
329 instanciation
330 * src/devdescr.cc: Add osccal and ocdrev fields to each record.
331 * src/jtaggeneric.cc: extend default contructor.
332 * src/Makefile.am: Add new files to infrastructure.
333 * configure.ac: Swap check for pthread and C++ compiler, so the
334 CXXFLAGS get set correctly (-g -O2).
335 * src/jtag3prog.cc: New file.
336 * src/jtag3.h: (Dito.)
337 * src/jtag3misc.cc: (Dito.)
338 * src/jtag3run.cc: (Dito.)
339 * src/jtag3io.cc: (Dito.)
340 * src/jtag2usb.cc: (Dito.)
341 * src/jtag3rw.cc: (Dito.)
342 * src/jtag3bp.cc: (Dito.)
343 * tools/pdml.xsl: Add timestamp to output.
344
345 2013-01-01 Joerg Wunsch <[email protected]>
346
347 * src/jtagrw.cc (jtag1::jtagRead): throw a jtag_exception
348 rather than returning a NULL pointer if the ICE's response
349 is not JTAG_R_OK.
350
351 2012-12-27 Joerg Wunsch <[email protected]>
352
353 * configure.ac: Add hooks to detect libusb20 API (on FreeBSD)
354 * src/jtag2usb.cc: Use libusb20 API if present; the libusb-0.1
355 emulation that sits on top of it in FreeBSD 8+ doesn't allow for
356 the kind of multithreading used here.
357
358 2012-12-16 Joerg Wunsch <[email protected]>
359
360 Submitted by Martin Cerveny:
361 Bug #15 usblib timeouts does not work correctly on solaris platforms
362 * src/jtag2usb.cc: Rewrite the USB daemon into Posix threads.
363 * src/jtag2io.cc: (Dito.)
364 * src/jtag.h: (Dito.)
365 * src/jtag2run.cc: (Dito.)
366 * src/jtaggeneric.cc: (Dito.)
367 * m4_ax_pthread.m4: New file (pthread glue)
368 * configure.ac: Include pthread detection.
369
370 2012-12-16 Joerg Wunsch <[email protected]>
371
372 * src/jtag2io.cc (jtag2_io_exception::jtag2_io_exception):
373 Fix a typo.
374
375 2012-12-06 Joerg Wunsch <[email protected]>
376
377 * src/jtag2usb.cc (usb_daemon): Restructure the receiver
378 logic so it no longer depends on the JTAGICEmkII message
379 length indication.
380
381 2012-11-20 Joerg Wunsch <[email protected]>
382
383 * tools/ocdrev.xsl: Extract OCD_REVISION out of Atmel Studio
384 6.x XML device files
385
386 2012-11-15 Joerg Wunsch <[email protected]>
387
388 * tools/pdml.xsl: New XSLT stylesheet to analyze Wireshark
389 USB traces exported as PDML data
390
391 2012-11-05 Joerg Wunsch <[email protected]>
392
393 * configure.ac: Bump version for post-release 2.13
394
395 2012-11-05 Joerg Wunsch <[email protected]>
396
397 * configure.ac: Bump version for release 2.13
398
399 2012-11-05 Joerg Wunsch <[email protected]>
400
401 Contributed by Martin Cerveny (patch #3495107):
402 Add IO register info for a large number of mega and tiny AVRs
403 * src/devdescr.cc: add pointers to IO register definitions
404 * src/ioreg.h: add declarations for the IO register definitions,
405 extend "reg_addr" to "unsigned int" to accomodate space for the
406 IO registers in newer AVRs
407 * src/ioreg.cc: add new IO register definitions
408
409 2012-11-05 Joerg Wunsch <[email protected]>
410
411 Contributed by Chris Thunes (patch #3497114):
412 * src/jtag2prog.cc (jtag2::eraseProgramMemory): Use
413 CMND_XMEGA_ERASE to erase Xmega program memory
414 * src/jtag_defs.h: add CMND_XMEGA_ERASE
415 * src/jtag.h: (Dito)
416
417 2012-11-05 Joerg Wunsch <[email protected]>
418
419 Contributed by Chris Thunes (patch #3497114):
420 * src/jtag2rw.cc (jtag2::memorySpace): Return the correct
421 memory type for Xmega write operations.
422
423 2012-11-05 Joerg Wunsch <[email protected]>
424
425 Contributed by Mihai Hagianu (patch #3496094): add ATxmega128A3
426 Contributed by Chris Thunes (patch #3497114): add ATxmega32A4
427 * src/devdescr.cc (ATxmega32A4, ATxmega128A3): new entries
428 * doc/avarice.1: Document new devices.
429
430 2012-11-02 Joerg Wunsch <[email protected]>
431
432 * configure.ac: In AC_LINK_IFELSE, use AC_LANG_SOURCE for the
433 source code to be compiled, in order to silence a warning.
434 Bump version to svn20121102.
435
436 2012-11-02 Joerg Wunsch <[email protected]>
437
438 Deprecate target ELF file programming (downloading).
439 * configure.ac: Implement the --enable-target-programming
440 configuration option; disabled by default. No longer require
441 the presence and usability of libbfd if not configured for
442 the target programming feature.
443 * src/main.cc: Disable --file, --program, and --verify
444 unless ENABLE_TARGET_PROGRAMMING is in effect.
445 * src/jtag2prog.cc: Turn the downloadTarget method into a
446 dummy unless ENABLE_TARGET_PROGRAMMING is in effect; remove
447 all dependencies from bfd.h / libbfd otherwise.
448 * src/jtagprog.cc: (Dito.)
449 * doc/avarice.1: Document that --file, --program, and --verify
450 are deprecated, and no longer enabled by default
451
452 2012-11-02 Joerg Wunsch <[email protected]>
453
454 * tools/devdescr.xsl: update for recent changes of src/jtag.h:
455 generate fuses, and an empty Xmega device descriptor
456
457 2012-11-02 Joerg Wunsch <[email protected]>
458
459 * src/devdescr.cc: Added megaM1 and megaC1 device: ATmega16M1,
460 ATmega64M1, ATmega64C1
461 * doc/avarice.1: Document new devices.
462
463 2012-07-31 Canyon Bliss <[email protected]>
464
465 * doc/avarice.1: Updated list of devices.
466 * src/devdescr.cc: Added xmegaB devices: ATxmega128B1, ATxmega128B3,
467 ATxmega64B1, ATxmega64B3.
468
469 2012-01-18 Joerg Wunsch <[email protected]>
470
471 * configure.ac: Add a test whether libbfd requires libdl; fix
472 the broken (always positive) test for libz as well.
473
474 2011-12-15 Joerg Wunsch <[email protected]>
475
476 * doc/avarice.1: Drop the remark that software breakpoints were
477 currently not supported: they are.
478
479 2011-12-15 Joerg Wunsch <[email protected]>
480
481 * doc/avarice.1: Update list of devices.
482
483 2011-12-15 Joerg Wunsch <[email protected]>
484
485 * src/jtag2.h: Keep track of whether starting a debugging session
486 with the ICE actually succeeded, and only ever attempt to send a
487 CMND_RESTORE_TARGET in that case. Sending it without a debugWIRE
488 session succeeded (e.g. since the DWEN fuse wasn't active) might
489 screw up the ICE's firmware.
490 * src/jtag2io.cc: (Dito.)
491
492 2011-12-12 Joerg Wunsch <[email protected]>
493
494 (Merging branch /branches/jwunsch_except/avarice)
495 * src/jtag.h: Remove the restoreTarget parameter from the
496 resumeProgram() method again; target restoration upon GDB
497 disconnect is now being handled properly by catching the exception
498 thrown in that case, through the destruction of theJtagICE object.
499 * src/jtag1.h: (Dito.)
500 * src/jtag2.h: (Dito.)
501 * src/remote.cc: (Dito.)
502 * src/jtag2io.cc: (Dito.)
503 * src/jtag2run.cc: (Dito.)
504 * src/jtagrun.cc: (Dito.)
505
506 2011-12-12 Joerg Wunsch <[email protected]>
507
508 (Merging branch /branches/jwunsch_except/avarice)
509 * src/remote.cc: Rearrange the entire error handling to use
510 exceptions, rather than a mix between error code returns, and
511 prematurely exiting the program from deep inside, without any
512 attempt to cleanup the JTAG ICE connection status. Get rid of all
513 those scary check(), unixCheck() and jtagCheck() functions, catch
514 exceptions where it makes sense.
515 * src/remote.h: (Dito.)
516 * src/jtag2io.cc: (Dito.)
517 * src/jtagmisc.cc: (Dito.)
518 * src/jtag1.h: (Dito.)
519 * src/jtag2.h: (Dito.)
520 * src/avarice.h: (Dito.)
521 * src/jtagio.cc: (Dito.)
522 * src/jtag2rw.cc: (Dito.)
523 * src/main.cc: (Dito.)
524 * src/jtag.h: (Dito.)
525 * src/jtag2bp.cc: (Dito.)
526 * src/jtag2run.cc: (Dito.)
527 * src/jtagrw.cc: (Dito.)
528 * src/jtag2prog.cc: (Dito.)
529 * src/utils.cc: (Dito.)
530 * src/jtagbp.cc: (Dito.)
531 * src/jtagrun.cc: (Dito.)
532 * src/jtagprog.cc: (Dito.)
533 * src/jtag2usb.cc: (Dito.)
534 * src/jtaggeneric.cc: (Dito.)
535 * src/jtag2misc.cc: (Dito.)
536
537 2011-12-12 Joerg Wunsch <[email protected]>
538
539 * configure.ac: Bump version for post-release.
540
541 2011-12-12 Joerg Wunsch <[email protected]>
542
543 * configure.ac: Bump version for release 2.12.
544
545 2011-12-12 Joerg Wunsch <[email protected]>
546
547 * src/devdescr.cc (atxmega16d4): new entry
548
549 2011-12-09 Joerg Wunsch <[email protected]>
550
551 * src/jtag2io.cc (jtag2::startJtagLink): external reset is
552 only applicable to the JTAG protocol
553
554 2011-12-09 Joerg Wunsch <[email protected]>
555
556 * src/jtag2io.cc (jtag2::initJtagOnChipDebugging): ensure the
557 device went once through a programming-mode cycle, as at least
558 firmware 7.13 otherwise gets royally confused on Xmega devices.
559
560 2011-12-09 Joerg Wunsch <[email protected]>
561
562 * src/jtag2io.cc (jtag2::startJtagLink): set the signedIn flag
563 as soon as we succeeded with synchronizeAt() (which has sent
564 the sign-on message), so we properly say good-bye afterwards
565
566 2011-12-08 Joerg Wunsch <[email protected]>
567
568 * src/jtag2run.cc (jtag2::resetProgram): Fix a logic error
569 introduced in r259.
570
571 2011-12-07 Joerg Wunsch <[email protected]>
572
573 * src/jtag2usb.cc (opendev): Don't attempt to free(serno); it's
574 the result of strchr() rather than any kind of memory allocation
575 operation.
576
577 2011-12-05 Joerg Wunsch <[email protected]>
578
579 * src/jtag.h: Get rid of bogus fuse definition enum values
580 (would only match on some devices anyway); bump
581 MAX_FLASH_PAGE_SIZE and MAX_EEPROM_PAGE_SIZE for Xmega (though
582 that's currently not really usable).
583 2011-12-05 Joerg Wunsch <[email protected]>
584
585 * src/jtag.h: Get rid of the global variable global_p_device_def,
586 replacing it by public member deviceDef
587 * src/remote.cc: (Dito.)
588 * src/jtag2io.cc: (Dito.)
589 * src/jtagio.cc: (Dito.)
590 * src/jtag2rw.cc: (Dito.)
591 * src/jtag2bp.cc: (Dito.)
592 * src/devdescr.cc: (Dito.)
593 * src/jtaggeneric.cc: (Dito.)
594
595 2011-12-05 Joerg Wunsch <[email protected]>
596
597 Major overhaul of the fuse handling.
598 * src/jtag.h: add device config parameters `fusemap' and
599 `ocden_fuse'; add method jtagActivateOcdenFuse() to centralize the
600 OCDEN fuse activation
601 * src/devdescr.cc: add fusemap and ocden_fuse values
602 * src/jtaggeneric.cc: implement jtagActivateOcdenFuse(), restrict
603 jtagWriteFuses() to non-Xmega devices, make jtagDisplayFuses()
604 display Xmega fuses correctly
605 * src/jtagio.cc (initJtagOnChipDebugging): resort OCDEN activation
606 to jtagActivateOcdenFuse()
607 * src/jtag2io.cc (initJtagOnChipDebugging): (Dito.)
608
609 2011-12-05 Joerg Wunsch <[email protected]>
610
611 Implement PDI debugging for the JTAGICEmkII (and AVR Dragon) and
612 Xmega devices. This is basically the same as JTAG, except for the
613 different ICE initialization.
614 * src/jtag.h: add EMULATOR_MODE_PDI
615 * src/jtag2.h: add an enum debugproto
616 * src/jtag2io.cc: handle the `proto' field
617 * src/jtag2rw.cc: (Dito.)
618 * src/jtag2bp.cc: (Dito.)
619 * src/jtag2run.cc: (Dito.)
620 * src/jtag2prog.cc: (Dito.)
621 * src/devdescr.cc (atxmega128a1_revd): fix is_xmega field
622 * src/main.cc: implement new -X (--pdi) option
623 * doc/avarice.1: document the new option
624
625 2011-12-02 Joerg Wunsch <[email protected]>
626
627 * configure.ac: Bump version to 2.12.rc1.
628
629 2011-12-02 Joerg Wunsch <[email protected]>
630
631 * src/jtag2usb.cc (dummyhandler): Put into #if defined(O_ASYNC),
632 because it is only used in that case.
633
634 2011-12-02 Joerg Wunsch <[email protected]>
635
636 * src/jtag.h (statusAreaAddress, cpuRegisterAreaAddress): put
637 the "const" qualifier into the correct place
638 * src/jtag1.h: (Dito.)
639 * src/jtag2.h: (Dito.)
640
641 2011-12-02 Joerg Wunsch <[email protected]>
642
643 * src/jtag2.h (BREAKPOINT2_XMEGA_UNAVAIL): new constant
644 * src/jtag2bp.cc: Use BREAKPOINT2_XMEGA_UNAVAIL, rather than using
645 a magic number; fill in BP info for CMND_SET_BREAK even though AVR
646 Studio doesn't appear to use it (but it's consistent with the
647 non-Xmega code that way)
648
649 2011-12-02 Joerg Wunsch <[email protected]>
650
651 * src/jtag.h (enum bpType): Drop the HAS_MASK flag value, also
652 remove the unused SOFTCODE value.
653 * src/jtag2bp.cc: Remove all occurences of HAS_MASK; data
654 breakpoints (aka. watchpoints) do always have a mask associated
655 once they have been instantiated, so there's no need to extra flag
656 this. The flagging completely violated the purpose of an enum
657 type (abusing it as an `int'), causing missed BP type matches in
658 some situations (e.g. when deleting a watchpoint). Also mask off
659 the internal flag bits (0x800000) from a data breakpoint before
660 sending it to the ICE, rather than trying to send the internal
661 address to the ICE. Sending the full internal address to the ICE
662 has been a mistake straight from the beginning even though it
663 apparently used to work, but recent firmware versions appear to
664 fully store the 24-bit address, causing the data breakpoint to
665 never match.
666
667 2011-12-01 Joerg Wunsch <[email protected]>
668
669 * src/jtag.h: In jtag::resumeProgram(), add a new optional
670 parameter "restoreTarget" to allow for a more graceful
671 shutdown.
672 * src/jtag1.h: (Dito.)
673 * src/jtag2.h: (Dito.)
674 * src/jtag2run.cc: (Dito.)
675 * src/jtagrun.cc: (Dito.)
676 * src/remote.cc: Gracefully shut down when GDB disconnects.
677
678 2011-12-01 Joerg Wunsch <[email protected]>
679
680 * src/devdescr.cc (attiny4313): New entry.
681
682 2011-11-30 Joerg Wunsch <[email protected]>
683
684 * src/jtagio.cc (jtag1::initJtagOnChipDebugging): Drop the
685 attempt to clear the lock bits; it's useless anyway, as the
686 lockbits can only be cleared by a chip erase.
687 * src/jtag2io.cc (jtag2::initJtagOnChipDebugging): (Dito.)
688
689 2011-11-30 Joerg Wunsch <[email protected]>
690
691 * src/devdescr.cc (atxmega256a3): New entry.
692
693 2011-11-30 Joerg Wunsch <[email protected]>
694
695 * src/jtag.h (xmega_device_desc_type): eeprom_page_size is
696 only one byte
697 * src/devdescr.cc (atxmega128a1, atxmega128a1revd): (Dito.)
698
699 2011-11-29 Joerg Wunsch <[email protected]>
700
701 * src/jtag2.h: Introduce jtag2:xmegaSendBPs().
702 * src/jtag2bp.cc: Move out the CMND_SET_BREAK_XMEGA into
703 jtag2:xmegaSendBPs(), as this needs to be issued in front
704 of any single-step or run command.
705 * src/jtag2run.cc: Call jtag2:xmegaSendBPs() where
706 necessary.
707
708 2011-11-29 Joerg Wunsch <[email protected]>
709
710 Contributed by Detlev Kraft:
711 * doc/avr-studio-5-detlev-kraft.pdf: New file, added with
712 Detlev's kind permission. (Sorry, German language only.)
713
714 2011-11-25 Joerg Wunsch <[email protected]>
715
716 * src/jtag2.h: Implement a "cached PC" to avoid re-requesting
717 the PC value from the ICE over and over again.
718 * src/jtag2run.cc: Cache the PC value obtained from the ICE.
719 For actions that are expecting a BREAK event, catch the
720 expected event immediately, and use the PC value obtained
721 from that event. Fork out jtag2::expectEvent() into a method
722 of its own to centralize the code for it (this logic used to
723 live inside jtag2::eventLoop() before).
724
725 2011-11-25 Joerg Wunsch <[email protected]>
726
727 * src/jtag2io.cc (jtag2::doJtagCommand): Slightly improve the
728 change from rev 240: don't attempt to retry definitively
729 rejected commands; do not attempt to perform USB endpoint
730 resets when the communication went fine but the result was
731 not the expected one.
732
733 2011-11-24 Joerg Wunsch <[email protected]>
734
735 * src/jtag.h: Add definition for MTYPE_XMEGA_APP_FLASH (thanks
736 to Detlev's findings, again)
737 * src/jtag2rw.cc: Implement MTYPE_XMEGA_APP_FLASH access, and
738 fix MTYPE_XMEGA_REG access (must not enable programming mode).
739
740 2011-11-24 Joerg Wunsch <[email protected]>
741
742 Based on Detlev Kraft's guesses (many thanks to him again!),
743 implement the new Xmega device descriptor setting for V7+
744 firmware.
745 * src/jtag.h: define xmega_device_desc_type
746 * src/devdescr.cc: implement xmega_device_desc_type for
747 ATxmega128A1(+revD)
748 * src/jtag2io.cc: providing the firmware supports it, use
749 xmega_device_desc_type rather than jtag2_device_desc_type when
750 talking to an Xmega device
751
752 2011-11-23 Joerg Wunsch <[email protected]>
753
754 Attempt to implement some basic Xmega support for firmware
755 revisions 7.x and above, i.e. AVR Studio 5 firmware. Many thanks
756 to Detlev Kraft for providing me with the details from his
757 reengineering effort!
758 * src/jtag.h: Add two new undocumented commands for Xmegas.
759 * src/jtag2.h: Add the has_full_xmega_support feature flag.
760 * src/jtag2io.cc: Determine whether the firmware is recent enough
761 for has_full_xmega_support (>= 7.x).
762 * src/jtag2bp.cc: Use CMND_SET_BREAK_XMEGA for the first two
763 Xmega breakpoints, and software BPs for the rest.
764
765 2011-11-21 Joerg Wunsch <[email protected]>
766
767 * src/jtag.h: Add REGISTER_SPACE_ADDR_OFFSET and the corresponding
768 MTYPE_XMEGA_REG; add statusAreaAddress and cpuRegisterAreaAddress
769 methods to cope with Xmega vs. megaAVR differences.
770 * src/jtag1.h: Implement statusAreaAddress and
771 cpuRegisterAreaAddress methods, respectively.
772 * src/jtag2.h: (Ditto.)
773 * src/remote.cc: Replace magic constants by calls to the
774 statusAreaAddress and cpuRegisterAreaAddress methods,
775 respectively.
776
777 2011-11-21 Joerg Wunsch <[email protected]>
778
779 * src/jtag2io.cc (jtag2::doJtagCommand): Be more liberal in
780 retrying failed commands (memory and PC read).
781 * src/jtag2rw.cc (jtag2::jtagRead): (Ditto.)
782 * src/jtag2run.cc (jtag2::getProgramCounter): (Ditto.)
783
784 2011-11-21 Joerg Wunsch <[email protected]>
785
786 Moved from CVS to SVN on sourceforge.net.
787
788 2011-08-30 Joerg Wunsch <[email protected]>
789
790 Feature Requests #3289022: Allow for the same device designations
791 as avrdude
792 * doc/avrdude.1 (-P): Document that AVaRICE normally autodetects
793 the target device, and -P acts as an override only.
794
795 2011-08-30 Joerg Wunsch <[email protected]>
796
797 * configure.ac: Bump version for post-release 2.11.
798
799 2011-08-30 Joerg Wunsch <[email protected]>
800
801 * configure.ac: Bump version for release 2.11.
802
803 2011-08-30 Joerg Wunsch <[email protected]>
804
805 Patch #2842235: Fix segfault when programming with .fuses section
806 * src/jtagprog.cc (get_section_addr): Return 0xffffffff for unknown
807 section memory types, so sections like .fuses will be silently
808 ignored.
809 * src/jtag2prog.cc (get_section_addr): (Ditto.)
810
811 2011-08-30 Joerg Wunsch <[email protected]>
812
813 Submitted by Andrew Zabolotny:
814 Patch #2995091: Fix gcc 4.4.1 warnings
815 Actually, I went a lot further, and made it completely -Wall -Wextra
816 clean for GCC 4.x. (GCC 3.x users might want to use --disable-warnings
817 in configure.)
818 * configure.ac: Add --enable-warnings option.
819 * src/pragma.h: New file, #pragma abstraction
820 * src/jtag.h: Include "pragma.h" so it's universally usable
821 * src/Makefile.am (avarice_SOURCES): Add pragma.h.
822 * src/devdescr.cc: Silence compiler warnings.
823 * src/gnu_getopt.c: (Ditto.)
824 * src/jtag2.h: (Ditto.)
825 * src/jtag2bp.cc: (Ditto.)
826 * src/jtag2io.cc: (Ditto.)
827 * src/jtag2prog.cc: (Ditto.)
828 * src/jtag2run.cc: (Ditto.)
829 * src/jtag2usb.cc: (Ditto.)
830 * src/jtagbp.cc: (Ditto.)
831 * src/jtaggeneric.cc: (Ditto.)
832 * src/jtagio.cc: (Ditto.)
833 * src/jtagprog.cc: (Ditto.)
834 * src/jtagrw.cc: (Ditto.)
835 * src/main.cc: (Ditto.)
836 * src/remote.cc: (Ditto.)
837
838 2011-08-30 Joerg Wunsch <[email protected]>
839
840 Patch #2842239: Fix for deprecated string warning
841 * src/jtag2prog.cc (jtag2::downloadToTarget): Turn "target" and
842 "default_target" const to eliminate a compiler warning.
843
844 2011-05-06 Eric B. Weddington <[email protected]>
845
846 Patch #3298045.
847 * devdescr.cc: Fix device IDs for ATmega325P and ATmega3250P.
848
849 2009-08-26 Shaun Jackman <[email protected]>
850
851 * configure.ac: add bfd_object() to the check whether libbfd
852 requires libz.
853
854 2009-06-25 Joerg Wunsch <[email protected]>
855
856 bug 2812023: build failed with gcc 4.4.0
857 * src/jtag2usb.cc (opendev): make a local copy of jtagDeviceName,
858 and then operate on that copy instead of trying to modify a const
859 object.
860
861 2009-05-15 Joerg Wunsch <[email protected]>
862
863 * src/devdescr.cc (ATmega128RFA1): update the number of
864 interrupt vectors, and extended IO bitmaps.
865
866 2009-05-15 Joerg Wunsch <[email protected]>
867
868 * tools/devdescr.xsl: update for rev 1.29 of src/jtag.h:
869 generate the is_xmega flag correctly
870
871 2009-04-03 Joerg Wunsch <[email protected]>
872
873 * configure.ac: Bump version for post-release 2.10.
874
875 2009-04-03 Joerg Wunsch <[email protected]>
876
877 * configure.ac: Bump version for release 2.10.
878
879 2009-04-03 Joerg Wunsch <[email protected]>
880
881 * configure.ac: Check whether libbfd requires libz (true for
882 libbfd 2.19 and above); while here, replace the obosolete
883 AC_TRY_COMPILE by AC_COMPILE_IFELSE.
884
885 2009-03-05 Joerg Wunsch <[email protected]>
886
887 * configure.ac: Bump version for post-release 2.9.
888
889 2009-03-05 Joerg Wunsch <[email protected]>
890
891 * configure.ac: Bump version for release 2.9.
892
893 2009-02-24 Joerg Wunsch <[email protected]>
894
895 * src/devdescr.cc (atmega128rfa1): new device.
896
897 2008-10-07 Joerg Wunsch <[email protected]>
898
899 * src/jtag2run.cc (jtag2::jtagSingleStep): When being interrupted by
900 GDB while waiting for the EVT_BREAK from a CMND_SINGLE_STEP, we must
901 issue a CMND_STOP_PROGRAM before proceeding.
902
903 2008-09-29 Joerg Wunsch <[email protected]>
904
905 * src/jtag.h: More ATxmega support. As the Xmega requires a
906 different initialization, this must be made known to AVaRICE
907 beforehand. The option -x (--xmega) can be used to tell AVaRICE
908 that the target is an Xmega. Alternatively, specifying an
909 ATxmega device explicitly through -P will also work.
910 * src/jtag2.h: (Ditto.)
911 * src/jtag2io.cc: (Ditto.)
912 * src/main.cc: (Ditto.)
913 * src/devdescr.cc: (Ditto.) Additionally, provide a separate
914 entry for the ATxmega128A1 rev D as this device uses a different
915 JTAG ID.
916 * doc/avarice.1: Document the -x/--xmega option.
917
918 2008-09-08 Joerg Wunsch <[email protected]>
919
920 * configure.ac: Bump version to post-2.8.
921
922 2008-09-08 Joerg Wunsch <[email protected]>
923
924 * configure.ac: Bump version to 2.8.
925
926 2008-08-26 Nils Kristian Strom <[email protected]>
927
928 * src/main.cc (usage): Add -R/--reset-srst to usage.
929
930 2008-07-29 Joerg Wunsch <[email protected]>
931
932 * src/jtagprog.cc: Fix "deprecated conversion from string
933 constant to char *" warnings.
934 * src/main.cc: (Ditto.)
935
936 2008-06-12 Joerg Wunsch <[email protected]>
937
938 * configure.ac: Bump version date.
939
940 2008-06-12 Joerg Wunsch <[email protected]>
941
942 Implement external reset through nSRST signal.
943 Based on the idea from patch #1398862 but implemented
944 in a completely different way.
945 * src/jtag.h: Add apply_nSRST to struct jtag, and parameter
946 possible_nSRST to resetProgram().
947 * src/jtag1.h: Add nrst to constructor.
948 * src/jtag2.h: (Ditto.)
949 * src/jtag2io.cc: Try applying nSRST before enabling JTAG
950 emulation.
951 * src/jtag2run.cc: possible_nSRST is ignored in mkII
952 resetProgram().
953 * src/jtagio.cc: Add possible_nSRST parameters.
954 * src/remote.cc: (Ditto.)
955 * src/jtagrun.cc: Implement possible_nSRST for mkI.
956 * src/main.cc: Add option -R/--reset-srst.
957 * doc/avarice.1: Document option -R/--reset-srst.
958
959 2008-06-10 Joerg Wunsch <[email protected]>
960
961 * src/main.cc: Add "target_sleep" to the list of events to be
962 ignored by default.
963 * doc/avarice.1: Document the above change.
964
965 2008-06-10 Joerg Wunsch <[email protected]>
966
967 * doc/avarice.1: Document all the newly supported devices.
968 * src/devdescr.cc: Remove duplicate entry for AT90USB1287;
969 fix EECRAddress for all recent entries (must be fill_b2()).
970 * tools/devdescr.xsl: Add fill_b2() to EECRAddress.
971
972 2008-05-26 Joerg Wunsch <[email protected]>
973
974 [ 1948200 ] Add option to print list of known devices
975 Submitted by Rick Mann
976 * src/main.cc: Add the option -k/--known-devices.
977 Sort deviceDefinitions alphabetically before.
978 * doc/avarice.1: Document the -k option.
979
980 2008-05-26 Joerg Wunsch <[email protected]>
981
982 [ patch 1909351 ] ATmega32c1, ATmega32m1
983 [ patch 1909933 ] sync to xml from avrstudio 4.14 beta
984 Submitted by David B. Curtis
985 * src/devdescr.cc: Add support for all currently known (by
986 AVR Studio's partdescription files) AVR devices.
987
988 2008-05-26 Joerg Wunsch <[email protected]>
989
990 [ patch 1750202 ] set parameter command failed
991 (Original patch *not* used though.)
992 * src/jtag2run.cc (jtag2::resetProgram, jtag2::eventLoop):
993 After issuing a JTAG reset, wait for the ICE to post the
994 respective BREAK event. Since resetProgram() can be
995 called fairly early before the GDB communication has been
996 set up, make eventLoop() aware of gdbFileDescriptor
997 possibly being still at -1, so it ought to be ignored.
998
999 2008-05-26 Joerg Wunsch <[email protected]>
1000
1001 [ patch 1587395 ] decrease default bitrate
1002 Submitted by Stas Sergeev
1003 * src/main.cc (usage, main): Default JTAG bitrate to
1004 250 kHz rather than 1 MHz, change usage message for
1005 that.
1006 * doc/avarice.1: Document the changed default JTAG bitrate.
1007
1008 2008-05-26 Joerg Wunsch <[email protected]>
1009
1010 [ 1865183 ] bfd.h not used for checking of libbfd
1011 * configure.ac: Don't just check for bfd.h but complain
1012 at configure time if it has not been found.
1013
1014 2008-05-26 Joerg Wunsch <[email protected]>
1015
1016 [ 1880464 ] AVR-Dragon needs libusb-dev
1017 * src/jtaggeneric.cc (jtag::jtag): throw an error message
1018 and bail out when called with "-j usb" but not configured
1019 for libusb support.
1020
1021 2008-05-25 Joerg Wunsch <[email protected]>
1022
1023 * configure.ac: Bump version.
1024
1025 2008-05-25 Joerg Wunsch <[email protected]>
1026
1027 [ 1833340 ] cannot read program counter/Watchdog has expired
1028 * src/jtag2run.cc (jtag2::eventLoop): Carefully handle all the
1029 different events that could be posted by the ICE, as opposed to
1030 just assuming every event would work like a BREAK where
1031 AVaRICE is then allowed to go ahead, and fetch the program
1032 counter value.
1033
1034 2008-02-25 Joerg Wunsch <[email protected]>
1035
1036 * src/devdescr.cc: Add entries for ATtiny84 and ATtiny85.
1037
1038 2008-01-26 Joerg Wunsch <[email protected]>
1039
1040 [ 1831392 ] --jtag option does not default to usb using dragon
1041 * src/main.cc: Fix logic for defaulting jtagDeviceName so the
1042 environment variable JTAG_DEV will be honoured, yet the AVR Dragon
1043 will still default to USB rather than /dev/avrjtag.
1044
1045 2008-01-26 Joerg Wunsch <[email protected]>
1046
1047 [ 1833342 ] useless warning message about jtag bitrate using dragon
1048 * src/main.cc: Restrict the warning about defaulting the JTAG bit
1049 rate to JTAG protocols only.
1050
1051 2008-01-26 Joerg Wunsch <[email protected]>
1052
1053 [ 1869060 ] jtag daisy chain bits limitations
1054 * src/main.cc: Apply the correct limitations for JTAG
1055 daisy-chaining.
1056
1057 2008-01-26 Joerg Wunsch <[email protected]>
1058
1059 * src/main.cc: Issue a warning when trying to chip erase in
1060 debugWire mode.
1061 * doc/avarice.1: Document that chip erase is not supported in
1062 debugWire mode.
1063
1064 2008-01-26 Joerg Wunsch <[email protected]>
1065
1066 * src/jtag2io.cc (jtag2::recvFrame): make msglen and its related
1067 variables unsigned int so they cannot suddenly become negative.
1068
1069 2007-11-13 Joerg Wunsch <[email protected]>
1070
1071 * src/jtag2bp.c (jtag2::addBreakpoint): fix a comparison that
1072 turned out to be an assignment.
1073
1074 2007-11-02 Joerg Wunsch <[email protected]>
1075
1076 Fix a bug with single-stepping on the JTAG ICE mkII or AVR Dragon.
1077 Single-stepping essentially behaves identical to CMND_GO, i. e. it
1078 returns immediately but the caller gets an EVT_BREAK posted once
1079 the single-step is completed. In particular for software
1080 breakpoints (like on debugWire), this could take a bit more time
1081 than the internal processing delay. When AVaRICE continued, and
1082 tried to query the program counter, the ICE wasn't ready yet
1083 again, and everything fell into parts.
1084 * src/jtag2.h: add new eventLoop() method.
1085 * src/jtag2run.cc: move the heart of jtag2::jtagContinue() out
1086 into eventLoop(), and use this method similarly for the
1087 jtag2::jtagSingleStep() method to await the EVT_BREAK.
1088
1089 2007-11-02 Joerg Wunsch <[email protected]>
1090
1091 * configure.ac: bump version to post-2.7
1092
1093 2007-10-30 Joerg Wunsch <[email protected]>
1094
1095 * configure.ac: bump version to 2.7
1096
1097 2007-07-08 Shaun Jackman <[email protected]>
1098
1099 * src/jtag2bp.cc (layoutBreakpoints) <useDebugWire>: Bug fix.
1100 GDB continue command would hang when using debugWire.
1101 * src/jtag2io.cc (recvFrame): Correctly report a timeout.
1102 * src/jtag2run.cc (resetProgram): The JTAG ICE mkII and Dragon
1103 do not respond correctly to the CMND_RESET command while in
1104 debugWire mode. Send CMND_FORCED_STOP and CMND_WRITE_PC(0)
1105 instead.
1106
1107 2007-08-29 Joerg Wunsch <[email protected]>
1108
1109 * configure.ac: Bump version date.
1110
1111 2007-08-29 Joerg Wunsch <[email protected]>
1112
1113 * src/jtag.h: Implement user-configurable ICE event handling for
1114 the JTAG ICE mkII.
1115 * src/jtag1.h: (Ditto.)
1116 * src/jtag2.h: (Ditto.)
1117 * src/jtag2run.cc: (Ditto.)
1118 * src/jtagrun.cc: (Ditto.)
1119 * src/main.cc: (Ditto.)
1120 * doc/avarice.1: Document the new option.
1121
1122 2007-08-29 Joerg Wunsch <[email protected]>
1123
1124 * src/jtaggeneric.cc: properly initialize private class members
1125 of jtag objects in all constructors, not just the default one
1126 (which we actually don't use).
1127
1128 2007-07-23 Joerg Wunsch <[email protected]>
1129
1130 * INSTALL-FROM-CVS: Bump required version numbers for automake to
1131 1.9, and autoconf to 2.59 as this is the only thing we are testing
1132 these days.
1133
1134 2007-04-03 Joerg Wunsch <[email protected]>
1135
1136 Submitted by Dave N6NZ
1137 * src/devdescr.cc: add entries for ATmega325/3250/645/6450.
1138
1139 2007-03-21 Colin O'Flynn <[email protected]>
1140
1141 * src/main.cc: Added patch #1121113 which adds a JTAG_DEV env variable
1142 * doc/avarice.1: Added JTAG_DEV to docs
1143
1144 2007-02-26 Joerg Wunsch <[email protected]>
1145
1146 * src/devdescr.cc: Add entries for AT90PWM2/3B.
1147 * tools/devdescr.xsl: Declare the "count" parameter in the format-hex
1148 template. Recent versions of xsltproc appear to be more picky about
1149 that.
1150
1151 2007-02-22 Joerg Wunsch <[email protected]>
1152
1153 * configure.ac: Bump date, now that we've got a first previous of
1154 Colin's soft BP implementation.
1155
1156 2007-02-20 Joerg Wunsch <[email protected]>
1157
1158 (On behalf of Colin O'Flynn)
1159 * src/jtag2bp.cc: Implement software breakpoints.
1160 * src/jtag2.h: (Ditto.)
1161
1162 2007-02-17 Joerg Wunsch <[email protected]>
1163
1164 * configure.ac: Bump date.
1165
1166 2007-02-17 Joerg Wunsch <[email protected]>
1167
1168 * src/jtag2usb.cc: Complete overhaul of the USB communication:
1169 - Use a second pipe (ctrlPipe) between main AVaRICE and the
1170 daemon to signal control information.
1171 - Move the entire libusb handling from the parent into the
1172 child process, so it only happens a single time. Have the
1173 parent wait until the child could make a decision, either
1174 failure to find the requested USB device, or success of being
1175 able to talk to it.
1176 - Do no longer poll USB when not needed, instead either read a
1177 reply when the master process told the daemon it is expecting
1178 one, or start polling while the target is running.
1179 - Add an option for the parent to have the USB daemon clear the
1180 endpoints after seeing successive timeouts while data was
1181 expected.
1182 - Examine the header of received data, and if the block length
1183 indicates more data will be folllowing the first read, go
1184 ahead and fetch them immediately.
1185 * src/jtag.h: Add ctrlPipe.
1186 * src/jtag2io.cc: Use ctrlPipe if present.
1187 * src/jtag2run.cc: (Ditto.)
1188 * src/jtaggeneric.cc: Initialize ctrlPipe in constructor.
1189
1190 2006-12-22 Joerg Wunsch <[email protected]>
1191
1192 * configure.ac: bump version to post-2.6
1193 * NEWS: add boilerplate for next release
1194
1195 2006-12-21 Joerg Wunsch <[email protected]>
1196
1197 * configure.ac: bump version to 2.6
1198
1199 2006-11-14 Joerg Wunsch <[email protected]>
1200
1201 * src/jtag2usb.cc: Try to set the O_ASYNC flag only if the
1202 host operating system does actually support it.
1203
1204 2006-11-08 Joerg Wunsch <[email protected]>
1205
1206 * src/devdescr.cc: Replace the ATmega164 and ATmega324 device
1207 descriptors by ATmega164P and ATmega324P ones, as the former
1208 devices have never been released.
1209 * doc/avarice.1: Document that change.
1210
1211 2006-11-05 Joerg Wunsch <[email protected]>
1212
1213 * src/jtag2usb.cc: Rearrange the procedure to open an USB device
1214 so that the usb_dev_handle is not going to be inherited across a
1215 fork(). Doing so did cause problems on the OSX implementation of
1216 libusb.
1217
1218 2006-10-28 Joerg Wunsch <[email protected]>
1219
1220 * doc/avarice.1: Document the AVR Dragon support. Also add
1221 all the debugWire-supported AVRs.
1222
1223 2006-10-28 Joerg Wunsch <[email protected]>
1224
1225 * src/jtag.h: Make a first stab of an implementation for the AVR
1226 Dragon. This is mostly the same as the JTAG ICE mkII, except it
1227 can only talk USB and has a different USB product ID.
1228 Documentation not yet done.
1229 * src/jtag2.h: (Ditto.)
1230 * src/jtag2io.cc: (Ditto.)
1231 * src/jtag2usb.cc: (Ditto.)
1232 * src/jtaggeneric.cc: (Ditto.)
1233 * src/main.cc: (Ditto.)
1234
1235 2006-10-08 Joerg Wunsch <[email protected]>
1236
1237 * configure.ac: bump version to post-2.5
1238 * NEWS: add boilerplate for next r
1239
1240 2006-10-08 Joerg Wunsch <[email protected]>
1241
1242 * configure.ac: bump version to 2.5
1243
1244 2006-10-08 Joerg Wunsch <[email protected]>
1245
1246 * src/jtag2io.cc: Don't mess with the fuse or lock bits in
1247 debugWire mode.
1248 * src/main.cc: Add --erase to the example usage.
1249 * NEWS: (New file.)
1250 * Makefile.am (EXTRA_DIST): Add NEWS.
1251
1252 2006-09-15 Joerg Wunsch <[email protected]>
1253
1254 Implement basic soft BP support for debugWire:
1255 * src/jtag2.h: add a soft BP cache, and updateBreakpintsDW().
1256 * src/jtag2bp.cc: Implement updateBreakpintsDW().
1257
1258 2006-09-15 Joerg Wunsch <[email protected]>
1259
1260 * tools/devdescr.xsl: (New file.) Generate devdescr.cc
1261 entry out of the XML file.
1262 * src/devdescr.cc: Add entries for all debugWire AVRs,
1263 generated with devdescr.xsl.
1264
1265 2006-09-12 Joerg Wunsch <[email protected]>
1266
1267 * src/jtaggeneric.cc: Initialize is_usb properly when
1268 creating a new "jtag" object.
1269
1270 2006-09-09 Joerg Wunsch <[email protected]>
1271
1272 * doc/avarice.1: Mention that avrdude can turn off the
1273 DWEN fuse.
1274
1275 2006-08-08 Joerg Wunsch <[email protected]>
1276
1277 First part of implementing debugWire support.
1278 * src/main.cc: Implement the debugWire framework.
1279 * src/jtag.h: (Ditto.)
1280 * src/jtag2.h: (Ditto.)
1281 * src/jtag2io.cc: (Ditto.)
1282 * src/jtag2prog.cc: (Ditto.)
1283 * src/jtag2rw.cc: (Ditto.)
1284 * src/devdescr.cc: Add an entry for the ATmega48.
1285 * doc/avarice.1: Document the debugWire effort.
1286 * configure.ac: Bump version.
1287
1288 2006-07-20 Joerg Wunsch <[email protected]>
1289
1290 * configure.ac: Bump version.
1291
1292 2006-07-20 Joerg Wunsch <[email protected]>
1293
1294 * src/devdescr.cc: Fix various things in the device desriptors,
1295 mostly affecting devices with the new EEPROM register layout:
1296 . use correct (according to AVR Studio) EECRaddress
1297 . use correct start of SRAM for ATmegaxx0/1
1298 . add EINDaddr for ATmegaxx0/1
1299
1300 2006-05-24 Joerg Wunsch <[email protected]>
1301
1302 * src/devdescr.cc: Add ATmega2560/2561.
1303
1304 2006-05-19 Joerg Wunsch <[email protected]>
1305
1306 * src/jtag.h: Properly initialize the device_name member.
1307 * src/jtag1.h: (Ditto.)
1308 * src/jtag2.h: (Ditto.)
1309 * src/jtaggeneric.cc: (Ditto.)
1310 * src/main.cc: (Ditto.)
1311
1312 2006-04-09 Joerg Wunsch <[email protected]>
1313
1314 * src/devdescr.cc: fix ucAllowFullPageBitstream for AT90CAN128.
1315
1316 2006-04-07 Joerg Wunsch <[email protected]>
1317
1318 * doc/avarice.1: Update documentation (new devices, missing option
1319 documentation, bump man page date), sort options alphabetically.
1320 * src/main.cc: Sort options alphabetically.
1321
1322 2006-04-07 Joerg Wunsch <[email protected]>
1323
1324 Contributed by Michael De Nil:
1325 * src/jtag.h: Add support for JTAG daisy chainging;
1326 sourceforge.net patch tracker:
1327 https://sourceforge.net/tracker/index.php?func=detail&aid=1216263&group_id=39505&atid=425409
1328 * src/jtag1.h: (Ditto.)
1329 * src/jtag2.h: (Ditto.)
1330 * src/jtag2io.cc: (Ditto.)
1331 * src/jtagio.cc: (Ditto.)
1332 * src/main.cc: (Ditto.)
1333
1334 2006-04-07 Joerg Wunsch <[email protected]>
1335
1336 * src/devdescr.cc: Add support for AT90USB1287
1337
1338 2006-03-27 Joerg Wunsch <[email protected]>
1339
1340 * src/devdescr.cc: fix ucAllowFullPageBitstream for
1341 ATmega640/1280/1281.
1342 * configure.ac: bump version to post-2.4
1343
1344 2006-01-11 Joerg Wunsch <[email protected]>
1345
1346 * Release version 2.4.
1347
1348 2006-01-11 Joerg Wunsch <[email protected]>
1349
1350 * configure.ac: bump version to 2.4
1351 * INSTALL-FROM-CVS: adapt instructions for the auto* tools; we
1352 are not very picky about the exact versions as long as they are
1353 reasonably recent.
1354
1355 2005-11-17 <[email protected]>
1356
1357
1358 * src/jtag2io.cc (sendJtagCommand): breakpoint handling was broken
1359 (breakpoints detected in recv, but jtagContinue called recvFrame).
1360 Fix by moving it all into jtagContinue.
1361 Also add extra debug output.
1362 * src/jtag2.h (class jtag2): see jtag2io.cc.
1363 * src/jtag2run.cc (jtagContinue): see jtag2io.cc.
1364
1365 * scripts/ice-gdb.in: gdb's -- options can also be used with a single
1366 dash
1367
1368 * src/utils.cc (statusOut): send debug output to stderr
1369
1370 2005-10-09 Joerg Wunsch <[email protected]>
1371
1372 * src/devdescr.cc: add ATmega640/1280/1281
1373
1374 2005-09-26 Joerg Wunsch <[email protected]>
1375
1376 * src/jtag2usb.cc: fix the libusb handling, so it will
1377 eventually also work with libusb-win32.
1378
1379 2005-08-18 Joerg Wunsch <[email protected]>
1380
1381 * src/devdescr.cc: set ucPCMaskHigh to 0 for ATmega329x/649x.
1382
1383 2005-08-17 Joerg Wunsch <[email protected]>
1384
1385 * src/devdescr.cc: add the ATmega329x/649x family.
1386
1387 2005-08-15 Joerg Wunsch <[email protected]>
1388
1389 * configure.ac: add check for libusb.
1390 * src/Makefile.am: add jtag2usb.cc.
1391 * src/jtag.h: add USB stuff to jtag class.
1392 * src/jtag2io.cc (jtag2::~jtag2()): do not prematurely return,
1393 use an "if" statement instead.
1394 * src/jtaggeneric.cc: add USB hooks (depending on configuration).
1395 * src/jtag2usb.cc: New file: implement USB communication.
1396 * doc/avarice.1: Document the USB connection method.
1397
1398 2005-08-15 Joerg Wunsch <[email protected]>
1399
1400 * src/jtag2rw.cc (jtag2::jtagRead()): when word-aligning flash
1401 ROM requests, do also align the request base, and return the
1402 correct byte(s).
1403
1404 2005-06-20 Joerg Wunsch <[email protected]>
1405
1406 * src/devdescr.cc: add device flags.
1407 * src/jtag.h: add device flags, move mkI breakpoints out to jtag1.h.
1408 * src/jtag1.h: mkI breakpoint interface goes here.
1409 * src/jtag2.h: new mkII breakpoint interface.
1410 * src/jtag2bp.cc: ditto.
1411 * src/jtag2run.cc: ditto.
1412 * src/jtag2rw.cc: Attempt to get the "load" command working.
1413 * src/jtagbp.cc: remove stale "e" packet code (step-over-range-packet).
1414 * src/jtagrun.cc: ditto.
1415 * src/remote.cc: ditto.
1416 * scripts/gdb-avarice-script: ditto.
1417
1418 2005-05-31 Joerg Wunsch <[email protected]>
1419
1420 * src/jtag.h: remove friend restoreSerialPort() which doesn't
1421 exist at all.
1422
1423 2005-05-27 Joerg Wunsch <[email protected]>
1424
1425 Merge the JTAG ICE mkII branch back to HEAD.
1426 * src/jtag2.h: (new file)
1427 * src/jtag2_defs.h: (new file)
1428 * src/jtag2bp.cc: (new file)
1429 * src/jtag2io.cc: (new file)
1430 * src/jtag2misc.cc: (new file)
1431 * src/jtag2prog.cc: (new file)
1432 * src/jtag2run.cc: (new file)
1433 * src/jtag2rw.cc: (new file)
1434 * src/crc16.c: (new file)
1435 * src/crc16.h: (new file)
1436 * Bootstrap: Export AUTO* variables.
1437 * configure.ac: Bump version.
1438 * doc/avarice.1: (Merge)
1439 * doc/dev_desc.txt: (Merge)
1440 * doc/mk2-protocol.txt: (Merge)
1441 * src/Makefile.am: (Merge)
1442 * src/devdescr.cc: (Merge)
1443 * src/jtag.h: (Merge)
1444 * src/jtag1.h: (Merge)
1445 * src/jtaggeneric.cc: (Merge)
1446 * src/jtagio.cc: (Merge)
1447 * src/jtagprog.cc: (Merge)
1448 * src/jtagrw.cc: (Merge)
1449 * src/main.cc: (Merge)
1450 * src/remote.cc: (Merge)
1451
1452 2005-05-24 Joerg Wunsch <[email protected]>
1453
1454 * src/devdescr.cc: Add IO register entries for ATmega64/128 & CAN128
1455 * src/ioreg.cc: Ditto.
1456 * src/ioreg.h: Ditto.
1457
1458 2005-05-13 Joerg Wunsch <[email protected]>
1459
1460 * configure.ac: Encapsulate the mkI protocol in its own C++ class.
1461 * src/Makefile.am: ditto.
1462 * src/devdescr.cc: ditto.
1463 * src/jtag.h: ditto.
1464 * src/jtag1.h: ditto.
1465 * src/jtagbp.cc: ditto.
1466 * src/jtaggeneric.cc: ditto.
1467 * src/jtagio.cc: ditto.
1468 * src/jtagmisc.cc: ditto.
1469 * src/jtagprog.cc: ditto.
1470 * src/jtagrun.cc: ditto.
1471 * src/jtagrw.cc: ditto.
1472 * src/main.cc: ditto.
1473 * src/remote.cc: ditto.
1474
1475 2005-04-20 <[email protected]>
1476
1477 * configure.ac: Set version to 20050420.
1478
1479 * src/jtagio.cc (doJtagCommand): newly connected targets tend to
1480 spam JTAG_R_INFO responses, which weren't handled by the debugger
1481 (sympton: 'Cannot synchronise' messages). These responses are used
1482 to provide a channel from the target program to the debugger, but
1483 this is currently unused by avarice (see the IDRD register for
1484 details).
1485
1486 Fix: detect JTAG_R_INFO response in sendJtagCommand. When this
1487 happens, send an 'S' (get sign on) command. If we don't do this, the
1488 JTAG_R_INFO response seems to be repeated indefinitely...
1489
1490 2004-12-06 Theodore A. Roth <[email protected]>
1491
1492 * configure.ac (AC_INIT): Set version to 2.3.20041206 for cvs tracking.
1493
1494 2004-12-06 David Gay <[email protected]>
1495
1496 * src/main.cc (main): resume execution on exit when not in server mode
1497
1498 2004-12-06 Theodore A. Roth <[email protected]>
1499
1500 * Release version 2.3.
1501
1502 2004-12-06 Theodore A. Roth <[email protected]>
1503
1504 * configure.ac (AC_INIT): Set version to 2.3.
1505 * configure.ac: Add more lib checks which might be need for libbfd.
1506
1507 2004-11-25 Theodore A. Roth <[email protected]>
1508
1509 * configure.ac (AC_INIT): Bump version.
1510 * doc/avarice.1: Add at90can128 to supported list.
1511 Marked as experimental.
1512 * src/jtag.h: Fix typo in comment describing jtag_device_desc_type.
1513 * src/jtagio.cc (deviceDefinitions): Add entry for at90can128.
1514
1515 2004-11-21 Theodore A. Roth <[email protected]>
1516
1517 * configure.ac (AC_INIT): Bump version.
1518 * doc/avarice.1: Update --program option to note that erase is no
1519 longer implicit.
1520 Make NOTE bold in note for --write-fuses option.
1521 * src/main.cc (usage): Remove erase from --program option.
1522
1523 2004-11-18 Theodore A. Roth <[email protected]>
1524
1525 * configure.ac (AC_INIT): Bump version.
1526 * src/jtagprog.cc (jtag_create_image):
1527 Replace bfd_get_section_size_before_reloc with bfd_get_section_size.
1528 Work around for change API in bfd.
1529
1530 2004-11-12 Nils Kristian Strom <[email protected]>
1531
1532 * configure.ac (AC_INIT): Bump version.
1533 * src/main.cc (main): Write lock bits when all other programming
1534 tasks are completed.
1535
1536 2004-10-25 Theodore A. Roth <[email protected]>
1537 [Contributed by Colin O'Flynn <[email protected]>]
1538
1539 * configure.ac (AC_INIT): Bump version.
1540 * doc/mk2-protocol.txt: New file.
1541
1542 2004-08-08 Nils Kristian Strom <[email protected]>
1543
1544 * src/main.cc: Move device erase in front of write fuses in case
1545 of device being locked.
1546
1547 2004-08-05 Nils Kristian Strom <[email protected]>
1548
1549 * src/jtagio.cc: (deviceDefinitions): Fix flash and eeprom page
1550 sizes for mega64 and mega128. (Thanks to Ted Roth for this).
1551 * src/jtagprog.cc: (jtag_flash_image): Don't override device specific
1552 eeprom page size.
1553
1554 2004-08-04 Joerg Wunsch <[email protected]>
1555
1556 * Bootstrap: export AUTO* variables to make automake happy.
1557
1558 2004-05-26 Theodore A. Roth <[email protected]>
1559 [Contributed by Onno van Eijk <[email protected]>]
1560
1561 * configure.ac (AC_INIT): Bump version.
1562
1563 * src/ioreg.cc (atmega32_io_registers): Define.
1564 * src/ioreg.h (atmega32_io_registers): Declare.
1565 * src/jtagio.cc (deviceDefinitions): Install mega32 io register defs.
1566
1567 2004-03-12 David Gay <[email protected]>
1568
1569 * configure.ac: Bump version.
1570
1571 * src/jtagio.cc (safewrite): write may write only part of the
1572 data (problem tended to show up with USB serial ports). Fix.
1573
1574 2004-03-08 David Gay <[email protected]>
1575
1576 * scripts/start-avarice: add --erase option when programming
1577
1578 2004-02-25 Theodore A. Roth <[email protected]>
1579
1580 * src/jtagprog.cc (eraseProgramMemory): Add comment noting that this is
1581 really a chip erase operation.
1582 (downloadToTarget): Don't erase the device here if programming.
1583 * src/main.cc (main): Never erase the device unless the user explicitly
1584 gives the --erase option.
1585 When programming without the --erase option, issue a warning about the
1586 change in behavior.
1587
1588 2004-02-06 Theodore A. Roth <[email protected]>
1589
1590 * configure.ac (AC_INIT): Bump version.
1591
1592 * doc/avarice.1:
1593 * src/jtag.h:
1594 * src/jtagrw.cc:
1595 * src/main.cc:
1596 Add --read-lockbits (-l) option for reading the lockbits.
1597
1598 2004-01-29 Theodore A. Roth <[email protected]>
1599
1600 * configure.ac (AC_INIT): Bump version.
1601 * scripts/io_gen.py: New file for helping to generate io register defs.
1602
1603 2004-01-28 Theodore A. Roth <[email protected]>
1604 [Contributed by Nils Kristian Strom <[email protected]>]
1605
1606 * configure.ac (AC_INIT): Bump version.
1607 * src/ioreg.cc (atmega162_io_registers): Define.
1608 * src/ioreg.h (atmega162_io_registers): Declare.
1609 * src/jtagio.cc (deviceDefinitions): Install mega162 io register defs.
1610
1611 2004-01-21 Theodore A. Roth <[email protected]>
1612 [Contributed by Bjoern Haase <[email protected]>]
1613
1614 * configure.ac (AC_INIT): Bump version.
1615 * src/ioreg.cc: Fix spelling error.
1616 Add cvs Id keyword.
1617 (atmega169_io_registers): Define.
1618 * src/ioreg.h: Fix spelling error.
1619 Add cvs Id keyword.
1620 (atmega169_io_registers): Declare.
1621 * src/jtagio.cc (deviceDefinitions): Install mega169 io register defs.
1622
1623 2003-12-12 Theodore A. Roth <[email protected]>
1624
1625 * Release version 2.2.
1626
1627 2003-12-12 Theodore A. Roth <[email protected]>
1628
1629 * configure.ac (AC_INIT): Set version to 2.2.
1630
1631 2003-12-08 Theodore A. Roth <[email protected]>
1632
1633 * src/main.cc (usage): Fix host name and port spec to denote that
1634 host name, not port, is the optional part of host:port.
1635
1636 2003-12-08 Theodore A. Roth <[email protected]>
1637 [Contributed by Kolja Waschk <[email protected]>]
1638
1639 * configure.ac (AC_INIT): Bump version.
1640 * src/gnu_getopt.h: Protect against cygwin having already included
1641 getop.h.
1642 * src/jtagio.cc (timeout_read): If either select() of read() fail and
1643 errno is set to EAGAIN, continue the loop instead of bombing out.
1644 * src/jtagrun.cc (jtagContinue): Use timeout_read() instead of read().
1645
1646 2003-12-06 Theodore A. Roth <[email protected]>
1647
1648 * configure.ac (AC_INIT): Bump version.
1649 * avarice.spec.in (%files): Add avarice man page.
1650 * doc/Makefile.am (man_MANS): Add avarice.1.
1651 (EXTRA_DIST): Remove install.txt.
1652 * doc/avarice.1: New file.
1653 * doc/install.txt: Remove file. This file talks about Aegis being the
1654 build system which is no longer true since we use autoconf/automake.
1655 * doc/running.txt: Add note about this file being out of date.
1656 * doc/todo.txt: Remove some entries that have been handled.
1657 Add some new entries.
1658
1659 2003-11-16 Theodore A. Roth <[email protected]>
1660 [Thanks to Nils Kristian Strom <[email protected]>]
1661
1662 * configure.ac (AC_INIT): Bump version.
1663 * src/jtag.h (initJtagBox): Change arguments (no args needed).
1664 (initJtagOnChipDebugging): New prototype.
1665 (jtagReadFuses): Ditto.
1666 * src/jtagio.cc (initJtagBox): Change arguments and move attach code
1667 to initJtagOnChipDebugging function.
1668 (initJtagOnChipDebugging): New function.
1669 * src/jtagrw.cc (jtagReadFuses): New function.
1670 * src/main.cc (main): Avoid disabling lock bits and setting FUSE_OCDEN
1671 when we are using avarice as a standalone device programmer.
1672 Move --write-fuses in front of the jtag debugger initialization, to
1673 make it possible to start debugging with all fuses written to their
1674 proper settings.
1675
1676 2003-11-16 Theodore A. Roth <[email protected]>
1677 [Thanks to Nils Kristian Strom <[email protected]>]
1678
1679 * src/jtag.h (jtagDisplayFuses): Add prototype.
1680 * src/jtagio.cc (initJtagBox): Use jtagDisplayFuses() instead of
1681 calling statusOut() directly.
1682 * src/jtagrw.cc (jtagWriteFuses): Ditto.
1683 (jtagDisplayFuses): New function.
1684
1685 2003-11-13 Theodore A. Roth <[email protected]>
1686
1687 * configure.ac (AC_INIT): Bump version.
1688 * src/jtagrw.cc (memorySpace): Use symbolic name instead of magic
1689 number.
1690 * src/remote.cc (talkToGdb): Only allow orphaned bytes when writing to
1691 program space. [Thanks to Brian Cuthie <[email protected]> for
1692 reporting this bug.]
1693
1694 2003-11-08 Theodore A. Roth <[email protected]>
1695
1696 * src/main.cc (usage): Make the -B option info fit on a 80 column
1697 terminal.
1698
1699 2003-11-08 Theodore A. Roth <[email protected]>
1700 [Thanks to Nils Kristian Strom <[email protected]>]
1701
1702 * configure.ac (AC_INIT): Bump version.
1703 * src/jtagio.cc (initJtagBox): Inform user about the lock bits and
1704 fuses that actually *are* programmed, not the ones that were found in
1705 the device.
1706
1707 2003-11-01 Theodore A. Roth <[email protected]>
1708
1709 * configure.ac (AC_INIT): Bump version.
1710 * src/jtag.h: Add JTAG_BITRATE_1_MHz, JTAG_BITRATE_500_KHz,
1711 JTAG_BITRATE_250_KHz and JTAG_BITRATE_125_KHz defs.
1712 (initJtagBox): Add bitrate argument.
1713 * src/jtagio.cc (initJtagBox): Allow passing the jtag bitrate.
1714 * src/main.cc: Add the -B (--jtag-bitrate) option.
1715
1716 2003-10-23 Theodore A. Roth <[email protected]>
1717
1718 * configure.ac (AC_INIT): Bump version.
1719 * doc/dev_desc.txt: New file.
1720 * src/jtag.h:
1721 * src/jtagio.cc:
1722 Make the device description arrays into a structures.
1723
1724 2003-10-20 Theodore A. Roth <[email protected]>
1725 [Thanks to Dean Ferreyra <[email protected]>]
1726
1727 * configure.ac (AC_INIT): Bump version.
1728 * src/main.cc: Fix to allow erasing the device as a single operation.
1729
1730 2003-09-25 Theodore A. Roth <[email protected]>
1731
1732 * configure.ac (AC_INIT): Bump version.
1733 * doc/Makefile.am (EXTRA_DIST): Add the .txt files.
1734 * doc/README.cygwin: New file, from Eric Weddington.
1735
1736 2003-09-18 Theodore A. Roth <[email protected]>
1737
1738 * configure.ac (AC_INIT): Bump version.
1739 * avarice.spec.in: Add man pages.
1740
1741 2003-09-18 Theodore A. Roth <[email protected]>
1742 [Thanks to Amedee Louis Beaudoin <[email protected]>]
1743
1744 * src/jtagrw.cc (jtagWriteFuses): Enter programming mode before writing
1745 and exit program mode after reading.
1746 (jtagWriteLockBits): Ditto.
1747
1748 2003-08-25 David Gay <[email protected]>
1749
1750 * configure.ac: bump version
1751 * src/jtagprog.cc: work around cygwin gcc (3.2.3) bug with
1752 large stack allocated locals by making them static
1753
1754 2003-08-21 David Gay <[email protected]>
1755
1756 * doc/ice-insight.1: new file, ice-insight man page
1757 * doc/ice-gdb.1: new file, ice-gdb man page
1758 * doc/Makefile.am: new file
1759 * Makefile.am (SUBDIRS): make doc subdir
1760 * configure.ac: Bump revision, add doc Makefile
1761
1762 2003-08-20 Theodore A. Roth <[email protected]>
1763
1764 * src/jtagrun.cc (jtagContinue): Add debug output to show what the
1765 jtag box returned, especially the break status register.
1766
1767 2003-08-19 Theodore A. Roth <[email protected]>
1768
1769 * configure.ac (AC_INIT): Bump version.
1770 * src/jtagprog.cc (get_section_addr): Fix to allow programming of upper
1771 64k of flash.
1772
1773 2003-08-18 David Gay <[email protected]>
1774
1775 * src/main.cc (main): Add missing --file option for getopt
1776 [Thanks to Mike Hudson <[email protected]>]
1777
1778 2003-08-15 Theodore A. Roth <[email protected]>
1779
1780 * Makefile.am (dist-hook): New rule.
1781 * configure.ac (AC_INIT): Bump version.
1782 (AC_CONFIG_FILES): Add avarice.spec.
1783 * avarice.spec.in: New file.
1784
1785 2003-08-15 Theodore A. Roth <[email protected]>
1786 [Thanks to Nils Kristian Strom <[email protected]>]
1787
1788 * src/main.cc (long_opts): Fix short opts to match usage output.
1789
1790 2003-08-08 Theodore A. Roth <[email protected]>
1791 [Thanks to James Harris <[email protected]>]
1792
1793 * src/gnu_getopt.h: Define HAVE_DECL_GETOPT to fix declaration clash.
1794
1795 2003-08-06 David Gay <[email protected]>
1796
1797 * src/main.cc (main): actually implement --version
1798 * configure.ac: Bump version.
1799
1800 2003-08-05 David Gay <[email protected]>
1801
1802 * scripts/start-avarice: use new host:portname syntax
1803
1804 2003-08-05 Theodore A. Roth <[email protected]>
1805
1806 * configure.ac: Bump version.
1807 * src/Makefile.am (avarice_SOURCES): Add gnu_getopt* files.
1808 * src/avarice.h: Delete DEFAULT_PORT.
1809 * src/gnu_getopt.c: New file.
1810 * src/gnu_getopt.h: New file.
1811 * src/gnu_getopt1.c: New file.
1812 * src/main.cc: Use gnu getop_long() to parse argv.
1813 Clean up usage() output to be more compact.
1814 Allow operations (program, erase, verify, write-fuses, etc) to be
1815 performed before going into gdb server mode.
1816 Change "[[hostname] port]" options into a single "[[host]:port]"
1817 option where ":port" causes avarice to enter server mode.
1818 All options now have short and long equivalents.
1819
1820 2003-08-04 Theodore A. Roth <[email protected]>
1821
1822 * src/main.cc: Revert program flag to default to false.
1823 Revert setting program flag to false if --verify is given.
1824
1825 2003-07-31 David Gay <[email protected]>
1826
1827 * src/main.cc (main): when no gdb interaction: don't perform
1828 extraneous enableProgramming/disableProgramming
1829 when gdb interaction: program if a file specified
1830 * scripts/gdb-avarice-script: set hardware watch/break limits
1831 * scripts/ice-gdb.in: --ignore-intr should not capture,
1832 --external flag
1833 * scripts/start-avarice: no need for avr-objcopy
1834
1835 2003-07-29 Theodore A. Roth <[email protected]>
1836
1837 * configure.ac: Bump version.
1838 Search for library needed for inet_aton().
1839
1840 2003-07-25 Theodore A. Roth <[email protected]>
1841
1842 * configure.ac: Bump Version
1843 * src/jtagio.cc: Double all of the vectors_end initializers.
1844
1845 2003-07-24 Theodore A. Roth <[email protected]>
1846
1847 * configure.ac: Bump version.
1848 * src/jtagprog.cc (initImage): Fix off by one in for loop.
1849 (jtag_create_image): Clean up for loop to use common idiom.
1850 (jtag_flash_image): Clean up for loop to use common idiom.
1851 When verifying, verify all bytes instead of bombing out at first error.
1852 * src/main.cc (usage): Add info for verify option.
1853
1854 2003-07-24 Theodore A. Roth <[email protected]>
1855
1856 * src/jtagprog.cc (jtag_create_image): Fix off by one error.
1857
1858 2003-07-10 Theodore A. Roth <[email protected]>
1859 [Contributed by Nils Kristian Strom <[email protected]>]
1860
1861 * src/jtag.h:
1862 * src/jtagprog.cc:
1863 * src/main.cc:
1864 Add verification of program and data after downloading to device.
1865
1866 2003-07-10 Theodore A. Roth <[email protected]>
1867
1868 * doc/todo.txt: Update todo list.
1869
1870 2003-07-10 Theodore A. Roth <[email protected]>
1871 [Contributed by Joerg Wunsch <[email protected]>]
1872
1873 * configure.ac: Bump version.
1874 * src/avarice.h: Define DEFAULT_PORT.
1875 * src/main.cc: Have host default to listening on any interface and
1876 port default to DEFAULT_PORT (4242).
1877
1878 2003-07-07 David Gay <[email protected]>
1879
1880 * src/jtag.h: Add vectors_end to jtag_device_def_type.
1881 * src/jtagio.cc: Add vectors_end values to device initializers.
1882 * src/remote.cc: Use vectors_end when ignoring interrupts.
1883
1884 2003-07-07 David Gay <[email protected]>
1885
1886 * src/jtagio.cc: Better fix, comment for device id problem.
1887
1888 2003-07-07 David Gay <[email protected]>
1889
1890 * src/jtagio.cc: Fix problem with --capture and reading device id.
1891
1892 2003-07-03 David Gay <[email protected]>
1893
1894 * src/jtagio.cc: Check pointer before passing to strcmp().
1895 Update comment for JTAG bitrate.
1896 * src/jtagprog.cc: Fix a spelling error.
1897 Move "." status out of jtagWrite back to download.
1898 * src/jtagrw.cc: Move "." status out of jtagWrite back to download.
1899 * src/main.cc: Reset remote target after download (debugging won't work
1900 without that reset).
1901 * src/remote.cc: Extend interrupt ignore stuff to singlestep, makes it
1902 much more useable in gdb. Still need to find extent of interrupt table
1903 based on device id.
1904
1905 2003-07-02 Theodore A. Roth <[email protected]>
1906 [Contributed by Jake McGuire <[email protected]>]
1907
1908 * src/jtagio.cc: Add support for mega64.
1909
1910 2003-07-02 Theodore A. Roth <[email protected]>
1911 [Contributed by Joerg Wunsch <[email protected]>]
1912
1913 * configure.ac: Bump version.
1914 * src/jtagprog.cc: SEC_ARCH_BIT_0 and SEC_THREAD_LOCAL are not
1915 available on some older bfd libraries.
1916 * src/main.cc: BSD always requires the inclusion of <sys/types.h>
1917 before <sys/socket.h>.
1918 (initSocketAddress): struct sockaddr_in in 4.4BSD contains some padding
1919 at the end in a struct field named sin_zero which needs zero'ed out.
1920
1921 2003-06-13 Theodore A. Roth <[email protected]>
1922
1923 * configure.ac: Bump version.
1924 * src/jtagio.cc: Set JTAG_P_CLOCK param to 0xff instead of 0xfd to
1925 speed things up a little bit.
1926 * src/remote.cc: Remove a debug output statement.
1927
1928 2003-06-12 Theodore A. Roth <[email protected]>
1929
1930 * doc/todo.txt: Remove some items that have been fixed or are now
1931 working.
1932
1933 2003-06-12 Theodore A. Roth <[email protected]>
1934
1935 * src/jtagrw.cc (jtagWrite): Print debug message if addr or length is
1936 odd.
1937 * src/remote.cc (reportStatusExtended): New function for replying with
1938 a 'T' packet instead of an 'S' packet.
1939 Use new function whenever a breakpoint is hit from a step or continue
1940 command from gdb.
1941
1942 2003-06-12 Theodore A. Roth <[email protected]>
1943
1944 * configure.ac: Bump version.
1945 * src/remote.cc: Remove call to interruptProgram() when handling a 'g'
1946 packet. This was accidently committed and should not have been since
1947 it causes the jtagice box to corrupt the program counter. Not good.
1948
1949 2003-06-11 Theodore A. Roth <[email protected]>
1950
1951 * configure.ac: Bump version.
1952 * src/jtagio.cc: Remove check failure for jtag ice HW version.
1953 * src/remote.cc: Fix handling the 'M' command from GDB to allow for
1954 odd addresses and lengths.
1955
1956 2003-06-05 Theodore A. Roth <[email protected]>
1957
1958 * configure.ac: Check for intl library since linking to bfd may
1959 require it (this affects cygwin). [Thanks Colid O'Flynn for reporting
1960 this.]
1961
1962 2003-05-04 Theodore A. Roth <[email protected]>
1963 [Contributed by Alan Willis <[email protected]>.]
1964
1965 * src/jtagprog.cc: Speed up programming the flash by skipping pages
1966 that are all ones.
1967
1968 2003-05-04 Theodore A. Roth <[email protected]>
1969 [Contributed by Nils Kristian Strom <[email protected]>]
1970
1971 * src/main.cc: Allow all programmer-operations (erase device,
1972 write memory, write fuses, write lockbits) in one pass.
1973
1974 2003-05-04 Theodore A. Roth <[email protected]>
1975
1976 * configure.ac: Check for libbfd and libiberty, complain if either is
1977 missing.
1978 Bump version.
1979 * src/jtagio.cc: When opening the jtagice device, give a more helpful
1980 failure message.
1981
1982 2003-05-04 Theodore A. Roth <[email protected]>
1983 [Contributed by Nils Kristian Strom <[email protected]>]
1984
1985 * src/jtag.h:
1986 * src/jtagprog.cc:
1987 * src/jtagrw.cc:
1988 Use the bfd library for handling multiple input file formats.
1989
1990 2003-05-01 Theodore A. Roth <[email protected]>
1991
1992 * src/jtagrw.cc: Fix byte order problem when specifying fuses bytes
1993 on the command line.
1994
1995 2003-04-20 Theodore A. Roth <[email protected]>
1996
1997 * AUTHORS: Fix a typo.
1998 * INSTALL-FROM-CVS: Add detailed description about using the proper
1999 versions of autoconf and automake.
2000 * configure.ac: Ran autoscan to generate this file to check for more
2001 potential portability problem points.
2002 Use autoconf-2.57 and automake-1.7.3 (trying make things work right
2003 with any versions is a royal PITA).
2004 Have autoheader generate src/autoconf.hin instead of autoconf.h.in so
2005 8.3 systems don't puke.
2006 * configure.in: Removed (replaced by configure.ac).
2007 * .cvsignore: Ignore all diff and patch files.
2008 Ignore all autom4te*.cache dirs.
2009 * src/.cvsignore: Ignore TAGS and tags files.
2010 Ignore autoconf.hin instead of autoconf.h.in.
2011
2012 2003-04-03 Theodore A. Roth <[email protected]>
2013 [Contributed by Nils Kristian Strom <[email protected]>].
2014
2015 * configure.in: Bump version.
2016 * src/jtag.h:
2017 * src/jtagrw.cc:
2018 * src/main.cc:
2019 Add support for writing the lockbits from the command line.
2020
2021 2003-04-02 Theodore A. Roth <[email protected]>
2022 [Contributed by Nils Kristian Strom <[email protected]>].
2023
2024 * src/jtag.h:
2025 * src/jtagrw.cc:
2026 * src/main.cc:
2027 Add support for writing fuses from the command line.
2028
2029 2003-04-02 Theodore A. Roth <[email protected]>
2030 [Contributed by Nils Kristian Strom <[email protected]>].
2031
2032 * configure.in: Bump version.
2033 * src/main.cc: Move #include <unistd.h> to fix a build failure on
2034 FreeBSD.
2035
2036 2003-04-01 Theodore A. Roth <[email protected]>
2037 [Contributed by Jake McGuire <[email protected]>]
2038
2039 * src/main.cc: Ports should be printed as unsigned values instead of
2040 signed.
2041
2042 2003-04-01 Theodore A. Roth <[email protected]>
2043
2044 * configure.in: Add check for socklen_t type.
2045
2046 2003-04-01 Theodore A. Roth <[email protected]>
2047 [Contributed by Jake McGuire <[email protected]>]
2048
2049 * configure.in: Bump version.
2050 * src/jtagio.cc: Don't set serial speed by changing termios structure
2051 since this breaks on OS X. Use cfsetospeed() and cfsetispeed().
2052
2053 2003-03-27 Theodore A. Roth <[email protected]>
2054
2055 * configure.in: Add checks for libsocket and libnsl.
2056
2057 2003-03-27 Theodore A. Roth <[email protected]>
2058 [Contributed by James Harris <[email protected]>]
2059
2060 * src/jtag.h: Lengthen JTAG_RESPONSE_TIMEOUT so slower systems have
2061 a fair chance to respond.
2062 * src/remote.cc: Passing an int to read(2) is not bigendian friendly,
2063 so pass an unsigned char instead.
2064
2065 2003-03-27 Theodore A. Roth <[email protected]>
2066
2067 * src/remote.cc: Add handling of 'C' packet. Using 'sig SIGHUP' command
2068 from gdb will cause avarice to reset the user program.
2069
2070 2003-03-27 Theodore A. Roth <[email protected]>
2071
2072 * Bootstrap: Remove need to run autotools in src.
2073 * configure.in: Remove need for src/configure.in.
2074 * src/configure.in: Remove file.
2075
2076 2003-03-27 Theodore A. Roth <[email protected]>
2077 [Contributed by James Harris <[email protected]>]
2078
2079 * src/Makefile.am (avarice_SOURCES): Add ioreg.cc and ioreg.h.
2080 * src/ioreg.cc: New file.
2081 * src/ioreg.h: New file.
2082 * src/jtag.h: Add io_reg_defs field to jtag_device_def_type struct.
2083 * src/jtagio.cc: Add io_reg_defs field initializers.
2084 * src/remote.cc: Add 'q' packet handling of "Ravr.io_reg" queries.
2085
2086 2003-03-27 Theodore A. Roth <[email protected]>
2087
2088 * src/remote.cc: Break out of 'g' packet case if an error occurs.
2089
2090 2003-03-27 Theodore A. Roth <[email protected]>
2091 [Contributed by James Harris <[email protected]>]
2092
2093 * src/remote.cc: When handling a 'g' packet, only read the 32 GPR's,
2094 SPL, SPH, and SREG. Reading some other io registers can have side
2095 effects.
2096
2097 2003-03-27 Theodore A. Roth <[email protected]>
2098 [Contributed by James Harris <[email protected]>]
2099
2100 * src/jtag.h: Remove unused deviceType enum.
2101 * src/jtagprog.cc: Tell the jtagbox the device dependant flash and
2102 eeprom pagesizes based on device definition info.
2103
2104 2003-03-26 Theodore A. Roth <[email protected]>
2105 [Contributed by Jeff Rose <[email protected]>]
2106
2107 * src/jtagio.cc (getJtagResponse): Use JTAG_RESPONSE_TIMEOUT instead
2108 of JTAG_COMM_TIMEOUT when reading the response from the jtag box.
2109 * src/main.cc: Don't require hostname and portnumber options if they
2110 aren't needed.
2111
2112 2003-03-25 Theodore A. Roth <[email protected]>
2113 [Contributed by James Harris <[email protected]>]
2114
2115 * src/jtag.h: Add jtag_device_def_type structure.
2116 Add various missing jtag values.
2117 * src/jtagio.cc: Add auto detection and configuration of target device.
2118 Always report jtag box hw and sw versions.
2119 * src/main.cc: Add --part command line option.
2120
2121 2003-03-17 Theodore A. Roth <[email protected]>
2122
2123 * Bootstrap: Add "-a -c" to second call to automake so depcomp will be
2124 installed if it is missing.
2125
2126 2003-02-28 Theodore A. Roth <[email protected]>
2127
2128 * AUTHORS: New file.
2129 * Bootstrap: Allow user to specify which versions of the auto tools
2130 to use by setting environment variables.
2131 * ChangeLog: New file.
2132