Hey Guys,
I am working on a new project where I have connected an Arduino Portenta H7 to the Arduino PLC IDE. My code is a simple one where I display information on a LCD connected to the board. However the compliing time is really high, around 20-30 mins.
I am new to using this PLC IDE. However in the Output tab while compilation, I see the following,
--> Candidate: [Wire]
"C:\Users\h.selvakumar\AppData\Local\T\A\internal\arduino_arm-none-eabi-gcc_7-2017q4_7b7be9f526b2cb64/bin/arm-none-eabi-g++" -c -w -g3 -nostdlib "@C:\Users\h.selvakumar\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\variants\PORTENTA_H7_M7/defines.txt" "@C:\Users\h.selvakumar\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\variants\PORTENTA_H7_M7/cxxflags.txt" -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_PORTENTA_H7_M7 -DARDUINO_ARCH_MBED_PORTENTA -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 "-IC:\Users\h.selvakumar\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\cores\arduino" "-IC:\Users\h.selvakumar\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\variants\PORTENTA_H7_M7" "-IC:\Users\h.selvakumar\AppData\Local\T\A\internal\AlPlc_PMC_1.0.3_e7d207fb4adc4f4f\AlPlc_PMC\src" "-IC:\Users\h.selvakumar\AppData\Local\T\A\internal\Arduino_MachineControl_1.1.1_0b68abd64cd04e7b\Arduino_MachineControl\src" "-IC:\Users\h.selvakumar\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\libraries\SPI" "-IC:\Users\h.selvakumar\AppData\Local\T\A\internal\ArduinoRS485_1.0.5_a61cd3c6d72c41a3\ArduinoRS485\src" "-IC:\Users\h.selvakumar\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\libraries\Wire" -DCM4_BINARY_START=0x60000000 "-IC:\Users\h.selvakumar\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\cores\arduino/api/deprecated" "-IC:\Users\h.selvakumar\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\cores\arduino/api/deprecated-avr-comp" "-iprefixC:\Users\h.selvakumar\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\cores\arduino" "@C:\Users\h.selvakumar\AppData\Local\T\A\internal\arduino_mbed_portenta_3.5.4_6b52e2f35dd4808f\variants\PORTENTA_H7_M7/includes.txt" "U:\h.selvakumar\Arduino\LFeed\MichaelsProject\LLSketch_build\sketch\LLSketch.ino.cpp" -o nul
The above line of code is executed again for all the libraries present. My suspicion is that when compiling a single library, all the files of other libraries are executed as well and when compiling another library, the same process of executing all the files takes place. This could possibly be the reason of having a longer compiling time[I might be also totally wrong, but just a suspicion].
So, Does anyone have some suggestions on solving this issue and reducing the compiling time?
Is it also possible to change the path to the libraries?
Any help would be greatly appreciated.