|
From: | Ralf Glaser, track IT |
Subject: | Re: [avrdude-dev] programming XMega D3 boot section |
Date: | Thu, 26 Jul 2012 14:17:46 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 |
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!
[Prev in Thread] | Current Thread | [Next in Thread] |