Hey there, I've installed Android on x86, now I want to connect Curie to external PC and upload some code. I could not find and tutorial describing how to connect Curie to external PC on UDOO x86. Please help.
I don't think you can do that easily. Curie is internally connected to UDOO X86 via internal USB and that can't be changed. You are supposed to program Curie from UDOO X86 (but I have no idea how to do that from Android).
Android is easy, just like any other OS- use web based IDE. http://www.instructables.com/id/How-to-Use-Arduino-Web-IDE/
The USB port is connected directly to the main processor, so you cannot program via Arduino IDE from external computer using USB. It is possible to program it externally via the JTAG port though. I am not sure of the process, if any, to perform JTAG programming via Arduino IDE. If you have a compatible JTAG programmer, there are instructions for doing it via the Intel Curie Open Software Developer Kit. See https://software.intel.com/en-us/node/675000 and https://www.zephyrproject.org/doc/1.2.0/board/arduino_101.html#connecting-jtag-to-arduino-101 If you're feeling fancy, Arduino 101 like boards are compatible with the free Intel System Studio for Microcontrollers. It is an IDE extension for Eclipse and can perform programming and debugging of the Curie chip via JTAG. https://software.intel.com/en-us/intel-system-studio-microcontrollers NOTE: I have not attempted to do JTAG programming with the Arduino 101 compatible side of the UDOO x86 yet, so I cannot speak to if it works. I haven't had a working JTAG programmer in a while, but I have one coming to me in the mail right now.
Next to the Arduino web IDE solution you could install a second OS (ie Ubuntu) and use the Arduino IDE on that. After uploading the compiled sketch you can reboot into Android.
According to this : https://www.udoo.org/docs-x86/Arduino_101_(Intel_Curie)/Getting_Started_with_Arduino_101.html It's possible to programm directly on the intel curie with Arduino IDE. I would like the Arduino 101 to get external data using I2C or SPI and send them to the Intel N3710 but I don't know how I can do that. I am planning on installing windows on the udoo board but I don't know how to do the communication between the 2 processors.
You can use the standard available USB Serial device to communicate from N3710 to Curie and viceversa. Udoo X86 is the same as using a PC and a Curie connected with USB cable. The USB connection is also already embedded. From the same documentation page: