roboforum.ru

Технический форум по робототехнике.

Кросс компиляция GCC (AVR) из под MAC OS X

Программирование микроконтроллеров AVR, PIC, ARM.
Разработка и изготовление печатных плат для модулей.

Кросс компиляция GCC (AVR) из под MAC OS X

Сообщение setar » 04 май 2010, 00:03

Не знаю работает ли кто из посетителей форума как и я на Mac OS X (для тех кто не в курсе это операционная система компании Apple)
Лично мне нравится эта система и я как человек умеющий работать на многих системах могу сказать что она самая удобная.

Безусловно я не лишаю себя функционала форточных программ, у меня и они бегают под эмуляцией, но предпочитаю всё что можно делать непосредственно из под мак оси (MAC OS X).

Так вот, есть отличный набор утилит который позволяет компилировать avr-gcc-3 avr-gcc-4 avr-as , эмулировать, дебагить, заливать через бутлоадер на контроллер.
CrossPack for AVR® Development
logo150.jpg
logo150.jpg (6.13 КиБ) Просмотров: 2820


Добавлено спустя 54 минуты 21 секунду:
например вот так прошивается прошивка ORFA в контроллер OR-AVR-M128-S удаленно через блютуз модуль OR-BT20-115.2
(в контроллер должен быть зашит бутлоадер [[Файлы_Open_Robotics]] ):
Код: Выделить всёРазвернуть
Tornado-MacBook-2:orfa-v0.8.1 setar$ avrdude -p m128 -c avr911 -P /dev/tty.EFOWireless-SPPslave -b 115200 -U flash:w:"./orfa_v0.8.1_or-avr-m128-s_master_bauto_pv1.1.hex":i -U signature:r:con:r -F -v

avrdude: Version 5.8cvs, compiled on Jan 15 2010 at 17:27:01
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/usr/local/CrossPack-AVR-20100115/etc/avrdude.conf"
         User configuration file is "/Users/setar/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/tty.EFOWireless-SPPslave
         Using Programmer              : avr911
         avr910_devcode (avrdude.conf) : 0x43
         Overriding Baud Rate          : 115200
         AVR Part                      : ATMEGA128
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom         4    12    64    0 no       4096    8      0  9000  9000 0xff 0xff
           flash         33     6   128    0 yes    131072  256    512  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          4    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : avr910
         Description     : Atmel AppNote AVR911 AVROSP

Connecting to programmer: .
Found programmer: Id = "AVRBOOT"; type = S
    Software Version = 0.8; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=256 bytes.

Programmer supports the following devices:
    Device code: 0x44

avrdude: devcode selected: 0x44
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.04s

avrdude: Device signature = 0x1e9702
avrdude: safemode: Fuse reading not support by programmer.
              Safemode disabled.
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "./orfa_v0.8.1_or-avr-m128-s_master_bauto_pv1.1.hex"
avrdude: writing flash (7654 bytes):

Writing | ################################################## | 100% 2.25s



avrdude: 7654 bytes of flash written
avrdude: verifying flash memory against ./orfa_v0.8.1_or-avr-m128-s_master_bauto_pv1.1.hex:
avrdude: load data flash data from input file ./orfa_v0.8.1_or-avr-m128-s_master_bauto_pv1.1.hex:
avrdude: input file ./orfa_v0.8.1_or-avr-m128-s_master_bauto_pv1.1.hex contains 7654 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 1.96s



avrdude: verifying ...
avrdude: 7654 bytes of flash verified
avrdude: reading signature memory:

Reading | ################################################## | 100% 0.05s

avrdude: writing output file "con"

avrdude done.  Thank you.

Аватара пользователя
setar
Site Admin
 
Сообщения: 10984
Зарегистрирован: 04 окт 2004, 12:58
Откуда: St.Petersburg
Skype: taranenko.sergey
ФИО: Сергей Тараненко

Вернуться в Микроконтроллеры

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0

cron