Rev 410 | Blame | Compare with Previous | Last modification | View Log | Download
AVR GCC development environment test software.See the following article for details:http://main.linuxfocus.org/English/November2004/article352.shtmlTo compile type the command:makeNote: You will get some warnings "#warning "This header file is obsolete."during compilation with avr-libc-1.4.X. This is because this code willalso work with avr-libc-1.2.XAlternative 1: Programming with uisp (dapa programmer):-------------------------------------------------------Make sure that you have loaded the following modules in the kernel (for 2.4.x)before you use the uisp programmer:> /sbin/lsmodModule Size Used byparport_pc 17808 0ppdev 5312 0 (unused)parport 25856 0 [parport_pc ppdev]To compile and load use:make loaduispAlternative 2: Programming with avrusb500 (high speed usb programmer from tuxgraphics):---------------------------------------------------------------------------------------Make sure that you have loaded the following modules in the kernelbefore you use the uisp programmer:> /sbin/lsmodModule Size Used byftdi_sio 20568 0usbcore 57792 1 [ftdi_sio usbserial]To compile and load use:make loadFiles:------avrm8ledtest.c # the c source code for ATmega8avrm8ledtest_pre.hex # pre-compiled loadable object in case you have# trouble to compile the softwareMakefile # MakefileREADME.txt # this filecircuit.gif # schematic as gif image-------------------------------------------History:version 0.1: 2004-10-01, first Versionversion 0.2: 2004-12-30, corrected fault in delay_ms functionversion 0.3: 2005-10-04, new modular programming with the scripts prg_load_ucand prg_fusebit_uc for easy transition to the newavrusb500 programmerversion 0.4: 2006-03-02, compiler independent delay loop. The old delay_mswould behave totally different with the new gcc-4version.version 0.5: 2006-03-10, Fault in delay_ms corrected-------------------------------------------Copyright: GPLWritten by guido socher <guido at tuxgraphics.org>-------------------------------------------