AT90 family data sheets in portable document format (pdf, AdobeAcrobat)The next item is a language. The obvious choice is assembly. A 110page book about the instruction set (the words of the language andtheir use) is available from Atmel. This book covers the completeAVR (trademark Atmel) instruction set. Check the datasheet for theuC of your choice above to tell you which words you can use. Youcan download the
instruction set in portable document formatAn alternative may be C, available as a version ofgcc/binutils:
WindowsAVRGCCNote: the avr-gcc/binutils combination is able to provide Intel Hexfiles, suitable for upload to an AVR uC using sp12. More about thatin the Linux section below.
GNU tools voor AVR
FastAVR
http://www.archive.org/details/tucows_7992_tavrasmOthers are freely available from Atmel:
AVR Studio:AVR Studio 4 is the new professional Integrated DevelopmentEnvironment (IDE) for writing and debugging AVR applications inWindows 9x/NT/2000 environments. AVR Studio 4 supports thefollowing AVR development tools: ICE50, JTAGICE, ICE200,STK500/501/502 and AVRISP.
IAR AVR Assembler:Archive Containing the IAR Assembler Version 1.50 for theAVR family of microcontrollers. Fully featured command lineassembler. Includes Linker and Librarian. Compatible with AVRStudio. Documentation inlcluded in PDF format.
|
|
uC: | author: |
Tiny12 | Rob van Arem |
ATmega16 | Arian van Dorsten |
ATmega32 | Berndt Brandes |
Tiny13 | Alan Probandt, John Scott |
Tiny26 | Alan Probandt |
ATmega48/V, 88/V and 168/V | Alan Probandt, Jaume Clarens, John Scott |
ATmega162 | Dirk Küppers |
ATmega8535 | Andreas Sims |
ATmega8515 | Christian Spahn |
ATtiny861 | Rob van Arem |
AT90PWM3 | Rob van Arem |
ATtiny25, 45 and 85 | Hubert Weber |
ATmega2561 | Artur Pundsack |
ATmega328P | Malte Marwedel |
ATtiny44 | Malte Marwedel |
sp12 -wX1100To activate BOD with 4.3V as triggerlevel. Then
sp12 -rXTo see whether it reads back properly, and finally reducethe power supply voltage slowly to confirm reset at 4.3V.All entries in de `standard' _sp12dev are written in a common style,but messages can be altered to match a user's preference. Forinstance, Andreas wrote his like this:
sp12 v2.1.2 for Linux andBSD; look below for a tip regarding the use of avr-gcc/binutilsProblems with unpacking the XP version? Here is the gist of a recentemail conversation:
The signed MD5 checksum:sp12v2_1_2-Linux_tgz_md5_txt.asc
sp12 v2.1.1 for XP/NT/W2000
sp12 v2.1.1 for Dos and W3x/9x
You need to use avr-objcopy.exe and specify the output as ihex like: avr-objcopy -O ihex code.elf code.rom or in a makefile like: BIN = avr-objcopy FORMAT = ihex %rom: %elf $(BIN) -O $(FORMAT) $< $@ This will create the output in ihex.
If you like, i have an sp12 sources able to compile using the free borland C under windoze, just let me know. I can provide you a diff file or complete sources.Thank you Jaume! Here is the diff(against sp12 version 2.1.0),
# In order to compile this software under the borland C free compiler # "http://www.borland.com/products/downloads/download_cbuilder.html" # don't use this makefile, just type # "bcc32 -DWIN32 sp12.c init.c flash.c device.c buffer.c eeprom.c winnt.c"
Hello Steven, Here is attached the script (intended for Inno Setup v. 4.2.). It should be deployed in the root subtree, i.e. in the same level with your README files. The script definately have some points to be refined:I think that an automated setup would be appreciated by many users,since MSW makes it something of a chore to install sp12.So I agreed to host Dimo's binary, and also the inno-script.Having the source will allow users to study, alter and possiblyimprove his work. That's what happened to sp12 itself.
1. It doesn't check whether "PATH" already contains the path to the current SP12 binaries (neither deletes the corresponding part of PATH on uninstallation)
2. It doesn't allow a "forced" (re)installation of the driver.
3. It is not tested on NT 4.0 or Win98/ME. It is only tested on XP, and partially on Win2000 Best regards Dimo
Hallo Steven, I have just ported your SP12 programmer to OpenBSD platform and would like to contribute my changes back at you. The essential part is just a few lines long, but I have also done some code cleanup to keep the compiler quiet by replacing strcat() a.o. with strlcat() versions and by renaming `struct logging log' with `struct logging logging' due to collision with math's log() as suggested by compiler. The final code compiles and works fine both at Linux and OpenBSD. Have a nice day, DimaGcc can be a bit pedantic, I find. However, these corrections arevery welcome, will appear in the next version and are recommended forthose who want to compile their own sp12 binary. Here are Dima'sdiffs.
Hi, Here the diffs to allow to compile SP12 v.1.0.3 on FreeBSD. As you can see they are really simple. Cheers, Jean-MarcThe diffs are indeed veryminor.
欢迎光临 DIY编程器网 (http://diybcq.com./) | Powered by Discuz! X3.2 |