Skip to content

Ubuntu toolchain setup

mark97229 edited this page Aug 21, 2011 · 10 revisions

setting up and using the development tools on a Ubuntu-11.04 development host

There where some gotchas with getting the tools to work and the code to build. There is painful detail and screen casts at the bottom available on this blog Here I will include the important bits I think folks may find useful.

MPLABx on ubuntu

  • mplabx doesn't like oracle jdk7 but, jdk6 works
  • Also mplabx only likes the 32 bit version of the JDK. You can run mplabx under 64 bit linux but you need to be sure the JAVA_HOME and jdkhome environment variables point to a 32 bit jdk6.
  • set JAVA_HOME and jdkhome, and PATH variables such that the JDK of your choosing is used.
  • installing mplabx needs to be one as root and also needs the JAVA_HOME set to work correctly.
  • using the MPLABx as UI to the PICkit3 by making a new project as a pre-built project and navigating to the hex file to use. Program device by right clicking on the project and selecting "program device"

Android SDK + Eclipse + building ioio APK's

  • use import... to import IOIOlib and whatever APK projects you are building.
  • be sure to set the android target to whatever you need to for your device.
  • under project properties Java Compiler make sure to deselect "Enable Project specific settings"
  • you may need to make a IOIOlib/res directory
  • go to the Project Menu (on the menu bar) and select clean...
  • then building the APK tends to work.