New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Arduino/Genuino 101 #535

Closed
maxbrueckl opened this Issue Feb 24, 2016 · 9 comments

Comments

Projects
None yet
3 participants
@maxbrueckl

maxbrueckl commented Feb 24, 2016

It is based on Intel Curie SOC(https://www.arduino.cc/en/Main/ArduinoBoard101). So there is no platformio package for this yet.

Toolchain is ARC GNU Toolchain located at https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain.

Upload with dfu-util(http://dfu-util.sourceforge.net/) and seems to ship with own drivers.

The files are available via Arduino IDE board manager, but the documentation is quite thin until now. Is there any chance, platformio will support this platform? Tell me, if I can help with anything.

@ivankravets

This comment has been minimized.

Member

ivankravets commented Feb 25, 2016

Thanks, we will contact with Arduino.cc and Intel Corporation to help us with integration this board to PlatformIO.

@ivankravets

This comment has been minimized.

Member

ivankravets commented Feb 27, 2016

@w4ilun, @D3f0

Do you have any ideas as for this issue?

@ivankravets

This comment has been minimized.

Member

ivankravets commented Feb 27, 2016

All info is in #157 (comment)

@ivankravets ivankravets modified the milestone: 2.9.0 Mar 19, 2016

@ivankravets ivankravets modified the milestones: 2.10.0, 3.0.0 Apr 9, 2016

@ivankravets ivankravets modified the milestones: 3.0.0, 2.9.0 Apr 27, 2016

valeros added a commit that referenced this issue Apr 27, 2016

ivankravets added a commit that referenced this issue Apr 27, 2016

@ivankravets

This comment has been minimized.

Member

ivankravets commented Apr 28, 2016

@maxbrueckl

This comment has been minimized.

maxbrueckl commented Apr 28, 2016

Thank you for your efforts!
I can confirm that it compiles for arduino101 now.

However, I get an error message, when I try to upload to the board. This is the corresponding console output:

E:\Arduino\BalanceBot>platformio run --upload-port COM3 -e genuino101 -t upload
[04/28/16 15:09:58] Processing genuino101 (platform: intel_arc32, board: genuino
101, framework: arduino)
-------------------------------------------------------------------------------
BeforeUpload(["upload"], [".pioenvs\genuino101\firmware.bin"])
"C:\Users\max\.platformio\packages\tool-arduino101load\arduino101load" E:\Arduin
o\BalanceBot\.pioenvs\genuino101 .pioenvs\genuino101\firmware.bin "COM3" verbose

Starting download script...
Args to shell: [E:\Arduino\BalanceBot\.pioenvs\genuino101 .pioenvs\genuino101\fi
rmware.bin COM3 verbose]
Serial Port: COM3
BIN FILE .pioenvs\genuino101\firmware.bin
Waiting for device...
exec: "E:/Arduino/BalanceBot/.pioenvs/genuino101/dfu-util": file does not exist
scons: *** [upload] Error 1
========================= [ ERROR ] Took 1.66 seconds =========================

I tried the "-v" argument, but it delivers less output.
If you need more information, feel free to ask.

valeros added a commit that referenced this issue Apr 28, 2016

@valeros

This comment has been minimized.

Member

valeros commented Apr 28, 2016

Hi @maxbrueckl !
Could you please test latest PlatformIO and this uploader. Just replace old one in C:\Users\max\.platformio\packages\tool-arduino101load\
Thanks!

@maxbrueckl

This comment has been minimized.

maxbrueckl commented Apr 28, 2016

I can confirm, that it all works now. Uploading included. Great work!

Thank you very much.

For record: Tested on Windows 10.

Notice to everyone working with Arduino101 right now: dfu-util currently does not reset the board before uploading. You need to manually press the "reset" button to bring the board in a flashable state.

ivankravets added a commit that referenced this issue Apr 28, 2016

@maxbrueckl

This comment has been minimized.

maxbrueckl commented Apr 28, 2016

I know, the issue is solved now, but may I ask a question considering packages in platformio.

As it seems they just exist and get downloaded (concrete toolchain-intelarc32, framework-arduinointel, tool-arduino101load), but I cant find where they are defined in the commits mentioned with this issue. Am I missing something?

If I understand correctly, it would be much more scalable, if they would be treated like boards and platforms (definable by users).

@ivankravets

This comment has been minimized.

Member

ivankravets commented Apr 29, 2016

@maxbrueckl the packages are located in @bintray https://bintray.com/platformio

PlatformIO installs package into ~/.platformio/packages directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment