Hobbyist Toolkit

cancel
Showing results for 
Search instead for 
Did you mean: 

Firmware Wizard fails to generate Arduino library

Solved!
Go to solution

Hello,

 

I am attempt to get started with LINX on LabVIEW professional 2020 and an Arduino Micro.

 

When attempting to generate firmware for the Arduino Micro via the wizard, the output libraries fail to get generated.

 

When pressing the "generate" button, no errors are reported, and the status reports as "done", but no file are added to the destination directory. When pressing 'save' an error is reported stating that no libraries can be found.

BFVespone_0-1614643268048.png

 

Things I've tried so far:

- I ensured that there were full read/write permissions to the Arduino program files directory

- I started with Arduino IDE v1.8.3 (most current). I then downgraded to v1.0.6. this changed behavior in that the IDE was launched during the cmd instruction from the wizard VI, but still no output files.

- I attempted to manually pull together the source files from within the LINX source directory and compile in the Arduino IDE. I'm still getting many linking errors, but could revisit this if no other solution presents itself

- I started to debug the firmware wizard VI, and found a possible typo in the generation of the destination path, but that seems unlikely as then it would be failing for everyone that tries to use the LINX plugin, and I haven't see any complaints of this nature. More likely that I'm misunderstanding the code.

 

BFVespone_1-1614643806292.png

 

 

So my question at this point is if anyone has a working firmware wiring project they can share for an Arduino micro, or has other suggestions for getting past this issue.

 

Thanks,

Ben

 

 

0 Kudos
Message 1 of 8
(4,813 Views)

Update - Did find some log files, which indicate an issue with the COM connection. I am able to connect to this Arduino through the arduino IDE however. investigating this now.

 

avrdude_ard.exe: Version 6.0.1, compiled on Mar 30 2015 at 14:56:06
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "avrdude_ard.conf"

Using Port : COM4
Using Programmer : avr109
Overriding Baud Rate : 57600
avrdude_ard.exe: ser_open(): can't open device "\\.\COM4": The system cannot find the file specified.


avrdude_ard.exe: ser_send(): write error: sorry no info avail

0 Kudos
Message 2 of 8
(4,767 Views)
Solution
Accepted by BFVespone

Not sure what is wrong with the firmware wizard, but if anyone runs into the same issue, attached is a compilable sketch containing the cpp and h files needed to get the Micro working.

Message 3 of 8
(4,756 Views)

Hi BFVesone!

 

Thanks for documenting your issue here, i think i am currently having a similar one:

 

The strange thing is that my whole setup worked brilliantly until my arduino leonardo broke and i had to get a new one. After that i always got the error code 5003 "cannot connect to arduino" even with the example from MakerHub.

 

I am now searching since 2 days and found your post about the failure of gererating the arduino library. I checked and its the same for me! The wizard tells Done! but nothing happens.

 

Since i am not so into the arduino i dont really understand how you fixed this issue with the sketch you attached. Would you mind explaining the procedure here?

 

Many thanks!

Matthias

0 Kudos
Message 4 of 8
(4,610 Views)

Hi

I've came with the same problem. I'm using arduino Leonardo and firmware wizard return no error and does nothing. 

Clicking on "View Log" says: 

" avrdude_ard.exe: ser_open(): can't open device "

Same issue occurs on my laptot and desktop.

Does anyone know how to solve this?

0 Kudos
Message 5 of 8
(4,510 Views)

HELLO I WOULD LIKE TO KNOW WHAT I CAN DO IF I HAVE AN ARDUINO PRO MINI AND I NEED TO CONNECT IT BUT I DO NOT GET THAT MODEL.

0 Kudos
Message 6 of 8
(2,742 Views)

Hello, 

 

I am having the same issue and my log file is similar to what has been stated herein: 
avrdude_ard.exe: Version 6.0.1, compiled on Mar 30 2015 at 14:56:06
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "avrdude_ard.conf"

Using Port : COM8
Using Programmer : avr109
Overriding Baud Rate : 57600
avrdude_ard.exe: ser_open(): can't open device "\\.\COM8": The system cannot find the file specified.

avrdude_ard.exe: ser_send(): write error: sorry no info avail

 

I note that when in the Arduino IDE, my pro micro shows up as COM8, but when I actually upload to it in verbose mode, I see that the upload port used is COM9.  I suspect this is at the root of the issue, but I also cannot get the "Build with Arduino IDE" option to work because I get the message "The Arduino base path is incorrect or the version of the installed Arduino IDE needs to be more recent".  I have the most recent build and have confirmed the base path.  

Anyone else having help resolving this issue?

0 Kudos
Message 7 of 8
(1,750 Views)

I have the exact same problem with the firmware wizard - it says OK but no files are generated. I'm about to go crazy - tried everything...

Any chance someone can help with the sketch for the Arduino Mega 2560?

thanks

0 Kudos
Message 8 of 8
(1,049 Views)