Studio4.08 + USB to ICE50 = Failure

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

Hi All

This is a reposting of a message from the AVRGCC forum which fits better here. See the "Studio4.08" thread on that forum.

O.K. Thanks for all your comments but it looks like I am alone with my little problem. I have now gotten it to work using the serial cable connection but the problem remains with the USB connection. I dont think it is a problem with the COFF file so I guess this discussion belongs in the Studio4 forum not the GCC forum so I will copy this there and to Atmel too.

I am using Win98SE on a P4 2.4GHz machine and an ICE50, serial number 0000-07D3-6151. I have been succesfully using WinAVR20030424 and Studio4.07 talking to the ICE50 using a serial cable. I have now upgraded to the latest WinAVR20030913 (GCC3.3.1) and Studio4.08.

I have a Studio4.08 project set up to use the Extended COFF file generated by AVRGCC3.3.1 but the problem is that Studio4.08 will not load the COFF file when talking to the ICE50 via USB. It connects to the ICE50 and appears to communicate properly to configure the ICE50 but it then appears to be unable to find the COFF file on disk in order to load it. The following is the Studio4.08 message output when opening the project.

Loaded partfile: C:\Program Files\Atmel\AVR Tools\PartDescriptionFiles\ATmega8
ICE50 Trying to connect to USB
ICE50 Connected to USB
ICE50 Configuring ICE...
ICE50 ATmega8 initiated!
Error loading objectfile C:\My Documents\AVRGCC\SP600ABC\SP600ABC.cof

If I then disconnect the USB cable, connect the serial cable and reset the ICE50. Then try to load the project again in studio4.08 I get the same error as follows...

Loaded partfile: C:\Program Files\Atmel\AVR Tools\PartDescriptionFiles\ATmega8
ICE50 Trying to connect to COM1
ICE50 Connected to COM1
ICE50 Configuring ICE...
ICE50 ATmega8 initiated!
ICE50 Event Watchdog break
Error loading objectfile C:\My Documents\AVRGCC\SP600ABC\SP600ABC.cof

This seems to imply that studio4.08 has gotten itself into an eroneous state because if I then close studio4.08 and reopen it and then reload the project it works OK as follows...

Loaded partfile: C:\Program Files\Atmel\AVR Tools\PartDescriptionFiles\ATmega8
ICE50 Trying to connect to COM1
ICE50 Connected to COM1
ICE50 Configuring ICE...
ICE50 ATmega8 initiated!
Loaded objectfile: C:\My Documents\AVRGCC\SP600ABC\SP600ABC.cof

If I then disconnect the serial cable and reconnect the USB cable in wont work again as follows...

Loaded partfile: C:\Program Files\Atmel\AVRTools\PartDescriptionFiles\ATmega8
ICE50 Trying to connect to USB
ICE50 Connected to USB
ICE50 Configuring ICE...
ICE50 ATmega8 initiated!
ICE50 Event Watchdog break
Error loading objectfile C:\My Documents\AVRGCC\SP600ABC\SP600ABC.cof

However this time it will stop after "ICE50 Event Watchdog break" with the words "Loading event memory..." in the status bar and the progress bar blank. It will just sit there forever until you click the run button on the toolbar at which point the "Error loading objectfile C:\My documents\AVRGCC\SP600ABC\SP600ABC.cof" will appear.

I am not too sure what exactly the event memory is for or why it needs to be loaded but this seems to be something to do with the problem.

I have spent more than a day F@#!ing about with this including Upgrading the ICE50 firmware from studio4.08 (twice for good measure), updating the XML parser from microsoft, reinstalling studio4.08, reinstalling studio4.07 (yes it does seem to work with the ICE50 which has been upgraded from studio4.08 on the serial cable at least), reinstalling the USB driver, Re-downloading studio4.08 from Atmel insted of AVRfreaks (and reinstalling again), etc. but still I have not been able to get studio4.08 to work properly with the ICE50 on the USB cable.

In doing all this a couple of small problems showed up but they seemed to be overcome so I dont think they are the cause of my ongoing woes...

1) when upgrading the ICE50 firmware there is an error reported when upgrading the TRACE_MCU "Error programming MCU (Enter sleepmode failed), retrying..." This is repeatable if you repeat the upgrade but it tries again and succeeds. Entire upgrade message output is pasted below for completeness...

Upgrade program for ICE40 & ICE50 version 2.2.8.2
Found ICE50 on COM1, starting at 13:28:31
Waiting for ICE startup to complete...
ICE startup completed

[COM_CPLD]
Version on disk is 0x0004
Writing to Upgrade buffer...
Programming CPLD...
Programming OK!
Version on ICE is 0x0004
Upgrade successful.

[COM_MCU]
Version on disk is 0x0049
Resetting ICE
Found boot loader ver. 1.3 on COM1. Upgrading...
Chip erase ok.
Programming flash...
Verifying...
Verify OK!
OK!

[AVR_MCU]
Version on disk is 0x002A
Writing to Upgrade buffer...
Programming MCU...
Programming OK!
Version on ICE is 0x002A
Upgrade successful.

[OSC_MCU]
Version on disk is 0x0020
Writing to Upgrade buffer...
Programming MCU...
Programming OK!
Version on ICE is 0x0020
Upgrade successful.

[MMU_MCU]
Version on disk is 0x001D
Writing to Upgrade buffer...
Programming MCU...
Programming OK!
Version on ICE is 0x001D
Upgrade successful.

[ICE_ID]
Ice type read OK.

[AVR_FAT]
Old flash file system, formatting...
Flash file system formated ok

[POD_MCU]
Version on disk is 0x000D
Writing to Upgrade buffer...
Programming MCU...
Programming OK!
Version on ICE is 0x000D
Upgrade successful.

[TRACE_MCU]
Version on disk is 0x0018
Writing to Upgrade buffer...
Programming MCU...
Error programming MCU (Enter sleepmode failed), retrying...
Programming MCU...
Programming OK!
Version on ICE is 0x0018
Upgrade successful.

[MMU_FAT]
Old flash file system, formatting...
Flash file system formated ok

[EVENT_MCU]
Version on disk is 0x001F
Writing to Upgrade buffer...
Programming MCU...
Programming OK!
Version on ICE is 0x001F
Upgrade successful.

[EVENT_FAT]
Old flash file system, formatting...
Flash file system formated ok

[OSC_CPLD]
Version on disk is 0x0010
Writing to Upgrade buffer...
Programming CPLD...
Programming OK!
Version on ICE is 0x0010
Upgrade successful.

[POD_CPLD]
Version on disk is 0x0010
Writing to Upgrade buffer...
Programming CPLD...
Programming OK!
Version on ICE is 0x0010
Upgrade successful.

[TRACE_CPLD]
Version on disk is 0x0143
Writing to Upgrade buffer...
Programming CPLD...
Programming OK!
Version on ICE is 0x0143
Upgrade successful.

[TS_CPLD]
Version on disk is 0x000C
Writing to Upgrade buffer...
Programming CPLD...
Programming OK!
Version on ICE is 0x000C
Upgrade successful.

[MMU_FPGA]
Version on disk is 0x001F
Formatting flash file system
Upgrading FPGA file mmu_include.bin
Open fpga file...
Writing FPGA file...
Writing file OK
Loading FPGA...
Loading OK!
Number of files: 1
Version on ICE is 0x001F
Upgrade successful.

[EVENT_FPGA]
Version on disk is 0x0017
Formatting flash file system
Upgrading FPGA file event_FPGA.bin
Open fpga file...
Writing FPGA file...
Writing file OK
Loading FPGA...
Loading OK!
Number of files: 1
Version on ICE is 0x0017
Upgrade successful.

[ATmega128.bin]
Version on disk is 0x0126
No such file on ICE.
Upgrading FPGA file ATmega128.bin
Open fpga file...
Writing FPGA file...
Writing file OK
Loading FPGA...
Loading OK!
Number of files: 1
Version on ICE is 0x0126
Upgrade successful.

Resetting ICE.

0 modules failed.

Ended at 13:45:07

2) When installing the USB driver an error message was raised saying that one of the programs (installer programs?) did not terminate properly. I then deleted the "Jungo" drivers from my computer using the device manager and reinstalled the USB driver again. This time all went OK and the Jungo driver appears in the device manager with the ICE50 and WinDriver below it in the tree and device manager says they are all working properly.

Anyway I cant get the USB to work.

If anyone else has a similar problem please respond here and let everyone know.

If anyone at Atmel can help then that would be great. Hopefully all the trouble I have gone too over this will make a positive contribution to improving the product.

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

Good News! ATMEL came to the rescue.

I emailed my lengthy problem description to them before going home and the next morning the answer was waiting in my inbox.

Quote from ATMEL...

"It turns out there is an error in the COFF parser in the 4.08 beta release. The problem is evident only when loading a COFF file using USB with ICE50.

Please find attached a dll which fixes the problem. If you want to try it out, you can replace the existing dll by default found in the 'C:\Program Files\Atmel\AVR Tools\AvrStudio4\dll' folder. The fix will be included in the final 4.08 release due in a couple of weeks."

The DLL file they sent was AvrParserCoff.dll

You too can have the latest fix by emailing Atmel at avrbeta@atmel.com

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

I have similar issues using .d90 files, ICE50, 4.08. I also downloaded 4.08 (from Atmel), upgraded my ICE50, and loaded the new USB driver. First of all, every time I turn on the ICE50 with USB attached, Windows 2000 finds it and starts loading the old USB driver (which ends up with a conflict and I have to uninstall). I never got the thing to work once with the new USB. The old one worked sometimes, but always ended up locking things up after a few file reloads. I think the serial port is even more troublesome now than it used to be; seems like I always have to start it up twice in the morning to get thing rolling (the dreaded "could not connect" frowny face). I really wish that Atmel would spend time getting things like basic communication rock solid before they add more features. My ICE50 is giving me the dreaded frowny face. I don't think I ever had a problem connecting to my old ICE30 in 2 years; and I can't remember ever using the reset button on it.

admin's test signature
 

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

Did you look at the procedure found in the ICE50 On-Line help, Section "Connecting ICE50", "Upgrading the USB Driver"? It gives a description on how to get rid of old USB drivers for ICE50 under Win2k.

admin's test signature
 

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

The ICE50 users guide on the Atmel web site (updated 11/02) still says the USB is not supported. Is there a newer users guide somewhere I don't know about? Anyway, the problem isn't getting rid of the old USB driver, it's getting it to quit coming back every time I power up the ICE50.

admin's test signature
 

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

Online help = the help menu in the AVR Studio application.

-Geir

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

When installing Studio 4.08 it tells you what to do to update the ICE50 drivers, so unless you specifically do it, the drivers will not install/update. I did not install them because I don't have an ICE50.

admin's test signature
 

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

Sam

getting the USB driver not to reappear was just my point, the section I pointed to in the on-line help (the help menu in the AVR Studio, the book covering ICE50) contains a procedure to remove an old USB driver so it wont reappear when you power up the ICE50 again. I just wondered if you had tried it? Looked to me that it was what you were looking for.

admin's test signature