You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.markdown
+28-16
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
2
-
Arduino CMake
3
-
=============
2
+
# Arduino CMake
4
3
5
4
Arduino is a great development platform, which is easy to use. It has everything a beginner should need. The *Arduino IDE* simplifies a lot of things for the standard user, but if you are a professional programmer the IDE can feel simplistic and restrictive.
6
5
@@ -31,17 +30,15 @@ TODO:
31
30
* Mac OS X
32
31
* Test more complex configurations and error handling
33
32
34
-
Contents
35
-
--------
33
+
## Contents
36
34
37
35
1. Getting Started
38
36
2. Setting up Arduino CMake
39
37
3. Creating firmware images
40
38
4. Creating libraries
41
39
5. Windows Enviroment Setup
42
40
43
-
Getting Started
44
-
----------------
41
+
## Getting Started
45
42
46
43
The following instructions are for **\*nix** type systems, specifically this is a Linux example.
47
44
@@ -118,8 +115,7 @@ For a more detailed explanation, please read on...
118
115
119
116
120
117
121
-
Setting up Arduino CMake
122
-
------------------------
118
+
## Setting up Arduino CMake
123
119
124
120
The first step in generating Arduino firmware is including the **Arduino CMake** module package. This easily done with:
125
121
@@ -135,8 +131,7 @@ That will require an *Arduino SDK* version **0022** or newer. To ensure that the
135
131
find_package(Arduino 22 REQUIRED)
136
132
137
133
138
-
Creating firmware images
139
-
------------------------
134
+
## Creating firmware images
140
135
141
136
Once you have the **Arduino CMake** package loaded you can start defining firmware images.
142
137
@@ -177,8 +172,7 @@ To enable serial terminal, add the `_SERIAL` setting (`@INPUT_PORT@` will be rep
177
172
178
173
179
174
180
-
Creating libraries
181
-
------------------
175
+
## Creating libraries
182
176
183
177
Creating libraries is very similar to defining a firmware image, except we use the `generate_arduino_library` command. The syntax of the settings is the same except we have a different list of settings:
184
178
@@ -207,11 +201,29 @@ Once that library is defined we can use it in our other firmware images... Lets
207
201
generate_arduino_firmware(blink)
208
202
209
203
210
-
Windows Enviroment Setup
211
-
------------------------
204
+
## Windows Enviroment Setup
212
205
213
-
On Windows the *Arduino SDK* is self contained and has everything needed for building. The only thing that has to be done is to place the *Arduino SDK* either on the **system path** or within the system **Program Files** directory. Also you will need to add the ${ARDUINO_SDK_PATH}/hardware/tools/avr/utils/bin directory path to your system path, just make sure it is the first thing on list.
206
+
On Windows the *Arduino SDK* is self contained and has everything needed for building. The only thing that has to be done is to place the *Arduino SDK* either on the **system path** or within the system **Program Files** directory.
207
+
208
+
Also you will need to add the `${ARDUINO_SDK_PATH}/hardware/tools/avr/utils/bin` directory path to your system path, just make sure it is the first thing on list.
214
209
215
210
Once that is done you can start using CMake the usual way, just make sure to chose a **MSYS Makefile** type generator.
216
211
217
-
NOTE: Don't change the default **Arduino SDK** directory name, otherwise auto detection will no work properly!
212
+
NOTE: Don't change the default *Arduino SDK* directory name, otherwise auto detection will no work properly!
213
+
214
+
### Serial Namming
215
+
216
+
When specifying the serial port name on Windows, use the following names:
217
+
218
+
com1 com2 ... comN
219
+
220
+
### Serial Terminal
221
+
222
+
Putty is a great multi-protocol terminal, which support SSH, Telnet, Serial, and many more... The latest development snapshot supports command line options for serial, for example:
0 commit comments