Commit graph

49 commits

Author SHA1 Message Date
Dukejung
17a69524ee Add OpenCR.mk for OpenCR 1.0 board and add example code(example/BlinkOpenCR) 2019-02-11 16:54:35 +09:00
Pieter du Preez
a285810cb5 Added a test case for moving CORE_LIB in PR #583.
This patch is meant to test the link order, if the OTHER_OBJS
variable gets used to add 3rd party archives, that depend on the
Arduino core lib (the archive pointed to by the CORE_LIB variable).

The examples/Blink3rdPartyLib directory contains a stripped down Blink
and includes a library in the examples/Blink3rdPartyLib/Toggle
sub-directory. The archive, built inside the Toggle directory mimics a
3rd party library. The archive gets built and linked in by using the
OTHER_OBS variable in examples/Blink3rdPartyLib/Makefile.
2018-10-02 23:00:14 +02:00
John Whittington
3f32563683 Support for Arduino Due added
Update HISTORY.md

Add avr core emulation to C sources
2018-06-14 07:29:06 +01:00
John Whittington
f804866095 SAMD Cortex M0 device support (Zero, MKR1000, etc)
Compilation improvements by adding variant as other obj but not working on device

Arduino Zero devices with OpenOCD working

Created ARM_TOOLS_DIR and define arm toolchain executables in Sam.mk

Check avr-gcc on last AVR_TOOLS_DIR detect and indenting formatting

GDB debugging and programming added

Documentation updates and define ARDMK_VENDOR rather than include Sam.mk

Expand all parse_boards when defined rather than when used

Trim extra defines regex working on both macOS and Linux but need better fix

Print USB ids and added debug usage to readme

Add note on Arduino package dir and made board.txt work

Do ARM ARDUINO_ARCH define in Arduino.mk]

Add MZeroBlink to non-testable examples for now

Remove \B from extra defines grep

Add ARDUINO_PACKAGE_DIR for board support files

Fix a typo in the README

Fix typo in arduino-mk-vars.md

Prevent re-including Arduino.mk from Sam.mk when make restarts for upload

Add catrina to ARD_REST_OPTS if/else

Remove realpath in Sam.mk for cygwin compatability

SAMD bootloader support in ard-reset using --zero

Enters bootloader using open/close of port at 1200 BAUD, then polls the
attached devices for new port enumerating (bootloader). This is how the
Arduino IDE operates

Bossa support for Zero, MKR1000 etc

Re-word Arm README section after Native USB development

Reset for zero refactored like IDE

Zero bootloader reset tested on macOS and comments added

Re-word ARM bootloader and remove imports from testing

Patch changes ARDMK_VENDOR->ARCHITECHTURE, show_config_vars, ignore CORE_VER if emtpy

Common.mk header guard, openocd/bossac avoid separator, typos

Documentation update for patch changes

Move ARM tools to Sam.mk and auto-detect include

Correct accidental commit of Blink Makefile change

Lib fix with alternative core and documentation

Append zero to ARD_RESET_OPTS rather than set

Prioritise package ARM upload tools over path installed

Add note in README on ARM tools versions

Move openocd variant config script flag to OPTS
2018-02-24 11:15:53 +00:00
Simon John
6d3d973cd4 Moved ATtiny examples from Blink to ATtinyBlink and updated the instructions (issue #537).
Updated the alternate core instructions for e.g. ATmega644p for IDE 1.8
2017-12-28 17:55:01 +00:00
Karl Semich
5bcb64ade9 Add makefile for Robotis OpenCM & update version to 1.6.0 2017-07-12 23:55:05 +00:00
Milan Vancura
1b5494f262 Fix paths in the example Makefile 2017-06-02 09:54:35 +02:00
Milan Vancura
60d7e9401e Document how to setup Makefile for 3rd party boards 2017-06-02 00:37:03 +02:00
Thomas Kilian
ededb0ebbc Correct path ARDUINO_DIR for Macs 2015-09-21 17:34:47 +02:00
michael
f7efd1ba97 Fix typo 2015-08-04 21:44:15 -04:00
Simon John
1ccbc03114 Added examples for various boards and IDE versions to the Blink example. 2015-07-02 14:37:28 +01:00
Simon John
eaa8f1fe44 Updated some documentation to clarify 1.5+ settings.
Fixes #352
2015-05-15 18:09:00 +01:00
Daniel Cousens
0da1cb4b1f example: "all of the"
thanks @sej7278
2015-05-09 22:25:10 +10:00
Daniel Cousens
ae80ce16a9 example: further spelling error fixes 2015-05-09 22:04:36 +10:00
Daniel Cousens
bc4d8791e8 Fix s/detailled/detailed typo 2015-05-09 14:10:31 +10:00
Simon John
47395782c3 Replaced UTF-8 copyright symbol causing sed errors on OSX
Fixes issue #335
2015-03-28 16:26:45 +00:00
Sudar
861d2ff72f Add a new example to show how serial monitor can be used 2015-03-28 19:40:50 +05:30
Sudar
6f326e6e26 Whitespace fixes in examples 2015-03-28 19:37:49 +05:30
Gabrielius Mickevicius
6d549c89aa Tidy new arduino mk vars
Add CORE and FORCE_MONITOR_PORT to arduino-mk-vars.md and FORCE_MONITOR_PORT
to config print.
2014-12-30 17:45:36 +02:00
Gabrielius Mickevicius
4b4592ac3e Note on using root in BlinkNetworkRPi 2014-12-30 17:45:36 +02:00
Gabrielius Mickevicius
a930c9983f Example: set fuses and upload hex on remote programmer
Implements two new make rules: 'net_set_fuses' executes a single
ssh command, 'net_upload' pipes hex through ssh connection.

The example also showcases the FORCE_MONITOR_PORT feature.
2014-12-30 17:45:36 +02:00
stepcut
6534cf8f15 move ARDUINO_DIR auto-detection into Common.mk. This allows Teensy.mk to use auto-detected location. 2014-10-22 15:27:59 -05:00
stepcut
edf90842c5 Added BlinkTeensy example which uses the Teensy.mk file. 2014-10-22 12:23:52 -05:00
Simon John
6be2614c30 Removed Travis-CI references from all examples. Regular users
are not affected by test scripts/makefiles.

Added makefile and gcc version info to config output.

Tested on Arduino 1.0.6
2014-09-21 19:36:50 +01:00
Christopher Peplin
663626f06d Move scripts inside tests directory.
Fixed https://github.com/sudar/Arduino-Makefile/issues/260
2014-09-20 16:26:39 -04:00
Christopher Peplin
086c6e96ca Move tests back to 'examples', skip non-testable examples when testing.
This fixes https://github.com/sudar/Arduino-Makefile/issues/259.
2014-09-20 16:14:32 -04:00
Christopher Peplin
c86ce093ce Add a script to compile examples as an automated test suite.
* Added script/boostrap.sh to download the Arduino IDE and MPIDE (for
    chipKIT). Tested in Linux, should work in Cygwin and OS X too.
* Added script/runtests.sh to run "make" in each example project and
    collect the results. The script returns -1 if any fails.
* Moved currently testable examples to a "tests" directory, separate
    from examples that require alternative cores.
2014-09-09 23:17:15 -04:00
Ben Gamari
a58062611e MakefileExample: Fix AVR_TOOLS_DIR default
Judging by the default for OS X directly above it and the fact that the current default doesn't work, it seems this should not include the `/bin`.
2014-08-14 12:14:40 -04:00
ladislas
51e65b0a08 add CFLAGS_STD and CXXFLAGS_STD defaults 2014-08-13 17:52:32 +02:00
tinyladi
668a447054 Add a reference makefile, with real-world example 2014-03-06 22:48:25 +05:30
Christopher Peplin
e50caad1e9 Don't hard code MONITOR_PORT in examples, for more flexible testing. 2014-01-28 09:44:33 -05:00
Sudar
ce9c54848f Remove arduino-mk folder from all examples
Fix #154
2014-01-14 14:36:24 +05:30
Sudar
c93304cf94 Add a README file for /examples folder
Fix #74
2013-09-22 18:23:10 +05:30
Christopher Peplin
266d629c25 Rename ARDUINO_PORT to MONITOR_PORT to reflect support for other platforms.
This commit includes backwards compatibility with the ARDUINO_PORT flag if
that's set.

Fix #109
2013-07-10 09:05:38 +05:30
Christopher Peplin
df88db2cfb Add support for the Digilent chipKIT platform
This commit modifies a few things in Arduino.mk to be able to support
overriding the necessary configuration options to support the chipKIT build,
and also includes an example sketch configured to build for the Max32 platform.

In addition the following changes were done as well

- Control C standard with a CFLAGS_STD flag, GNU99 by default.
- Duplicate show_config_variable in each sub-makefile.
- Remove redundant output of ARDUINO_PREFERENCES_PATH from config table.
- Defer Priting ARDMK_DIR until Arduino.mk.
- Define names of compiler tools earlier to use for path checking.

Duplicating show_config_variable is unfortunate because the code is duplicated,
but I don't see a good way around it since we need to dupliacate the check
for ARDMK_DIR before we can find Common.mk.

Fix #98
2013-07-09 21:42:05 +05:30
Christopher Peplin
e77df36522 Don't commit example build directories to git. 2013-07-09 21:42:05 +05:30
Sudar
7e66672a6c Auto detect alternate core path from sketchbook folder
Fix #86
2013-06-23 13:08:06 +05:30
Sudar
2b75a0ddb4 Add Tiny SoftwareSerial example
This example shows how to use softwareSerial in a ATtiny device using
the ATtiny core
2013-06-22 15:35:01 +05:30
Sudar
e0856e51d9 Remove "utility" from example makefiles
From commit fc968b9191 files inside
utility are automatically build.

Fix #84
2013-06-22 11:48:26 +05:30
Sudar
0149f34daf Add an example to show how to compile AVR C files 2013-06-15 19:42:13 +05:30
Sudar
6759270537 Added example to show how to program using Arduino as ISP. Fixes #55 2013-06-09 17:20:05 +05:30
Jeff Kowalski
5634d8ba51 removed unnecessary .DS_Store 2013-03-16 00:19:56 -07:00
Martin Oldfield
409823d061 Fixed broken examples/Blink/Makefile 2012-04-29 18:57:42 +01:00
Martin Oldfield
79068828f1 Rejig path calculations.\nMove reset target to Perl.\n 2012-04-29 18:55:17 +01:00
Martin Oldfield
9c7f173c7b Added monitor target and AnalogInOutSerial example 2012-04-29 12:06:41 +01:00
Christopher Peplin
41813e8ce3 Remove build files and add to gitignore. 2012-03-25 23:56:06 -04:00
Martin Oldfield
b3051f5fa7 Remove more object files 2012-02-28 11:48:44 +00:00
Martin Oldfield
c2796edfe5 Remove object files 2012-02-28 11:48:20 +00:00
Martin Oldfield
c0e6db4dab Initial NWO check in 2012-02-28 09:06:56 +00:00