|
|
Inhaltsverzeichnis
Arduino StuffWarum Arduino? Blöde IDE, kein „echtes“ Etechnik Gebastel, bestimmt auch nicht optimiert, … ⇒ Weil's schnell geht! Und die libs/sourcen sind ziemlich cool… Die hardware ist sowieso ganz nett. Übrigens, IDE gibt es genug Ansätze, Eclipse zu nutzen (siehe Arduino Playground) oder dotnet based arduino sketch editor… Ich stehe ja eher so auf SciTE (http://www.scintilla.org). LinksArduino Hacking, GenerellesVorab, der Build Prozess, wie Arduino die header/c++ Files zusammensetzt und g++/avrdude aufruft kann man gut unter http://code.google.com/p/arduino/wiki/BuildProcess lesen. Das Preferences file wird unter http://www.arduino.cc/en/Hacking/Preferences beschrieben.
http://code.google.com/p/arduino/wiki/Porting sagt uns:
To use a different ATmega/AVR chip, you'll need to make changes to the Arduino core, which is in the hardware/cores/arduino sub-folder of the Arduino application directory. This shouldn't be too hard, but it will require reading the datasheet for your chip. In particular, the names of registers and register bits are likely to vary between microcontrollers. Wichtig sind aber für solche Spielereien die boards.txt, programmers.txt sowie der hardware/cores Ordner. Upload Settings
Upload process
Sketches are uploaded by avrdude. The upload process is also controlled by variables in the boards and main preferences files. Those in the boards file include: <BOARD>.upload.protocol: the protocol that avrdude should use to talk to the board (typically „stk500“). <BOARD>.upload.speed: the speed (baud rate) avrdude should use when uploading sketches (typically „19200“). <BOARD>.upload.maximum_size: the maximum size for a sketch on the board (dependent on the chip and the size of the bootloader). And in the main preferences file: upload.verbose: whether or not to dump debugging messages while upload a sketch to a board (defaults to „false“). NET-IO Arduino PortGeniale Doku! Kopiert von http://arduino.cc/forum/index.php?topic=58389.0
boards.txt pollin168.name=Pollin Eval Board w/ ATmega168 pollin168.upload.protocol=ponyser pollin168.upload.maximum_size=14336 pollin168.upload.speed=19200 pollin168.bootloader.low_fuses=0xff pollin168.bootloader.high_fuses=0xdd pollin168.bootloader.extended_fuses=0x00 pollin168.bootloader.path=atmega pollin168.bootloader.file=ATmegaBOOT_168_diecimila.hex pollin168.bootloader.unlock_bits=0x3F pollin168.bootloader.lock_bits=0x0F pollin168.build.mcu=atmega168 pollin168.build.f_cpu=16000000L pollin168.build.core=arduino
programmers.txt pollinisp.name=Pollin Eval Board as ISP pollinisp.communication=serial pollinisp.protocol=ponyser pollinisp.speed=19200 NET-IO Arduino Port mit atmega1284p + stk600
boards.txt netio.name=NET-IO 1284p netio.upload.using=stk600 netio.upload.maximum_size=65535 netio.build.mcu=atmega1284p netio.build.f_cpu=16000000L netio.build.core=netio
programmers.txt avrisp.name=AVR ISP STK600 avrisp.communication=usb avrisp.protocol=stk600
boards.txt Multiplo_Brain_M1284_DuinOS.name=Multiplo.Brain.M1284 + DuinOS Multiplo_Brain_M1284_DuinOS.upload.protocol=stk500v2 Multiplo_Brain_M1284_DuinOS.upload.maximum_size=131072 Multiplo_Brain_M1284_DuinOS.upload.speed=19200 Multiplo_Brain_M1284_DuinOS.upload.verbose=true Multiplo_Brain_M1284_DuinOS.bootloader.low_fuses=0xFF Multiplo_Brain_M1284_DuinOS.bootloader.high_fuses=0xDC Multiplo_Brain_M1284_DuinOS.bootloader.extended_fuses=0xFD Multiplo_Brain_M1284_DuinOS.bootloader.path=ADABootloader Multiplo_Brain_M1284_DuinOS.bootloader.file=ADABoot_1284p.hex Multiplo_Brain_M1284_DuinOS.bootloader.unlock_bits=0x3F Multiplo_Brain_M1284_DuinOS.bootloader.lock_bits=0x0F Multiplo_Brain_M1284_DuinOS.build.mcu=atmega1284p Multiplo_Brain_M1284_DuinOS.build.f_cpu=16000000L Multiplo_Brain_M1284_DuinOS.build.core=arduino.DuinOS Multiplo_Brain_M1284_DuinOS.verbose=true ############################################################## arduino_bahbots1284p.name=Arduino-BahBots 1284p arduino_bahbots1284p.upload.protocol=stk500v2 arduino_bahbots1284p.upload.maximum_size=122880 arduino_bahbots1284p.upload.speed=38400 arduino_bahbots1284p.bootloader.low_fuses=0xFF arduino_bahbots1284p.bootloader.high_fuses=0xD8 arduino_bahbots1284p.bootloader.extended_fuses=0xFF arduino_bahbots1284p.bootloader.path=bahbots arduino_bahbots1284p.bootloader.file=stk500boot_v2_bahbots1284.hex arduino_bahbots1284p.bootloader.unlock_bits=0x3F arduino_bahbots1284p.bootloader.lock_bits=0xFF arduino_bahbots1284p.build.mcu=atmega1284p arduino_bahbots1284p.build.f_cpu=18432000L arduino_bahbots1284p.build.core=arduino ############################################################## |
|||
|
|
||||