Arduino WiFi Shield update error

I tried updating the arduino WiFi firmware shield following the recommendations in the given site : http://arduino.cc/en/Hacking/WiFiShieldFirmwareUpgrading

from the procedures i downloaded the new Flip programmer, and used the following code in my windows command prompt:
batchisp.exe -device AT32UC3A1512 -hardware usb -operation erase f memory flash blankcheck loadbuffer /Arduino/hardware/arduino/firmware/wifishield/binary/wifi_dnld.elf program verify start reset 0

The resulting problem is given in the attached picture to this thread

Is the file wifi_dnld.elf present in that subdirectory ?

Just solved the problem:

  1. Install AVR-tool-chain
  2. Install AVR32 Studio 2.6 (2.6 is a must ,2.5 doesnt work with the AVR toolchain)
  3. Install Flip 3.4.7
  4. Connect your Arduino Wifi Shield with the jumper fixed on it (DFU programming) with the mini USB Note: "Remove all connections from the pins"
  5. Go to Device manager->Other Devices->AT32UC3A DFU->Properties->Driver->Update Driver
  6. Browse my computer for driver software->C:\Program Files (x86)\Atmel\Flip 3.4.7-> install it
  7. Download the new firmware from official Arduino WiFi shield GitHub
  8. Open AVR32 Studio 2.6 (WiFi shield should be connected)
  9. Close welcome window -> Under the AVR targets -> create new target
  10. under the Properties -> General tab -> Set the Name: AT32UC3 DFU
  11. under Details tab -> Choose Debugger/programmer:USB DFU ->Device:AT32UC3A1256 -> Clock source: Internal RC oscillator ->Board: STK600
  12. right click on the new target "AT32UC3 DFU"-> select "Program"
  13. under the new window select the target path of the downloaded file from the GitHub
  14. Select these before pressing "OK"
    a)verify memory after programming
    b)Start executing after programming
    c)Erase flash before programming also
  15. Program reporting can be viewed from the "Console" (lower left corner of the AVR32 Studio 2.6)

Courtesy: Lauren pan , his article "How to upgrade Arduino WIFI shield firmware (on Windows)"

I have been trying every recommendation possible to update my WiFi shiled, with no success. When I run the following command:

batchisp.exe -device AT32UC3A1512 -hardware usb -operation erase f memory flash blankcheck loadbuffer \arduino-1.0.3\hardware\arduino\firmwares\wifishield\binary\wifi_dnld.elf program verify start reset 0

I get :

Device selection... FAIL Device does not exist.

When I try your procedure in this thread, I get to step 13, I was unsure of which file I am to select, so I have tried both the wifi_dnld.elf and wifi_dnld.hex but on step 14 i get:

'Program target' has encountered a problem.
A problem has occurred.

Oh, and the details are blank.

Any help is greatly appreciated.

edit
I found my problem... I had a previous version of Flip installed and it was messing up my path variable.

I'm glad that you found this helpful. :slight_smile: :slight_smile:

Hello,
i'm contacting you for a direct wifi library for a component that i already bought ( MRF24WG0MA-microchip ) that supports direct wifi in purpose of establishing a direct communication between a mobile and the arduino circuitboard. Due to studies goals, i prefer working on a direct wifi communication rather than ad hoc network.
Thanks in advance hoping a positive respond from you.

Hello,
i'm contacting you for a direct wifi library for a component that i already bought ( MRF24WG0MA-microchip ) that supports direct wifi in purpose of establishing a direct communication between a mobile and the arduino circuitboard. Due to studies goals, i prefer working on a direct wifi communication rather than ad hoc network.
Thanks in advance hoping a positive respond from you.

Excellent, thanyou very much for the tutorial.

best regards!!!

Thank You very much for tutorial, solved my problem with the command line version.
Please edit Your links as they are not ok :slight_smile:

Instead of downloading files from GitHub i used files in my 1.5.4 installation folder.
Now i have 1.1.0

Thanks again!

jerriclynsjohn:
Just solved the problem:

Here is a page describing how I upgraded my WiFI Shield a Uno R3 board with Arduino 1.0.5r2 Software, a Windows 8.1 machine and WiFi Shield Model R3. I hope it works for you too.

  1. Download and install Flip from here. Atmel Products | Microchip Technology You don't need to use or run the Flip program. There is a sub-program in the download you will need to use later. You will get to this sub-program (batchslip.exe) using a DOS command prompt. There is also a driver for the chip on the WiFi Shield (AT32UC3A or AT32UC3A DFU) that you will need.

  2. If you recently installed a version of Arduino onto your computer, the software you need to update the WiFi Shield is in the Arduino directory structure. I know this to be true for me when I recently installed Arduino Version 1.0.5. (You might need to install a current version).

  3. Connect your WiFI Shield to the Uno board. Put the jumper across both pins on 'DFU Programming Jumper'. Shown on 4th picture of the WiFi Shield on this page: ? http://arduino.cc/en/Main/ArduinoWiFiShield
    To find the picture of the jumper, look for the words and arrow pointing to the board “ DFU programming jumper (only used for updating shield firmware, leave unconnected for typical use)”.

  4. Connect power to your Arduino. Then connect a mini USB to the WiFi shield (not a micro-USB) and your computer.

  5. Hopefully your Windows Device manager will show AT32UC3A DFU under “Other Devices”. You may have to play with plugging/ unplugging power to Arduino and also the WiFI Shield's USB port connected to your computer. One time I had luck by not powering the Arduino and only plugging in the USB mini between computer and the WiFi Shield.

  6. Right-Click on the device in 'Device Manager' and select “Update Driver” . I chose to install from my computer and directed the Device Installer application to Install from... C:\Program Files (x86)\Atmel\Flip 3.4.7 . I had an option to click “Include Subdirectories'. Sorry, I am not certain what sub-folder the driver might actually be in. When this step is complete, The AT32UC3A DFUshould be properly listed in Device Manager under “Atmel USB Devices”.

  7. Open a command prompt and navigate to the directory where “batchslip.exe” was installed by Flip. For me it was C:\Program Files (x86)\Atmel\Flip 3.4.7\bin ...but it depends where the Atmel software is installed and what version you download.

  8. Once you are in the directory ( C:\Program Files (x86)\Atmel\Flip 3.4.7\bin) , you will need to run two commands. You will need to determine where you initially installed your Arduino software. I installed mine in C:\Arduino instead of the recommended lengthy folder suggested ( * something like C:\Arduino 1.0.5.) .. Therefore you might need to adjust the directory structure in the two commands I have listed below.
    I suggest Cut and paste the first command from below, then make it match your * Arduino folder name. You may have to dump the following command in to a notepad or something to make sure there are no line breaks.

    c:\Program Fils (x86)\Atmel\Flip 3.4.7\bin>batchisp.exe -device AT32UC3A1256 -hardware usb -operation erase f memory flash blankcheck loadbuffer c:\Arduino\hardware\arduino\firmwares\wifishield\binary\wifi_dnld.elf program verify start reset 0

    Here is what you should see on the command line..........


Running batchisp 1.2.5 on Sat May 10 21:16:01 2014

AT32UC3A1256 - USB - USB/DFU

Device selection....................... PASS
Hardware selection..................... PASS
Opening port........................... PASS
Reading Bootloader version............. PASS 1.0.2
Erasing................................ PASS
Selecting FLASH........................ PASS
Blank checking......................... PASS 0x00000 0x3ffff
Parsing ELF file....................... PASS c:\Arduino\hardware\arduino\firmwares\wifishield\binary\wifi_dnld.elf
WARNING: The user program and the bootloader overlap!
Programming memory..................... PASS 0x00000 0x2902b
Verifying memory....................... PASS 0x00000 0x2902b
Starting Application................... PASS RESET 0

Summary: Total 11 Passed 11 Failed 0

c:\Program Files (x86)\Atmel\Flip 3.4.7\bin>

  1. Now to update the second piece
    Cut and paste the command from below. You may have to dump it in to a notepad or something to make sure there are no line breaks.

    c:\Program Files (x86)\Atmel\Flip 3.4.7\bin>batchisp.exe -device AT32UC3A1256 -hardware usb -operation erase f memory flash blankcheck loadbuffer c:\Arduino\hardware\arduino\firmwares\wifishield\binary\wifiHD.elf program verify start reset 0

Press Enter

Here is what will happen on your screen..

Running batchisp 1.2.5 on Sat May 10 21:34:04 2014

AT32UC3A1256 - USB - USB/DFU

Device selection....................... PASS
Hardware selection..................... PASS
Opening port........................... PASS
Reading Bootloader version............. PASS 1.0.2
Erasing................................ PASS
Selecting FLASH........................ PASS
Blank checking......................... PASS 0x00000 0x3ffff
Parsing ELF file....................... PASS c:\Arduino\hardware\arduino\firmwares\wifishield\binary\wifiHD.elf
WARNING: The user program and the bootloader overlap!
Programming memory..................... PASS 0x00000 0x3fe2b
Verifying memory....................... PASS 0x00000 0x3fe2b
Starting Application................... PASS RESET 0

Summary: Total 11 Passed 11 Failed 0

c:\Program Files (x86)\Atmel\Flip 3.4.7\bin>

  1. Remove the Jumper from the WiFi Card. Remove the Min USB.

  2. To Verify your version, here is a Sketch
    ==================================
    #include <WiFi.h>
    #include <WiFiClient.h>
    #include <WiFiServer.h>
    #include <WiFiUdp.h>

// This mini program checks your WiFi Shield for the current version.
// Assembled by Mark Matthias May 10 2014
void setup(){
Serial.begin(9600);
Serial.print("Current Firmware Version: ");
Serial.println( WiFi.firmwareVersion());

}
void loop(void)
{

}

=================
After uploading, Open Serial Monitor. I updated mine and the print out on Serial Monitor is:
“Current Firmware Version: 1.1.0”
It used to be 1.0.0 .

Not sure if these steps work with anything else. I used a Uno R3 board with Arduino 1.0.5r2 Software, a Windows 8.1 machine and WiFi Shield Model R3.

Good Luck.

jerriclynsjohn:
Install AVR32 Studio 2.6 (2.6 is a must ,2.5 doesnt work with the AVR toolchain)

Where I can find a link to download the AVR32 Studio 2.6? I have tried also to install the 6.1 version from here:

but it'is not possible to download e.

Can you help-me?

I have the same problem, AVR32 studio no longer seems to be available. Can anybody post a link to it, or a working alternative?

Have searched the subject of WiFi Shield problems.

The events I am faced with is as follows -

Wifi Shield (AT32UC3A1256) & Arduino Uno connects to the server with static ip and working for at nearly two years.

Same Arduino Uno now replaced new Wifi Shield (AT32UC3A1512), the attempt to connect to the same static ip fails.

All solutions found on web recommend an update to AT32UC3A1256 firmware for solving issues. But the issue is with AT32UC3A1512. AT32UC3A1512 might not be backward compatible? How do you guys see the problem and whats the route to solve?

Thanks for your consideration.

I tried following markMatthias' instructions but it didn't work. I opened batchisp.exe and it was empty. When I tried the command on command prompt,

markMatthias:
c:\Program Fils (x86)\Atmel\Flip 3.4.7\bin>batchisp.exe -device AT32UC3A1256 -hardware usb -operation erase f memory flash blankcheck loadbuffer c:\Arduino\hardware\arduino\firmwares\wifishield\binary\wifi_dnld.elf program verify start reset 0

c:\Program Files (x86)\Atmel\Flip 3.4.7\bin>batchisp.exe -device AT32UC3A1256 -hardware usb -operation erase f memory flash blankcheck loadbuffer c:\Arduino\hardware\arduino\firmwares\wifishield\binary\wifiHD.elf program verify start reset 0

it said "not a valid Win32 applicaton". PLEASE HELP ME!!!!!! I need this for a school project due Monday!!! I am working with Windows 7(64 bit), Arduino 1.0.6 IDE, Arduino Uno, and Wifi Shield.
PLEASE HELP ME!!!!!!

hello

i also have a problem to upgrade the firmware

C:\Program Files (x86)\Atmel\Flip 3.4.7\bin>batchisp.exe -device AT32UC3A1256 -hardware usb operation erase f memory flash blankcheck loadbuffer "C:\Program Files (x86)\Arduino\hardware\arduino\avr\firmwares\wifishield\binary\wifi_dnld.elf " program verify start reset 0
An error has occurred while processing the shared archive file.
Mark mismatch while restoring from shared file.
Error occurred during initialization of VM
Unable to use shared archive.

I don't understand what i means.

Could you help me?

I'm working with a windows seven

thanks

PS: Upon windows seven, the arduino program is installing under program file x86 directory, so it should update this webpage "http://arduino.cc/en/Hacking/WiFiShieldFirmwareUpgrading"
PS: The link on this webpage for downloading the firmware on the git site is dead.

Best regards

I got this problem also: How to solve it?