Subversion Repositories svnkaklik

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
134 kaklik 1
AVR GCC development environment test software.
2
See the following article for details:
3
http://main.linuxfocus.org/English/November2004/article352.shtml
4
 
5
To compile type the command:
6
make
7
 
8
Note: You will get some warnings "#warning "This header file is obsolete."
9
during compilation with avr-libc-1.4.X. This is because this code will 
10
also work with avr-libc-1.2.X
11
 
12
Alternative 1: Programming with uisp (dapa programmer):
13
-------------------------------------------------------
14
Make sure that you have loaded the following modules in the kernel (for 2.4.x)
15
before you use the uisp programmer:
16
> /sbin/lsmod 
17
Module                  Size  Used by
18
parport_pc             17808   0
19
ppdev                   5312   0 (unused)
20
parport                25856   0 [parport_pc ppdev]
21
 
22
 
23
To compile and load use:
24
make loaduisp
25
 
26
Alternative 2: Programming with avrusb500 (high speed usb programmer from tuxgraphics):
27
---------------------------------------------------------------------------------------
28
Make sure that you have loaded the following modules in the kernel
29
before you use the uisp programmer:
30
> /sbin/lsmod 
31
Module                  Size  Used by
32
ftdi_sio               20568   0
33
usbcore                57792   1 [ftdi_sio usbserial]
34
 
35
 
36
To compile and load use:
37
make load
38
 
39
Files:
40
------
41
avrm8ledtest.c        # the c source code for ATmega8
42
avrm8ledtest_pre.hex  # pre-compiled loadable object in case you have
43
                      # trouble to compile the software
44
Makefile              # Makefile 
45
README.txt            # this file
46
circuit.gif           # schematic as gif image
47
 
48
-------------------------------------------
49
History:
50
version 0.1: 2004-10-01, first Version
51
version 0.2: 2004-12-30, corrected fault in delay_ms function
52
version 0.3: 2005-10-04, new modular programming with the scripts prg_load_uc
53
                         and prg_fusebit_uc for easy transition to the new
54
			 avrusb500 programmer
55
version 0.4: 2006-03-02, compiler independent delay loop. The old delay_ms
56
                         would behave totally different with the new gcc-4
57
			 version.
58
version 0.5: 2006-03-10, Fault in delay_ms corrected
59
-------------------------------------------
60
Copyright: GPL
61
Written by guido socher <guido at tuxgraphics.org>
62
-------------------------------------------
63