Микроконтроллеры
Компьютерная литература
  • формат archive, pdf, txt
  • размер 1,24 МБ
  • добавлен 16 августа 2014 г.
Kormanyos C.M. Real-Time C++ Efficient Object-Oriented and Template Microcontroller Programming - Дополнительные материалы к книге
Архив файлов к книге Kormanyos C.M., Real-Time C++: Efficient Object-Oriented and Template Microcontroller Programming (Springer, Heidelberg, 2013) с сайта поддержки.
Details on the Reference Application: The reference application boots via a small startup code and subsequently initializes a skinny microcontroller abstraction layer (MCAL). Control is then passed to a simple multitasking scheduler that schedules the LED application, services a debug monitor, and triggers the watchdog. The LED application toggles the LED with a frequency of 1/2 Hz.
Supported Targets in the Reference Application: The reference application supports the following targets:
* Win32 in both Release and Debug modes
* ATMEL(R) AVR(R) Atmega328P
* ST microelectronics(R) STM32F100 ARM(R) Cortex(TM)-M3
* ST microelectronics(R) STM32F407 ARM(R) Cortex(TM)-M4
* ST microelectronics(R) STM32F429 ARM(R) Cortex(TM)-M4
* BeagleBone with Texas Instruments(R) AM3359 ARM(R) A8
* Renesas(R) RL78/G13
* Renesas(R) RX600
* Microchip(R) PIC(R)32 MIPS4K
* Considered: Raspberry Pi with ARM(R) 11
Cross Development in the Reference Application: The reference application uses cross-development based on *nix-like make tools in combination with Microsoft(R) Visual Studio(R). Tool chains are not available in this repo (see below for further details). The ATMEL(R) AVR(R) Atmega328P configuration in the reference application
also has a project workspace for ATMEL(R) Atmel Studio(R) 6.
Getting Started with the Reference Application: It is easiest to get started with the reference application using one of the supported boards, such as Arduino(R) or BeagleBone. The reference application can be found in the directory ref_app and its subdirectories. To get started with the reference application, start Visual Studio(R) 2012 (or later) and open the solution ref_app_vs2012.sln. Select the desired configuration. Then rebuild the entire solution. Note that the build in Visual Studio(R) makes heavy use of cross development using a project workspace of type "exteal makefile" to invoke GNUmake (via batch file) in combination with several makefiles. To build any target other than Debug or Release for Win32, a cross-compiler (GNU GCC cross compiler) is required. See the text below for additional details. Upon successful build, the build results, such as the HEX-files, map files, etc., will be placed in the bin directory. There is also a workspace solution for ATMEL(R) Atmel Studio(R)
6. It is called ref_app.atsln.
Target Details: including startup code and linker definition files can be found in the target-directory and its subdirectories.
The ATMEL(R) AVR(R) configuration runs on an Arduino(R) compatible board.
The program toggles the yellow LED on portb.5.
The ARM(R) Cortex(TM)-M3 configuration (called "target stm32f100") runs on
the STM32VLDISCOVERY board commercially available from ST Microelectronics(R).
The program toggles the blue LED on portc.8.
The ARM(R) A8 configuration (called "target am335x") runs on the BeagleBone board (black edition). For the white edition, the CPU clock needs to be reduced from 900MHz to something like 600MHz. This project creates a bare-metal program for the BeagleBone that runs independently form any kind of *nix distro on the board. Our program is designed to boot the BeagleBone from a raw binary file called "MLO" stored on a FAT32 SDHC microcard. The binary file includes a special boot header comprised of two 32-bit integers. The program is loaded from SD-card into RAM memory and subsequently executed. When switching on the BeagleBone black, the boot button (S2) must be pressed while powering up the board. The program toggles the first user LED (LED1 on port1.21).
For other compatible boards, feel free contact me with an issue requesting further details on your desired target system.
GNU GCC Compilers: GNU GCC cross compilers for the microcontroller solutions are *not* available here.
A GNU GCC port with a relatively high level of C++11 awareness such as GCC 4.8 or higher is required for building the reference application.
The make-files are aware of the location of a default location of the respective tool chain. When using the reference application or designing a custom build, the root directory of the tool chain must be properly supplied to the makefiles.
Похожие разделы
  1. Академическая и специальная литература
  2. Информатика и вычислительная техника
  3. Информатика (программирование)
  4. Программирование на ASSEMBLER
  1. Академическая и специальная литература
  2. Информатика и вычислительная техника
  3. Микропроцессорные системы (МПС)
  1. Академическая и специальная литература
  2. Информатика и вычислительная техника
  3. Организация ЭВМ и архитектура ВС
  1. Академическая и специальная литература
  2. Информатика и вычислительная техника
  3. Устаревшие материалы
  4. Аппаратное обеспечение ВТ
  1. Академическая и специальная литература
  2. Наноматериалы и нанотехнологии
  3. Наноэлектроника
  1. Академическая и специальная литература
  2. Радиоэлектроника
  1. Академическая и специальная литература
  2. Радиоэлектроника
  3. Схемотехника
  1. Академическая и специальная литература
  2. Радиоэлектроника
  3. Электронная компонентная база (ЭКБ)
  4. Интегральные микросхемы (ИМС)
  5. Микросхемы цифровые
  6. Микроконтроллеры
  1. Академическая и специальная литература
  2. Топливно-энергетический комплекс
  3. Теоретические основы электротехники (ТОЭ)
  1. Прикладная литература
  2. Компьютерная литература
  3. ASSEMBLER
  1. Прикладная литература
  2. Компьютерная литература
  3. Интернет вещей (IoT)