main.c File Reference

Flash boot loader main. More...

#include "hw/hw_boot.h"
#include "cfg/cfg_ser.h"
#include <net/xmodem.h>
#include <cfg/compiler.h>
#include <cfg/debug.h>
#include <cfg/macros.h>
#include <drv/ser.h>
#include <drv/timer.h>
#include <drv/flash_avr.h>
#include <string.h>
#include <avr/wdt.h>

Go to the source code of this file.


Detailed Description

Flash boot loader main.

This is a simple generic bootloader app. It requires only a serial port to work. Try to receive a file through XMODEM protocol and flash it on program memory. BOOT_INIT, BOOT_END are macros used to perform special operations respectively at boot start and boot end and are CPU dependant. The macro START_APP() jumps to main application start.

Version:
Id
main.c 1976 2008-12-04 17:58:32Z asterix
Author:
Stefano Fedrigo <aleph@develer.com>

Francesco Sacchi <batt@develer.com>

Daniele Basile <asterix@develer.com>

Definition in file main.c.