Subversion Repositories svnkaklik

Rev

Rev 134 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

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