Arduino compiler issue - unable to compile input VI (including Example VIs) | Arduino Compatible Compiler for LabVIEW Discussions | Forum

Avatar
Please consider registering
guest
sp_LogInOut Log In sp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSS sp_TopicIcon
Arduino compiler issue - unable to compile input VI (including Example VIs)
September 28, 2016
3:11 am
Avatar
maurizio.bollini
Milano, Italy
Member
Members
Forum Posts: 6
Member Since:
June 3, 2015
sp_UserOfflineSmall Offline

I use LabVIEW 2015 with myRIO extension, Arduino IDE 1.6.11, Windows 10 32-bits on a Virtual Machine (as always I did).

The last release of Arduino LabVIEW Compiler, professional edition but I tried with the student edition too with same in success.

Looks like the Arduino IDE can't find the followings:

#include "LVArray.h"
#include "A4Lhelper.h"

Only an empty while loop is compilable, any builtin functions (as a "+1" function)image_02.pngImage Enlargerimage_03.pngImage Enlarger appears at not supported.

sp_PlupAttachments Attachments

Regards,

 

Maurizio Bollini.

LabVIEW Consultant, CLA.

Project Manager, MET S.r.l. Milano, Italy.

September 28, 2016
3:08 pm
Avatar
filipealtoe
Admin
Forum Posts: 98
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

This error looks similar to the one reported on this post: 

https://www.geverywhere.com/for.....-clock-vi/

 

Can you check if your setup is similar to the one described on the post above?

Thanks

Filipe

Cheers
Filipe

October 1, 2016
7:30 am
Avatar
maurizio.bollini
Milano, Italy
Member
Members
Forum Posts: 6
Member Since:
June 3, 2015
sp_UserOfflineSmall Offline

In order to try to 01-Compile-and-Download.PNGImage Enlarger02-Arduino-Code.PNGImage Enlarger04-Find-Missing-items.PNGImage Enlarger05-Libraries-Files.PNGImage Enlargerunderstand the issue, I deleted both Arduino IDE and Arduino LabVIEW Compiler on a PC running Windows 10.

I also made sure to remove all leftovers, like Arduino libraries folders.

Then I installed in the sequence:

- Arduino IDE 1.6.12
- I checked the functionality deploying a blink sketch to Arduino Uno
- I'd check the sketch location in the Arduino IDE which is "C:\Users\Maurizio\Documents\Arduino"
- I installed the Arduino Compatible Compiler for LabVIEW 1.0.0.21 using VI Package Manager 2016
- I compiled the "Digital output - Blink LED.vi" from the examples.
- It compiles but don't deploy to flash, no errors issued.
- The command "Arduino Code Ctrl-R" fails.

Looking the "Arduino Compatible Compiler for labVIEW.lvlib", all .cpp and .h files missing.

Using the "Find Missing Items" command appears that the library expect to find these files on the root directory C:\ which is wrong.

Libraries files are correctly located in C:\Users\Maurizio\Documents\Arduino\libraries.

Looks like an installation procedure issue.

What is the procedure to fix it?

Regards,

 

Maurizio Bollini.

LabVIEW Consultant, CLA.

Project Manager, MET S.r.l. Milano, Italy.

October 1, 2016
7:32 am
Avatar
maurizio.bollini
Milano, Italy
Member
Members
Forum Posts: 6
Member Since:
June 3, 2015
sp_UserOfflineSmall Offline

(added the attachment 03 to complete my previous post)03-LVLIB.jpgImage Enlarger

sp_PlupAttachments Attachments

Regards,

 

Maurizio Bollini.

LabVIEW Consultant, CLA.

Project Manager, MET S.r.l. Milano, Italy.

October 3, 2016
1:58 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

First of all, the Arduino Code option won't work for this.  That option is only for developing your own library wrappers and will only show you converted Arduino code for custom wrappers.  You should only be using the Compile/Compile And Download options.

The missing cpp/h files are not an issue.  Those are remnant files that were part of the build directory but the library does not access those files.

As far as your issue, have you confirmed you have the correct serial port selected and are using the Compile and Download option?

October 3, 2016
2:18 pm
Avatar
maurizio.bollini
Milano, Italy
Member
Members
Forum Posts: 6
Member Since:
June 3, 2015
sp_UserOfflineSmall Offline

Yes, I confirmed to have the right serial port selected either with Arduino, before, and Arduino LabVIEW Compiler.

I double checked in the two ways: 1) the Arduino IDE deploy through it, 2) I can send data to that port on the Arduino LabVIEW Compiler (if you send characters, the TX LED on the board blink, so the connection is correct).

Another case, I installed the Arduino LabVIEW Compiler on a different PC where Arduino IDE was already installed and I get the same issue, the VI compiles but don't deploy.

About the Arduino Code Option I was not aware of the usage. Thanks.

Any clue to let me to fix the main issue? Any check I can do for you?

Regards,

 

Maurizio Bollini.

LabVIEW Consultant, CLA.

Project Manager, MET S.r.l. Milano, Italy.

October 3, 2016
3:19 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

What type of board are you using and have you confirmed the same issue with more than one board?  Also to confirm, which compile option are you using?  Want to make sure you are not using the Compile Only option which should do as you see.

October 4, 2016
4:29 pm
Avatar
Amornthep
Member
Members
Forum Posts: 22
Member Since:
April 8, 2015
sp_UserOfflineSmall Offline

I also have similar issue with compiler error when I upgraded to higher version of Arduino IDE (1.6.10+).

*I am still using Arduino IDE 1.6.5.

Please try this or downgrade to previous version.

Refer the replied from @pert from Arduino forum here.

https://forum.arduino.cc/index.....msg2862678

Delete the folder C:\Users\[USER]\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc
Restart the Arduino IDE

The problem should now be fixed

This issue is that the latest Arduino AVR core uses a new version of avr-gcc and is incompatible with the previous version. There is a bug with the Arduino IDE that causes installation of Sanguino to install the old compiler version which causes that error. By deleting the old avr-gcc version it forces the Arduino IDE to use the new version that's included with the IDE installation instead.

October 4, 2016
5:16 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Thanks Amornthep for posting.  We are currently looking into this.  It does appear recent versions of the Arduino IDE have broken the particular command line interface that the ACC4LV uses in order to execute the compiler programmatically.  The Arduino IDE is constantly changing and often there are bugs that are introduced on their side that break the interface to the ACC4LV.  I am investigating which is the last version of the IDE that works with the ACC4LV and will try to isolate the issue and will identify a workaround.

October 4, 2016
6:54 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

maurizio.bollini said
Yes, I confirmed to have the right serial port selected either with Arduino, before, and Arduino LabVIEW Compiler.

I double checked in the two ways: 1) the Arduino IDE deploy through it, 2) I can send data to that port on the Arduino LabVIEW Compiler (if you send characters, the TX LED on the board blink, so the connection is correct).

Another case, I installed the Arduino LabVIEW Compiler on a different PC where Arduino IDE was already installed and I get the same issue, the VI compiles but don't deploy.

About the Arduino Code Option I was not aware of the usage. Thanks.

Any clue to let me to fix the main issue? Any check I can do for you?

Ok, we have identified the issue and it has already been submitted to the Arduino IDE developers a few days ago.  They have acknowledged the issue and have a workaround posted here.  You can also downgrade to 1.6.11 until they fix it.  We have also added an FAQ for this issue here.

October 5, 2016
3:06 pm
Avatar
maurizio.bollini
Milano, Italy
Member
Members
Forum Posts: 6
Member Since:
June 3, 2015
sp_UserOfflineSmall Offline

Ok, Thanks.

- Uninstalled Arduino IDE 1.6.12

- Installed Arduino IDE 1.6.11

Arduino Compatible LabVIEW Compiler works as expected, compiling and deploy to Arduino target.

Regards,

 

Maurizio Bollini.

LabVIEW Consultant, CLA.

Project Manager, MET S.r.l. Milano, Italy.

Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
8
Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
miche91: 33
scottj: 28
scadao: 23
Member Stats:
Guest Posters: 5
Members: 202
Moderators: 0
Admins: 3
Forum Stats:
Groups: 1
Forums: 2
Topics: 266
Posts: 1222
Newest Members:
pujacontrol
Administrators: geadmin: 22, filipealtoe: 96, Steffan: 356