Thanks for your help. I've checked out the latest SVN version and
everything seems to be working fine now (even though it took me some
time to figure out how to compile it on Win XP).
Some words of advice to those who might try to compile in cygwin
environment and with WinAVR installed:
- using mingw-gcc as advised by ./configure is what you want to do, no
further adjustments required to build avrdude
- make sure that the tools installed with cygwin are used, not those
that came with WinAVR (bison, flex etc.) as they need to handle
cygwin-syle paths
- the eclipse AVR plugin doesn't seem to like the "new" avrdude (i
suppose because of the changed avrdude.conf syntax)
Besides this:
- using memory type 'flash' instead of 'application' also resulted in
avrdude programming the application without deleting the bootloader
- programming the boot section with an intel hex file doesn't work
because of the offsets which are interpreted as offsets from start of
boot section not from start of memory as should be (using binary files
works fine)
Best regards,
Ralf
Am 26.07.2012 12:25, schrieb David Zanetti:
On Wed, 2012-07-25 at 16:40 +0200, Ralf Glaser, track IT wrote:
i'm trying to program the boot section of an ATXMega128D3 and it doesn't
seem to work.
XMEGA support does seem to be quite broken for flash sections on
released versions. I've had less problems with r1090 from SVN (and
probably newer SVN versions are okay as well). In particular, it honors
page-by-page erase so you don't need to do a chip erase and your
bootloader doesn't disappear, and it honors the "application" space
which is good because doing anything to "flash" erases the boot section
as well it appears.
For a board I have using a 192D3 (slightly larger flash version of the
same chip) I can do the following and retain the bootloader:
avrdude -p x192d3 -c avrisp2 -P usb -U application:w:target.hex
I'm using Xboot ( http://code.google.com/p/avr-xboot/ ) and it flashes
the bootloader to the "boot" section but does so with an image which
assumes you're using "boot" as a section (ie, 0 is start of boot, not
start of flash/application).
Works at least from SVN copies, anyway!
_______________________________________________
avrdude-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev