Introduction: Programming LinkIt One in Linux (no WiNE)

Picture of Programming LinkIt One in Linux (no WiNE)

In one of my previous instructable, I showed how to use Arduino IDE in linux to program LinkIt One. But that solution required installation of WiNE to run PackTag tool. Recently Seedstudio has provided an open source python implementation of PackTag binary in one of their RePhone repository.

In this instructable, i will show how to use this to program your LinkIt One in Linux.

Advantages are

  1. Much faster than previous solution
  2. No WiNE installation required

Things Required

  1. LinkIt One
  2. Working internet connection

Step 1: Get Pushtag.py

This assumes you have completed Step.1 of previous instructable.

Now follow these steps

  1. Download packtag.py and save it in your computer. (Dono't rename this file)
  2. Place downloaded file at "

    ~/.arduino15/packages/LinkItOneLinuxArduino/tools/linkit_tools/1.1.17"

  3. Open terminal, navigate to this folder and execute "chmod +x packtag.py"

Step 2: Get Modified Platform.txt

You also have to use a different platform.txt file.

  1. Download attached 'platform.txt' and save. (Do not rename)
  2. Goto '

    /home/vish/.arduino15/packages/LinkItOneLinuxArduino/hardware/arm/1.1.17' and paste this new 'platform.txt' (replace existing platform.txt with this)

  3. Restart your arduino IDE if it's already running.

Step 3: Let's Sketch Something New ;)

Picture of Let's Sketch Something New ;)

Now you can follow Step 4 and Step 5 of previous instructable

In short, select you linkit one board in Boards list and generate 'app.vxp'

For uploading, connect LinkIt One in 'MS' mode, copy the 'app.vxp' to 'MRE' folder

And yayyy..!!! You are ready to rock!

Happy making,

vish

Comments

basdi (author)2016-02-15

Hello,

I achieved compiling the Blink program but when I move it to the board it doesn't seem to execute. What may I have done wrong? I changed the autostart.txt..

Thanks!

HippyNerd (author)2016-01-07

I was able to make blink work, but when I tried others (anything that includes other code), then I get errors. I was able to find others having this problem, and modified the platform.txt, and now I have different errors.

I have installed arduino 1.6.5, 1.6.6 and 1.6.7 hoping that the current version would solve the problem, but they all have the same problems.

With the platform.txt file you provide, I get error messages that say falal error, no such file or directory. When I change it like it said on a webpage
This link goes to the page with the modifications to the platform.txt file.

Now I get a different message that say things like

error: 'Wire1' was not declared in this scope

#define WIRE Wire1

and another message that says note: in expansion of macro 'WIRE'

(that sketch includes wire.h)

This sketch used to run just fine on a nano, after adding doing this procedure, it now gives a bunch of warnings when compiling for nano, but it does seem to compile, I havnt tried the program to see if it still works because Ive changed the hardware to work on the linkit one.

With the modifications to the platform.txt file, I still get the warning about deprecated recipe, but it compiles blink for linkit, and for nano without errors (just the warning when I compile for linkit.)

When I compile more complex programs that include other files, I get errors about expansion of macro, and not declared this scope. with Linkit, and with nano, I get some other warnings that look like they are related to problems with variables.

Jared Salazar (author)2015-12-03

Thanks for this tutorial. Now, i don't need to do programming on VM. This help me a lot. Is there an update on this? how about the push tool?

v-i-s-h (author)Jared Salazar2015-12-04

I have no update on push tool. PushTool is written in .NET framework. Ideally we should be able to run in in linux using Mono. But a bug related to loading bigger Icons in Mono is crashing the program on startup itself.

SrdjanK (author)v-i-s-h2015-12-30

Vish, at compiling, the IDE looks for packtag.py in this folder:

/home/---USER---/.arduino15/packages/LinkItOneLinuxArduino/tools/linkit_tools/1.1.17

...instead of the one you named in the tutorial.

I copied the file into the folder where it was expected and it all works.

About This Instructable

1,884views

17favorites

License:

More by v-i-s-h:IoT enabled Solar Power Harnessing (intel IoT)LinkIt One : Adding an ePaper displayLinkIt One Control : The GATT Way
Add instructable to: