15 décembre 2009

Xmega bootloader new version

Here is a new version of the Xmega bootloader which works at 115200 bps and with the buggy versions of Xmega that have some problems to be self flashed. This version has been tested on Xmega192A3 and stk600. The serial connection use the pins PORTD2 and PORTD3 for the rx/tx. Connection speed must be set to 115200 with avr-dude.
Example of the command to use under linux to flash with avrdude (version 5.8):


avrdude -p x192a3 -P /dev/ttyUSB0 -c avr109 -b 115200 -U flash:w:test.hex


There is a temporisation at boot. After reset or cold start, the MCU waits 3 seconds max until it starts its application. There is no dedicated pin to set to enter flashing mode.
Source code and hex image:
bootloader_192a3_115200.zip

1 commentaire:

MarinaPfeiffer a dit…
Ce commentaire a été supprimé par un administrateur du blog.