Jump to content
  • 0

Labview with arduino Mega


mustafasei

Question

Hi
Please help in this issue as attached which gives (( error 5007 The selected device is currently using firmware version 4.15.0 but the LabVIEW API is version 3.0.0 Please use the firmware wizard (Tools>>MakerHub>>LINX>>Firmware Wizard) to update the device firmware)).
I'm using labview 2014 32bit and linx 3.0.1.192

A1.png

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

Do you see the RX and TX lights flash when the firmware should be uploading?

You could also try manually uploading the firmware:

Use the Generate Firmware Wizard (in LabVIEW Tools>>MakerHub>>LINX>>Generate Firmware Libraries) to generate the firmware libraries in your Arduino libraries directory. Then you can open the Arduino IDE and open the LINX example for your device and upload the firmware. 

 

Let us know if that works.

 

-Kristoff

Link to comment
Share on other sites

Hi

 I got the error :

 

 

Arduino: 1.6.11 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from C:\Users\mustafa\Documents\Arduino\libraries\LinxArduinoMega2560\utility\LinxWiringDevice.cpp:23:0:

C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:40:0: warning: "HIGH" redefined

 #define HIGH 0x1

 ^

In file included from C:\Users\mustafa\Documents\Arduino\libraries\LinxArduinoMega2560\utility\LinxWiringDevice.cpp:19:0:

C:\Users\mustafa\Documents\Arduino\libraries\LinxArduinoMega2560\utility\LinxDevice.h:37:0: note: this is the location of the previous definition

  #define HIGH 0x01

 ^

In file included from C:\Users\mustafa\Documents\Arduino\libraries\LinxArduinoMega2560\utility\LinxWiringDevice.cpp:23:0:

C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:41:0: warning: "LOW" redefined

 #define LOW  0x0

 ^

In file included from C:\Users\mustafa\Documents\Arduino\libraries\LinxArduinoMega2560\utility\LinxWiringDevice.cpp:19:0:

C:\Users\mustafa\Documents\Arduino\libraries\LinxArduinoMega2560\utility\LinxDevice.h:41:0: note: this is the location of the previous definition

  #define LOW 0x00

 ^

In file included from C:\Users\mustafa\Documents\Arduino\libraries\LinxArduinoMega2560\utility\LinxWiringDevice.cpp:23:0:

C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:43:0: warning: "INPUT" redefined

 #define INPUT 0x0

 ^

In file included from C:\Users\mustafa\Documents\Arduino\libraries\LinxArduinoMega2560\utility\LinxWiringDevice.cpp:19:0:

C:\Users\mustafa\Documents\Arduino\libraries\LinxArduinoMega2560\utility\LinxDevice.h:29:0: note: this is the location of the previous definition

  #define INPUT 0x00

 ^

In file included from C:\Users\mustafa\Documents\Arduino\libraries\LinxArduinoMega2560\utility\LinxWiringDevice.cpp:23:0:

C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:44:0: warning: "OUTPUT" redefined

 #define OUTPUT 0x1

 ^

In file included from C:\Users\mustafa\Documents\Arduino\libraries\LinxArduinoMega2560\utility\LinxWiringDevice.cpp:19:0:

C:\Users\mustafa\Documents\Arduino\libraries\LinxArduinoMega2560\utility\LinxDevice.h:33:0: note: this is the location of the previous definition

  #define OUTPUT 0x01

 ^

C:\Users\mustafa\Documents\Arduino\libraries\LinxSerialListener\LinxSerialListener.cpp:137:29: warning: extra tokens at end of #ifdef directive

    #ifdef LINX_DEVICE_FAMILY=4 | LINX_DEVICE_FAMILY=6

                             ^

C:\Users\mustafa\Documents\Arduino\libraries\LinxSerialListener\utility\LinxListener.cpp: In member function 'int LinxListener::ProcessCommand(unsigned char*, unsigned char*)':

C:\Users\mustafa\Documents\Arduino\libraries\LinxSerialListener\utility\LinxListener.cpp:170:89: warning: left shift count >= width of type

    unsigned long targetBaud = (unsigned long)((unsigned long)(commandPacketBuffer[6] << 24) | (unsigned long)(commandPacketBuffer[7] << 16) | (unsigned long)(commandPacketBuffer[8] << 8) | (unsigned long)commandPacketBuffer[9]);

                                                                                         ^

C:\Users\mustafa\Documents\Arduino\libraries\LinxSerialListener\utility\LinxListener.cpp:170:137: warning: left shift count >= width of type

    unsigned long targetBaud = (unsigned long)((unsigned long)(commandPacketBuffer[6] << 24) | (unsigned long)(commandPacketBuffer[7] << 16) | (unsigned long)(commandPacketBuffer[8] << 8) | (unsigned long)commandPacketBuffer[9]);

                                                                                                                                         ^

C:\Users\mustafa\Documents\Arduino\libraries\LinxSerialListener\utility\LinxListener.cpp:237:51: warning: left shift count >= width of type

    LinxDev->ethernetIp = (commandPacketBuffer[6]<<24) | (commandPacketBuffer[7]<<16) | (commandPacketBuffer[8]<<8) | (commandPacketBuffer[9]);

                                                   ^

C:\Users\mustafa\Documents\Arduino\libraries\LinxSerialListener\utility\LinxListener.cpp:237:82: warning: left shift count >= width of type

    LinxDev->ethernetIp = (commandPacketBuffer[6]<<24) | (commandPacketBuffer[7]<<16) | (commandPacketBuffer[8]<<8) | (commandPacketBuffer[9]);

                                                                                  ^

C:\Users\mustafa\Documents\Arduino\libraries\LinxSerialListener\utility\LinxListener.cpp:267:47: warning: left shift count >= width of type

    LinxDev->WifiIp = (commandPacketBuffer[6]<<24) | (commandPacketBuffer[7]<<16) | (commandPacketBuffer[8]<<8) | (commandPacketBuffer[9]);

                                               ^

C:\Users\mustafa\Documents\Arduino\libraries\LinxSerialListener\utility\LinxListener.cpp:267:78: warning: left shift count >= width of type

    LinxDev->WifiIp = (commandPacketBuffer[6]<<24) | (commandPacketBuffer[7]<<16) | (commandPacketBuffer[8]<<8) | (commandPacketBuffer[9]);

                                                                              ^

C:\Users\mustafa\Documents\Arduino\libraries\LinxSerialListener\utility\LinxListener.cpp:410:83: warning: left shift count >= width of type

    unsigned long freq = (unsigned long)((unsigned long)(commandPacketBuffer[7] << 24) | (unsigned long)(commandPacketBuffer[8] << 16) | (unsigned long)(commandPacketBuffer[9] << 8) | (unsigned long)commandPacketBuffer[10]);

                                                                                   ^

C:\Users\mustafa\Documents\Arduino\libraries\LinxSerialListener\utility\LinxListener.cpp:410:131: warning: left shift count >= width of type

    unsigned long freq = (unsigned long)((unsigned long)(commandPacketBuffer[7] << 24) | (unsigned long)(commandPacketBuffer[8] << 16) | (unsigned long)(commandPacketBuffer[9] << 8) | (unsigned long)commandPacketBuffer[10]);

                                                                                                                                   ^

C:\Users\mustafa\Documents\Arduino\libraries\LinxSerialListener\utility\LinxListener.cpp:411:137: warning: left shift count >= width of type

    unsigned long duration = (unsigned long)(((unsigned long)commandPacketBuffer[11] << 24) | (unsigned long)(commandPacketBuffer[12] << 16) | (unsigned long)(commandPacketBuffer[13] << 8) | (unsigned long)commandPacketBuffer[14]);   

                                                                                                                                         ^

C:\Users\mustafa\Documents\Arduino\libraries\LinxSerialListener\utility\LinxListener.cpp:508:89: warning: left shift count >= width of type

    unsigned long targetBaud = (unsigned long)((unsigned long)(commandPacketBuffer[7] << 24) | (unsigned long)(commandPacketBuffer[8] << 16) | (unsigned long)(commandPacketBuffer[9] << 8) | (unsigned long)commandPacketBuffer[10]);

                                                                                         ^

C:\Users\mustafa\Documents\Arduino\libraries\LinxSerialListener\utility\LinxListener.cpp:508:137: warning: left shift count >= width of type

    unsigned long targetBaud = (unsigned long)((unsigned long)(commandPacketBuffer[7] << 24) | (unsigned long)(commandPacketBuffer[8] << 16) | (unsigned long)(commandPacketBuffer[9] << 8) | (unsigned long)commandPacketBuffer[10]);

                                                                                                                                         ^

C:\Users\mustafa\Documents\Arduino\libraries\LinxSerialListener\utility\LinxListener.cpp:521:89: warning: left shift count >= width of type

    unsigned long targetBaud = (unsigned long)((unsigned long)(commandPacketBuffer[7] << 24) | (unsigned long)(commandPacketBuffer[8] << 16) | (unsigned long)(commandPacketBuffer[9] << 8) | (unsigned long)commandPacketBuffer[10]);

                                                                                         ^

C:\Users\mustafa\Documents\Arduino\libraries\LinxSerialListener\utility\LinxListener.cpp:521:137: warning: left shift count >= width of type

    unsigned long targetBaud = (unsigned long)((unsigned long)(commandPacketBuffer[7] << 24) | (unsigned long)(commandPacketBuffer[8] << 16) | (unsigned long)(commandPacketBuffer[9] << 8) | (unsigned long)commandPacketBuffer[10]);

                                                                                                                                         ^

C:\Users\mustafa\Documents\Arduino\libraries\LinxSerialListener\utility\LinxListener.cpp:570:90: warning: left shift count >= width of type

    unsigned long targetSpeed = (unsigned long)((unsigned long)(commandPacketBuffer[7] << 24) | (unsigned long)(commandPacketBuffer[8] << 16) | (unsigned long)(commandPacketBuffer[9] << 8) | (unsigned long)commandPacketBuffer[10]);

                                                                                          ^

C:\Users\mustafa\Documents\Arduino\libraries\LinxSerialListener\utility\LinxListener.cpp:570:138: warning: left shift count >= width of type

    unsigned long targetSpeed = (unsigned long)((unsigned long)(commandPacketBuffer[7] << 24) | (unsigned long)(commandPacketBuffer[8] << 16) | (unsigned long)(commandPacketBuffer[9] << 8) | (unsigned long)commandPacketBuffer[10]);

                                                                                                                                          ^


Sketch uses 22,894 bytes (9%) of program storage space. Maximum is 253,952 bytes.
Global variables use 2,220 bytes (27%) of dynamic memory, leaving 5,972 bytes for local variables. Maximum is 8,192 bytes.

avrdude: stk500v2_setparm(): failed to set parameter 0x9e
avrdude: stk500v2_command(): unknown status 0xc8
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: stk500v2_command(): unknown status 0x01
avrdude: stk500v2_disable(): failed to leave programming mode
An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...