at90usbkey: downloading factory default firmware

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have an at90usbkey (at90usb1287 chip) that I'd like to re-program from its default firmware, but I want to make a backup of the default firmware first. Using Flip 3, I tried the Read Memory option, but it said that the memory was protected so I couldn't read it.

I see that there is some firmware available on the mass storage device provided by the at90usbkey
(at90usb128-usbkey-demo-3enum-host-mouse-1_0_2.zip), which might be the factory default firmware, but it is protected by a password. I filled out the form ( http://www.atmel.com/products/us... ) to get a password, but after submitting the form I was forwarded to http://www.atmel.com/products/av... , which has no information on passwords.

Does the at90usb128-usbkey-demo-3enum-host-mouse-1_0_2.zip file contain the factory default firmware? If so, where does one get the password to access the files inside the zip file?

If at90usb128-usbkey-demo-3enum-host-mouse-1_0_2.zip does not contain the factory default firmware, where can I find the factory default firmware?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Have you saved the contents of the key(at90usbkey) to a folder on your computer? This would be the first thing to do .The bootloader can be found there

In this folder you will find it as
libraries/bootloader/AVR USB/bl_usb.a90

The bl_usb.a90 is the bootloader that uses usb via the Flip program.

I don't think you can use Flip to erase the bootloader or to unlock the chip for memeory reading.

To be able to start fresh will take a chip erase and that would require a JTAG programmer like the dragon (there is a jtag port on the key) or you could do it with a ISP programmer like the AVRMKII but you would need to make some connections on those tiny ports.I used the JTAG's RST,GND,VCC and three lines to the appropriate ISP lines.

The bootloader can be reloaded using the two previous methods but not with the Flip software.

Once the bootloader is back in ,Flip can be used to load in the apps.

I don't know why you would want to blow out the bootloader,it makes it easy to load in apps,but if you need to then this is how I did it.

Pete

Edit: After re-reading your post I see you just want to save the pre-loaded app.The individual apps can be found in :
STARTERKITS/STK525-USBKEY/firmware/hex

I forget where the all in one app is but I will see if I can locate it.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Now that I look at it more closely, it seems that the original firmware is available at ms_mouse_host_USBKEY.a90 in the directory you mentioned. This is linked from html/usbkey.htm as "usb_3enum_host (Original Binary Code)". The "Original Binary Code" note should have tipped me off when I was looking through the HTML earlier :). Have you tried this hex file and found it to be identical to the factory default firmware?

Based on the size of the hex file, I'm guessing that it doesn't replace the mass storage device image on the at90usbkey. Is that correct?

I'm guessing that the mass storage device capability is only available if you explicitly include it in the firmware image. Does that sound right?

When one loads a new firmware image onto the device, does it affect the information stored in the mass storage device partition or is that left alone?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
I'm guessing that the mass storage device capability is only available if you explicitly include it in the firmware image. Does that sound right?

When one loads a new firmware image onto the device, does it affect the information stored in the mass storage device partition or is that left alone?


If you mean the data in the external flash, no it is not downloaded with the firmware image, nor is the external dataflash affected. Only the flash in the AVR itself is affected. The mass storage is on a separate chip (two chips, really, the ones between the joy stick and the switches).

Regards,
Steve A.

The Board helps those that help themselves.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Have you tried this hex file and found it to be identical to the factory default firmware?

When I went looking for it in my copied folder I could not find it ( somehow it got removed by gremlins)but I still had all the files on my key.It seems to be the original (mass storage and HID ) did not try the usb mouse but I don't see why not.

Originally I purchased 2 keys just in case if my messing around with one got it messed up.I did a complete erase of one by ISP(this did not touch the dataflash) and loaded the bootloader by ISP back into it.Well I should have documented the fuses but I didn't. The bootloader would work but loading in an app thru Blip would only work once.Took a peak at the fuses of the other one and using those settings got the old one working like new.

Just make sure when you use blip that the correct processor is selected.There is a good PDF file on using blip on the Atmel website.It seems now that most of the software for the apps is accessible without registering .A little cruising there will help.

Pete