[an error occurred while processing this directive] [an error occurred while processing this directive]
Откуда Вы это взяли? Поддерживается работа с объектными форматами нескольких компиляторов
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
[an error occurred while processing this directive] [an error occurred while processing this directive]

Отправлено BLACKEAGLE 03 мая 2002 г. 23:21
В ответ на: А почему он С не поддерживает?(-) отправлено Аlecsandro 03 мая 2002 г. 20:07

Вот выдержки из aStudio4 Tutorial:


There is a number of good C compilers available for the AVR family of microcontrollers including the compilers from IAR and Imagecraft which can be purchased, or the AVR GCC compiler that can be downloaded from a number of sites, including www.avrfreaks.com.

Using these compilers, you typically program in an environment set up by the compiler vendor. You maintain your code project in a 3rd party tool. You typically set the compiler to produce code in DEBUG mode, which means that references to the high level code will be added to the compiled source. When you compile and link, you create an object file, and that object file can be loaded directly in AVR Studio 4.

Different compilers uses different object file formats. A number of formats are supported by the industry, some are proprietary for the compiler vendor company (like UBROF from IAR) and some are open and documented for everyone (like ELF used by the AVR GCC C compiler). In order to understand the code that your compiler and linker created AVR Studio must use an object file parser.

Currently AVR Studio 4 supports and will automatically detect UBROF (IAR), Nordic (AVR Assembler), COFF (Imagecraft, Codevision, ELAB, etc), ans Intel Hex object files. An ELF/DWARF object file parser is in the planning.

In order to use an externally created objectfile with the AVR studio, use the Open Object File option in the File pulldown menu. If the file is created in debug mode, AVR Studio will create some magic: It opens the file, detects which object file format is used, locks up the source code and displays the source code in the editor view. If you have an emulation platform available (or have selected the internal simulator) you are ready to rock: Pressing F5 will start the selected debug mode. You can set breakpoints in the code view, you can crag-and-drop variables down to the watch view, you can manipulate the controller through the use of the I/O view.

So, external code projects and AVR Studio 4 is an easy match.


Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru