Difference between revisions of "Arduino"
(→Synopsys) |
(→Synopsys) |
||
Line 1: | Line 1: | ||
= Synopsys = | = Synopsys = | ||
− | The Arduino UNO board ( | + | The [https://store.arduino.cc/arduino-uno-rev3 Arduino UNO] is a low cost, open-source board produced by [http://www.arduino.cc/ Arduino] with Atmel (now Microchip) [http://www.microchip.com/wwwproducts/en/ATMEGA328P ATmega328p] microcontroller, interfaces to USB, and many I/O to connect whatever device you need. |
+ | The [https://store.arduino.cc/arduino-uno-rev3 Arduino UNO] board (see Figure 1.1) is supported by the [[Architecture:_Atmel_AVR8|Atmel AVR8]] porting of ERIKA Enterprise v3 and by [https://www.arduino.cc/en/Main/Software Arduino SDK 1.8.5]. | ||
− | |||
− | The Arduino | + | [[File:Arduino_uno.jpg|center|thumb|Figure 1.1: The Arduino UNO board]] |
+ | |||
+ | |||
+ | = Configuration and Programming = | ||
+ | |||
+ | Here are listed, after the informations to set Arduino parameters, the OIL fields customized to integrate the [https://www.arduino.cc/en/Main/Software Arduino SDK 1.8.5] in ERIKA Enterprise v3. | ||
+ | |||
+ | == Arduino SDK Path == | ||
+ | |||
+ | It is possible to choose the path of the [https://www.arduino.cc/en/Main/Software Arduino SDK 1.8.5] in three different ways: | ||
+ | |||
+ | * ''Arduino SDK specific environment variables'': '''ARDUINO_SDK_FILES'''. | ||
+ | ** E.g.: ARDUINO_SDK_FILES="C:\Program Files (x86)\Arduino". | ||
+ | * ''RT-Druid Eclipse IDE Property''. | ||
+ | * ''RT-Druid Configuration File Entry'': '''preference_avr8__path_for_arduino_sdk'''. | ||
+ | ** E.g.: preference_avr8__path_for_arduino_sdk="C:\Program Files (x86)\Arduino". | ||
+ | |||
+ | == Arduino Serial Port == | ||
+ | |||
+ | It is possible to choose the Arduino Serial Port in two different ways: | ||
+ | |||
+ | * ''RT-Druid Eclipse IDE Property''. | ||
+ | * ''RT-Druid Configuration File Entry'': '''preference_avr8__serial_port_for_arduino'''. | ||
+ | ** E.g.: preference_avr8__serial_port_for_arduino=COM3 | ||
+ | |||
+ | == Arduino Serial Baurate == | ||
+ | |||
+ | It is possible to choose the Arduino Serial Baudrate in two different ways: | ||
+ | |||
+ | * ''RT-Druid Eclipse IDE Property''. | ||
+ | * ''RT-Druid Configuration File Entry'': '''preference_avr8__serial_baudrate_for_arduino'''. | ||
+ | ** E.g.: preference_avr8__serial_baudrate_for_arduino=115200 | ||
+ | |||
+ | See [[RT-Druid_configuration]]. | ||
+ | |||
+ | == Library Integration == | ||
+ | |||
+ | '''LIB''' section in the OIL file MUST be set to '''ARDUINO'''. | ||
+ | |||
+ | '''ARDUINO'' library section has the following objects and attributes: | ||
+ | * '''STAND_ALONE''': Arduino SDK integration Mode. | ||
+ | ** '''FALSE''': To integrate Arduino SDK in libee.a. | ||
+ | ** '''TRUE''': To generate a stand-alone libarduinosdk.a. | ||
+ | * '''SDK_BOARD''': Arduino SDK Board Selection. | ||
+ | ** '''UNO''': Arduino UNO. | ||
+ | * '''VARIANT''': Arduino SDK Variant. | ||
+ | ** '''CC''': Arduino.cc. | ||
+ | *** ''' VERSION''': Version. | ||
+ | |||
+ | Example of a LIB section: | ||
+ | |||
+ | LIB = ARDUINO { | ||
+ | /* Used to select Board: UNO or NANO */ | ||
+ | SDK_BOARD = UNO; | ||
+ | /* Used to select vendor: CC or ORG */ | ||
+ | VARIANT = CC { | ||
+ | VERSION = "1.8.5"; | ||
+ | }; | ||
+ | /* Create libarduino.a */ | ||
+ | STAND_ALONE = TRUE; | ||
+ | }; | ||
= Requirements = | = Requirements = |
Revision as of 18:04, 20 December 2017
Contents
Synopsys
The Arduino UNO is a low cost, open-source board produced by Arduino with Atmel (now Microchip) ATmega328p microcontroller, interfaces to USB, and many I/O to connect whatever device you need.
The Arduino UNO board (see Figure 1.1) is supported by the Atmel AVR8 porting of ERIKA Enterprise v3 and by Arduino SDK 1.8.5.
Configuration and Programming
Here are listed, after the informations to set Arduino parameters, the OIL fields customized to integrate the Arduino SDK 1.8.5 in ERIKA Enterprise v3.
Arduino SDK Path
It is possible to choose the path of the Arduino SDK 1.8.5 in three different ways:
- Arduino SDK specific environment variables: ARDUINO_SDK_FILES.
- E.g.: ARDUINO_SDK_FILES="C:\Program Files (x86)\Arduino".
- RT-Druid Eclipse IDE Property.
- RT-Druid Configuration File Entry: preference_avr8__path_for_arduino_sdk.
- E.g.: preference_avr8__path_for_arduino_sdk="C:\Program Files (x86)\Arduino".
Arduino Serial Port
It is possible to choose the Arduino Serial Port in two different ways:
- RT-Druid Eclipse IDE Property.
- RT-Druid Configuration File Entry: preference_avr8__serial_port_for_arduino.
- E.g.: preference_avr8__serial_port_for_arduino=COM3
Arduino Serial Baurate
It is possible to choose the Arduino Serial Baudrate in two different ways:
- RT-Druid Eclipse IDE Property.
- RT-Druid Configuration File Entry: preference_avr8__serial_baudrate_for_arduino.
- E.g.: preference_avr8__serial_baudrate_for_arduino=115200
Library Integration
LIB section in the OIL file MUST be set to ARDUINO.
'ARDUINO library section has the following objects and attributes:
- STAND_ALONE: Arduino SDK integration Mode.
- FALSE: To integrate Arduino SDK in libee.a.
- TRUE: To generate a stand-alone libarduinosdk.a.
- SDK_BOARD: Arduino SDK Board Selection.
- UNO: Arduino UNO.
- VARIANT: Arduino SDK Variant.
- CC: Arduino.cc.
- VERSION: Version.
- CC: Arduino.cc.
Example of a LIB section:
LIB = ARDUINO { /* Used to select Board: UNO or NANO */ SDK_BOARD = UNO; /* Used to select vendor: CC or ORG */ VARIANT = CC { VERSION = "1.8.5"; }; /* Create libarduino.a */ STAND_ALONE = TRUE; };
Requirements
ERIKA Enterprise v3 supports Atmel AVR ATmega328p.
- Atmel Studio
- WinAVR
Useful links