/
README
78 lines (61 loc) · 2.52 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
================================================================================
___________ ____________
__________________ ____ \ _ \ \ \ \ \_
\ __ \ \/ \/ 7 _/ / / __ / \_
/ 7 / / _ \ /___/ 7 / _ \_
/_ ____/_ /\_/ / 7 / /_ / 7 \
\________/ \__/ /___/________/\______/\_____/___________/
[asmegir.hopto.org]
e m B L O D
================================================================================
Content:
=========
License
Compiling
Programming
License
==========
The License for emBLOD is found in the file COPYING.
Introduction
===============
emBLOD is a bootloader for AVR32 devices. Bootloading is done from SD(HC) memory
card. By default a file named autorun.bin will be booted, but this can be
controlled by the boot parameters in the file bootparm.txt.
Affected GPIO's
=================
The GPIO pins used for USART, SPI etc is set up in emblod_config.h
emBLOD toggle GPIO_PB29 during SD card access. GPIO_PB29 is connected to a LED
on Mizar32 and EVK1100.
Boot parameters
=================
If a file named bootparm.txt is present on the SD card root directory the
parameters in this file will be read and used during boot. Otherwise the
bootloader will try to load autorun.bin with default parameters.
If nothing is available to load the bootloader complains and give up.
Possible boot parameters:
banner - A banner can optinally be displayed.
baudrate - The baudrate for the serial port.
bootfile - The filename to load
bootdelay - If, for some reason, a pause between loading the bootfile and start
running the loaded code is wanted, a value in seconds can be given.
loadaddr - The bootfile will be loaded to this address.
bootaddr - When the bootloader is done, execution continue at this address.
fcpu - The frequency of the CPU that the bootloader will turn over to the
loaded program.
fpba - The frequency of the PBA bus that the bootloader will turn over to the
loaded program.
Compiling
==========
emBLOD will compile by typing:
make clean
make
in the directory containing the Makefile.
The default compilation is for Mizar32
Compiling for EVK1100 is done by typing:
make clean
make BOARD=EVK1100
Programming EVK1100/Mizar32
===========================
Typing:
make program
will program the binary to the flash memory of the chip.