4/14/2017 11:12 PM | |
Posts: 9 Rating:
|
Being the IOT2040 based on the Intel Galileo Gen 2. chip, I was trying to copy the Arduino source files for the Galileo from Arduino IDE. These <core> files can be downloaded in attachment , which is inside C:\Users\MyUser\AppData\Local\Arduino15\package_index.json The downloaded file contains Arduino.h and other source files which are necessary to use the Arduino API, as well as the source files for each Intel Galileo variant (the Arduino IDE uses galileo_fab_g, according to the compilation verbose) So, I have been trying to link these source files into my Eclipse IOT2000 project. For that, I just went to ProjectProperties->C/C++ Builder->Settings . Then in both C and C++ IOT2000 compilers, added the include path for both core and variant folders. But it seems that it didnt work somehow , because I get an 'Undefined reference to `functionName` as you can see in the screenshot. However, the two constants are accessible by my example.cpp as well as the function pinMode, because when I Ctrl+Click them it shows me the header files, so I cant undersand what is happening at all... I have also tried to copy the whole Arduino core files into my project, but no success because it gives lots of errors... Attachmentattachment.zip (383 Downloads) |
Last edited by: bamsbamx at: 4/14/2017 11:13:29 PMLast edited by: bamsbamx at: 4/14/2017 11:15:17 PMLast edited by: bamsbamx at: 4/14/2017 11:16:06 PMLast edited by: bamsbamx at: 4/14/2017 11:16:58 PMLast edited by: Min_Moderator at: 4/18/2017 2:58:35 PMAdd attachment |
|
Follow us on