1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 23:55:26 +02:00
Commit graph

69 commits

Author SHA1 Message Date
Doug Schaefer
205ae40897 Bug 500237 - Use specific version of tool for uploads.
Arduino rolled back the version of avrdude that they used but we were
always using the latest version.

Show the arduino package first in the list of Platforms to Add.

Turn on the Arduino Neon site for future updates.

Change-Id: I63a5d638d8ad7894715242949595216f4ff1091a
2016-08-25 21:11:05 -04:00
Doug Schaefer
2958c3ad3a Bug 498894 - Fix makefile template to use platform_path for libs.
For some reason I got rid of platform_path and switched it to
platform_core_path. That's totally wrong for platform libraries.
Putting it back.

Also fix dispose() error when switching to boards that don't have
programmers, such as the Huzzah.

Change-Id: If89bf814f570b78551de85d009e4beec2c435df2
2016-07-29 12:53:49 -06:00
Doug Schaefer
f70020baf1 [Arduino] Library includes were broken.
Change-Id: I29782971f3b1a494cd842010c141aa2734cddafa
2016-07-17 16:25:22 -05:00
Doug Schaefer
55e3ec9054 Bug 497436 - Fix clean on Windows
Also, stop using build_path. It's the current directory anyway.

Change-Id: Ied9f27756835f6621d15d50db8097fc5c526e400
2016-07-10 16:42:05 -04:00
Doug Schaefer
43746a954c Bug 487957 - Platform only includes.
Don't send the library includes to platform source compiles. This has
led to problems as specified in the bug. And they're really shouldn't
be necessary. Also Arduino IDE does things this way.

Change-Id: I70b37b660c98b88b3de18ec53e8b86a119fc0baf
2016-07-10 15:15:14 -04:00
Doug Schaefer
f663382363 Bug 497442 Install libraries in versioned directories.
To be consistent with platforms and to avoid issues with deleting
directories on Windows.

Change-Id: I9284413e8d864bdd49b9f8a0b171bc2d5af719f1
2016-07-10 09:51:57 -04:00
Doug Schaefer
0aeb64635f Bug 490335 Make sure we can update platforms and libraries.
This was totally missing. Implemented now. Will need to test libraries
once they are versioned. Theres a different bug for that.

Change-Id: I539cb32b6cc46e6d9e8768f872fbae94cb21168b
2016-07-06 23:05:21 -05:00
Doug Schaefer
83ffa65e0f Bug 495350 Fix issues upgrading Mars Arduino workspaces.
Change-Id: I9617a33cbe427f03f57c85962286bd7104146d46
2016-07-05 23:30:41 -05:00
Doug Schaefer
acf0f4a943 Bug 496357 - Make Arduino Build configs target specific.
This allows us to change properties of the target and not get the
builds confused. Also makes more sense to the user.

Change-Id: Ic0b6be0699a366c20c5aedc9ec82451e0b3b0899
2016-07-04 21:53:01 -04:00
Doug Schaefer
1df252c0ec Fix concurrent modification exception I had at last night's demo
Demo gremlins got me. Had a concurrent modification of the properties
in an Arduino build config. Turns out I missed making a copy of the
properties when calculating the upload command and was making changes
to it there.

Change-Id: Ic7be10dc4860a73e293b106ee7e67a713bd7ac10
2016-06-29 10:08:13 -04:00
Doug Schaefer
d62700200d Fix Arduino template manifest to open cpp file.
Change-Id: Icf9f93a6258659eec4886164967840bb554fe0ae
2016-06-28 13:05:17 -04:00
Doug Schaefer
9d6b43f857 Fix error when unnecessarily upgrading Arduino home.
Change-Id: I8344c1b1a0ffcbf1c4acfac7d080c201623df69c
2016-06-28 10:58:17 -04:00
Doug Schaefer
47b6fd9200 Bug 490191 - Allow changing of Arduino Home directory.
Added to Arduino Preferences page.

Change-Id: Ibe3e65f87cb613757d9e22ebb96324d43884a8e5
2016-06-25 21:50:09 -05:00
Doug Schaefer
857afa3a80 Bug 486724 - Fixes for SparkFun Arduino boards.
The SparkFun package json file is a bit different. Need to merge
packages.

Also fix a couple of NPEs.

Change-Id: Ida495af0b497ba3cd6dbd3e95045c8923f8e9bc8
2016-06-25 19:52:41 -05:00
Doug Schaefer
01ae529864 Bug 481747 - Final fix to get chipKIT working.
Change-Id: I94b99d42a9d1729ae6afd0f799931cd7c350ac86
2016-06-23 02:39:37 -05:00
Doug Schaefer
452d57aa7a Things I do to get Intel Arduino Working.
Use versions in platform installs just like tools. Make sure those
version numbers don't have +'s in them since it screws up Freemarker.
Add cheat in so that the Intel toolchains extract properly.

Change-Id: I7f4e6a92844461b6cbfe21436151d876558a4d2a
2016-06-23 00:23:05 -05:00
Doug Schaefer
909e2294b1 Bug 487634 - remove hack for esptool.
Added ESP8266 boards to tests.

Change-Id: I3e2bc87338fc0f4e7fc64f278935d986ce7b8429
2016-06-19 17:15:26 -04:00
Doug Schaefer
9e17fbca4f Bug 492006 Add support for using programmers for uploads.
Needed by a few boards, Gemma famously. Adds UI to select a programmer
for a board and using it if upload.protocol isn't set for the board
(same as the Arduino IDE).

No support for the Burn Bootloader menu item yet, but we're closer.

Change-Id: I5d550b96191fdd1bd18da3daf69bbf7504bfa241
2016-06-19 15:30:34 -04:00
Doug Schaefer
2d87281d09 Bug 492006 - Get ATtinyCore building.
These boards don't have variants so now handle when they're missing.

Includes change to order the properties so that the default menu
selections are the same as in the Arduino IDE.

Change-Id: Ibcc69e2399a92f513964ef6500c1b1766021cd39
2016-06-18 02:13:58 -04:00
Doug Schaefer
7f494ba112 [Arduino] Fix Makefile template to use new libraries layout.
We removed the version from the file path and forgot to update the
Makefile template to take that into account.

Change-Id: I7ab74723554561f86674ef22e38fff6153526912
2016-06-17 10:59:48 -04:00
Doug Schaefer
e3e551cfc8 Bug 485992 - Add support for libs with parens and assembly files.
The AVR Timer Library has this.

Change-Id: I595ed64d2d6d56e17cbbb503875b07afb77ec199
2016-06-16 22:16:00 -04:00
Doug Schaefer
0c257b0bbd Bug 487633 - Arduino support build.system.path for Due.
Change-Id: I4ef4de8ed34c5fc412830ca9789bc5becb883911
2016-06-16 19:44:25 -04:00
Doug Schaefer
96ef6bcb78 Make sure Arduino intergration tests complete on Windows.
Change-Id: Ia82d07849434376c606885a3728e2eebedfa4428
2016-06-06 23:08:08 -04:00
Doug Schaefer
8990e95620 [Arduino] Fix up derivation of upload command.
Change-Id: I97caa1e9ca954d1a60a1fe9e73daa3cf2e0d439e
2016-06-06 14:01:00 -04:00
Doug Schaefer
8e5b38f590 Bug 480392 - add inter-platform references and integration tests.
Now have an integration test that builds an empty project for all
boards we can enter into it. This change fixes a bunch of the bugs
that were found making it.

Change-Id: Id62919abd419ac4fef986d620c32ac328eb2cf40
2016-06-06 02:03:55 -04:00
Doug Schaefer
9e0d307cdf Change the way default configs are handled.
Provide support for new build configs using the default config.
Previously, we used it to represent old style configs. But if you're
not using the launch bar, you end up building with the default config.

Adds support for Qt to build debug_and_release, and for Arduino to just
build normally for run.

Users are then responsible for creating their own launch config, just
like the old days.

Change-Id: I54305fa27e7eac198ac50d800e0c175143215516
2016-05-26 15:46:19 -04:00
Doug Schaefer
a978c2c0ad Arduino Downloads Manager and lots of cleanup around that.
Change-Id: Ie2e4d987849831006d443bae98349861871a4057
2016-05-24 01:01:27 -04:00
Doug Schaefer
2c4921bca0 Add binary parsers to new build system. Clean up some toolchain stuff.
new build configs now support binary parsers which are by default
driven from the toolchains. Ran into problem with new versions of
toolchains. Added versioning info to toolchains to take that into
account.

Change-Id: Ie1fb7755e84239b525dca0ae11759027a0b44574
2016-05-10 16:05:53 -04:00
Doug Schaefer
3f660b725b Remove the Arduino Boards Preference Page.
Change-Id: Ie72dd2a058f93929cd64a95319743995a63d20ff
2016-05-06 11:02:05 -04:00
Doug Schaefer
7139dc2f1e Modernize Arduino plug-ins. Adjust APIs to suite.
Change-Id: Ic877c8f0992874e647d4b464502165d7bd3ebe0e
2016-04-28 11:14:07 -04:00
Alex Blewitt
12904409a3 Bug 492304 - Fix NLS warnings
Eclipse warns if a String literal does not have a `//$NON-NLS-<n>$`
entry at the end of the line. However, for historic or formatting
reasons, many such occurrences in the CDT source have an intermediate
whitespace, such as `// $NON-NLS-<n>$`

Fix these so that the whitespace is removed between the // and $
characters.

Change-Id: Idc12398fe6e9d619af1d0b1b73fb8b6180da223c
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-25 22:53:30 +01:00
Alex Blewitt
2356a29c70 Bug 492200 - Replace StringBuffer with StringBuilder
There are many opportunities for replacing `StringBuffer` with
`StringBuilder` provided that the type isn't visible from the
public API and is used only in internal methods. Replace these
where appropriate.

Change-Id: Ic2f50c5b6f3c3a4eae301bb3b40fb6faed235f79
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-21 22:17:03 -05:00
Doug Schaefer
d1dda291d9 New Qt templates using new templates framework. Arduino fixes.
Change-Id: Ib50fb439ba248965286242e476728bb9f36ac18b
2016-02-22 22:55:06 -05:00
Marc Khouzam
766f66c0ab Missing copyright header.
Copyright assigned to company of the committer
who did the first commit of the file.

Change-Id: Ia133694018c798f9558258810982f5276737a0b0
2016-02-01 12:47:41 -05:00
Marc Khouzam
b745736775 Incremented CDT features version to 9.0.0
This includes bumping the standalone debugger to 9.0.0

Change-Id: I55fae1cec995b5f6865a5b174c004ed1b76e9bea
2016-01-18 16:37:47 -05:00
Doug Schaefer
73805d2ea4 Bug 484994 - Migrate Mars Arduino support to Neon.
This brings the master branch up to date with everything we've done
in the 8.8 branch. Adjusts for the new ILaunchTarget and targeted
launch delegate.

Also has a start at making more things common in the new build system.
With three extenders of it now in CDT, i.e. Qt, CMake, and Arduino,
it's obvious we can make things more common and make new extenders
less work.

Also undoes some of the work I've done to get Arduino onto the new
build system. Will need to redo it as we do the new common stuff.

Change-Id: I51ce768e0fc60e29c16b05567bd9802d64e33779
2015-12-30 20:12:30 -05:00
Christian Walther
8640070d4b Bug 484955 - Provide serial.port.file property, needed for SAM boards.
a6e36fac9d/hardware/arduino/sam/platform.txt (L102)
uses this property because the bossac tool expects a serial port name
without the leading "/dev/".

Copied from how the Arduino IDE does this in
a6e36fac9d/arduino-core/src/cc/arduino/packages/uploaders/SerialUploader.java (L148)
.

Change-Id: I17b2556cab3ad7fba00e03171881f6459cf97826
Signed-off-by: Christian Walther <walther@indel.ch>
2015-12-28 22:12:40 -05:00
Doug Schaefer
e3496e1246 Bug 481978 - Big overhaul of new build system to work with Qt.
Moved new build system to it's own plug-ins. Cleaned up the root
build configuration and toolchain classes and use them for Qt local
run builds. Also hooks Qt local run launch delegate to launch target
manager and associated delegate interface.

Change-Id: I0c0f711ee53005edd399f6d24ba96658d606e1e5
2015-11-24 22:11:33 -05:00
Doug Schaefer
790f90ee55 Bug 481352 - Adapt Qt and Arduino providers to ILaunchTargets
ILaunchTarget replaces IRemoteConnection.

Change-Id: I77825ae1347cec7095655548e06cb6dbc5c2aaf4
2015-11-04 23:59:46 -05:00
Doug Schaefer
64bf3c4f69 Starting to put Qt onto the new build system and launch.
Change-Id: I3e65f5d69bfb35d16b2d1135f99517c7a2b2c437
2015-09-28 13:24:41 -04:00
Doug Schaefer
40ff5f2a66 Add support for multiple board packages suppliers.
Default URLs for Arduino and the ESP8266 community. Preference page
to allow user to add their own.

Change-Id: Ia40d2729d6b5e26225dbecf85a845322b4a71f5f
2015-09-02 16:38:59 -04:00
Doug Schaefer
6e6156e42f Add missing copyright notices. 2015-08-31 15:32:43 -04:00
Doug Schaefer
64c5782589 Bug 321443 - First implementation of new build model.
Includes adaptation of the Arduino build model where many of these
ideas started to the new model. And start of the Qt build system which
uses it.

Change-Id: Icb212185773ebc4d415e8a9862101744703ff80b
2015-08-31 14:14:21 -04:00
Doug Schaefer
3c105249e8 Build and Launch working on Windows.
Had to convert backslashes in paths to forward slashes. Also had
figure out how to call the compiler for scanner info. Had to break
the command up myself into args.

Change-Id: I08f1438d8c17bb92a8871d4bd6e187af4e8a49f7
2015-08-27 14:05:59 -04:00
Doug Schaefer
21f8bd8742 Arduino Library Support
Change-Id: Ifdc9075beba4002b1481576d07ed2d8d44e5c2da
2015-08-25 10:22:16 -04:00
Doug Schaefer
71ed78fcbe Remove dependency on apache http client. Don't need it.
Change-Id: Ic12222668217dab543e231bfbf2615757d6dc389
2015-08-21 20:53:29 -04:00
Doug Schaefer
81f6bd0259 A good start on the error parsers/hyperlinks for Arduino.
Change-Id: I5f3a3565970d177392ca6af569a3447aabe1be81
2015-08-16 23:04:38 -04:00
Doug Schaefer
fb9547a46c Hooked up Arduino launch to new build configs.
Wow, this is slick. Launch delegate gets upload command from
build config.

Change-Id: I779625407877610f1405a48eab851b25d886165f
2015-08-12 23:11:35 -04:00
Doug Schaefer
f38efe2a91 Scanner info with built-ins working for Arduino.
Change-Id: Ifa3ea76c11324e06fb7f735f5eb435f387fbbedc
2015-08-12 15:32:00 -04:00
Doug Schaefer
fbee145ff0 Completed new Arduino makefile generator and build.
Change-Id: I0ab166174131b81361b7ee249cd0f178c9d6e5e2
2015-08-11 22:01:10 -04:00