mathoudebine / pcduino-arduino-ide_1.8

Fork of the original Arduino IDE, with adaptations to work with the PCDuino (x86 compilation of the sketches)

Home Page:http://www.arduino.cc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arduino IDE for PcDuino

This repository contains the Arduino IDE 1.8.6 edited to include PcDuino support.
It has been created since Arduino IDE for PcDuino platform is no longer maintained by LinkSprite (latest official version is 1.5.3).
This IDE has been tested on a PcDuino3 Nano with official Linaro 14.04 from LinkSprite, it may work for other PcDuino boards that already support Arduino IDE.
This IDE version has to be built directly on the PcDuino. Ubuntu/Linaro 14.04 running on a SD card is recommended since it needs a lot of free space on the filesystem to build.

Warning

It is recommended to continue using the Arduino IDE supplied with your board firmware.
This version is UNSTABLE and may not work as intended.
Note that this version will not replace your original Arduino IDE, so you can have both on your system.

Disclaimer: I give no guarantees and decline all responsibility for your failure or success using this software.

Pre-requisites

deb http://ports.ubuntu.com/ubuntu-ports/ trusty main universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty main universe
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security main universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-security main universe
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main universe
#deb http://www.wiimu.com:8020/pcduino/ pcduino main
#deb-src http://www.wiimu.com:8020/pcduino/ pcduino main

/!\ Do not add the ubuntu.pcduino.com repositories they are only for Linaro 12, you would break your packages dependencies

  • Development packages for the build :
sudo apt-get install ant gcc git make
  • Java 8 :
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Build / Run / Package the IDE

All the following commands have to be run in the "build/" subfolder of this repository :

  • Build :
ant clean
ant pcduino-build
  • Run :
ant pcduino-run

or without relaunching ant build system :

cd linux/work/
./arduino
  • Package :
ant pcduino-dist

NOTE : packaging the IDE may freeze the board. Not fully tested.

Troubleshoot

Q: My PcDuino board is not listed anymore in the boards menu !
A: Close the IDE, remove the folder ~/.arduino15 and restart the IDE

Q: Where are my compiled sketches ?
A: For now they are in build/linux/work/ and their name is litteraly {sketchbook.path}. It seems that the {sketchbook.path} variable from hardware/arduino/pcduino/platform.txt is not interpreted anymore, I have not investigated.

Q: I constantly have the message Inavlid library found in /home/linaro[...] when starting my IDE / when building a sketch
A: To fix this, replace the file build/linux/work/hardware/platform.keys.rewrite.txt by the one from this repository, and restart the IDE

Q: I have the message Warning: platform.txt from core 'pcDuino Boards' contains deprecated recipe.ar.pattern[...]
A: This is not an error but only a warning. It is not a problem and can be safely ignored.

About Arduino IDE

Original Credits

Arduino is an open source project, supported by many.

The Arduino team is composed of Massimo Banzi, David Cuartielles, Tom Igoe and David A. Mellis.

Arduino uses GNU avr-gcc toolchain, GCC ARM Embedded toolchain, avr-libc, avrdude, bossac, openOCD and code from Processing and Wiring.

Icon and about image designed by ToDo

About

Fork of the original Arduino IDE, with adaptations to work with the PCDuino (x86 compilation of the sketches)

http://www.arduino.cc/

License:Other


Languages

Language:C 71.8%Language:Java 10.7%Language:C++ 9.7%Language:Python 4.9%Language:Makefile 1.2%Language:Objective-C 0.9%Language:Logos 0.4%Language:Shell 0.2%Language:Perl 0.1%Language:Assembly 0.0%Language:JavaScript 0.0%Language:Batchfile 0.0%