platformio-core icon indicating copy to clipboard operation
platformio-core copied to clipboard

Support for Arduino/Genuino 101

Open maxbrueckl opened this issue 10 years ago • 9 comments

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.

maxbrueckl avatar Feb 24 '16 23:02 maxbrueckl

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

ivankravets avatar Feb 25 '16 14:02 ivankravets

@w4ilun, @D3f0

Do you have any ideas as for this issue?

ivankravets avatar Feb 27 '16 14:02 ivankravets

All info is in https://github.com/platformio/platformio/issues/157#issuecomment-189547354

ivankravets avatar Feb 27 '16 14:02 ivankravets

@maxbrueckl please re-test with the latest http://docs.platformio.org/en/latest/installation.html#development-version

ivankravets avatar Apr 28 '16 10:04 ivankravets

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.

maxbrueckl avatar Apr 28 '16 13:04 maxbrueckl

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

valeros avatar Apr 28 '16 13:04 valeros

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.

maxbrueckl avatar Apr 28 '16 15:04 maxbrueckl

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).

maxbrueckl avatar Apr 28 '16 16:04 maxbrueckl

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

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

ivankravets avatar Apr 29 '16 12:04 ivankravets