As Andreas Løhre wrote: > I have attached a couple of the failing runs on my Atmega2560. The device > is running at 8MHz and no clkdiv8.
Please try the current SVN again. I've committed a number of small changes. Among them is that the CMD3_START_DEBUG command (which was failing on you) is no longer attempted except for debugWIRE targets. All other targets don't appear to need this command. Also, I implemented something which I've always intended: the GDB "load" command now works again. Prerequisite is you need a sufficiently recent GDB (version 7+), since these versions now can automatically detect whether they operate on flash memory, issue a FlashErase first (alas, I couldn't get page erases to work, so it's still a chip erase for AVRs), then download all the data, and finally emit a FlashEnd command so AVaRICE knows there are no more data to expect, and everything can be committed to flash in terms of page writes. This should be a much more versatile replacement for the deprecated flash download functionality from the commandline. In particular, you can now stay within one GDB (and AVaRICE) session even if you recompiled your target binary: GDB automatically detects if the ELF file has changed, and reloads it, so all you need then is to re-issue another "load" command. I also implemented a "monitor" backend command, but there's not much more in it than "help" and "version" (so, that's "monitor version" from within GDB). AVaRICE specific backend hacks might be added in future, like direct support for ICE commands (in hex form). The only thing which is currently on my wishlist and not yet done is to add Xmega watchpoint support (data breakpoints). megaAVR watchpoints are supposed to work again though (so we are better than Atmel Studio 6, hi :). -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) ------------------------------------------------------------------------------ Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 _______________________________________________ avarice-user mailing list avarice-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/avarice-user