avr32program under Windows 7 64-bit

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

I'm getting the AVR32 software tools installed on my new Windows 7 64-bit PC. Got everything working, but now I need my JTAG ICE, and I can't seem to run avr32program. When I execute it in a cygwin window, it simply returns without saying anything -- no complaints, no anything.

If I try running avr32program by double-clicking in a Windows Explorer window, Windows complains:

"avr32program.exe - Application Error"

"The application was unable to start correctly (0xc000007b). Click OK to close the applicaton."

Anyone have an idea of what the problem is and how I might get around it?

Thanks in advance for any help.

--
Bert Menkveld
bert@greentronics.com

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

The error code tells us you have a problem with the binary image. Could you try to reinstall it? Some dll are placed next to the avr32program, are needed to run! ( next to the exe or on you system path )

Avr32Studio 2.6 installed version works for me on Win7/64bit/32bit.(standalone isn't tied) Do you use this version?
--
Oneill

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

Thanks for the response, Oneill.

I'm using the latest AVR32 Studio archive, downloaded from atmel.com. It says it's V2.6.0.

I have re-installed just now, and also rebooted my system, but it has not made any difference.

When I try to initiate JTAG ICE actions inside AVR32 Studio they also fail, without any error message, after trying to run avr32program.

There are indeed a bunch of .dll files in the same directory as avr32program.

The avr32program in my installation is dated Dec 21, 2009 at 12:20 PM. Is that the most recent version?

Any more ideas?

--
Bert

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

Are you sure you do not install 64-bit version on 32-bit system?

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

Quote:

Are you sure you do not install 64-bit version on 32-bit system?

My Windows 7 installation is definitely a 64-bit version.

I did not see any option for installing a 32-bit or 64-bit version of the AVR32 Studio. Is it possible I've got a 32-bit version of avr32program? If so, where do I get the 64-bit version? I only see ony one Windows V2.6 download on the Atmel web site.

--
Bert

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

OK, from a quick google reconnaissance the problem is caused by mess in DLLs.

Try this solution: http://social.answers.microsoft....

You are required to use a tool clearing Windows 7 installation cache, before you reinstall binaries once again.

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

Thanks for that pointer. Unfortunately MS has decided to pull that utility since it apparently causes problems sometimes.

Maybe I should just blast the whole AVR32 Studio installation and try again?

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

I'm sure You use 32bit version. ( If I'm right there is no 64bit version).
Could you try the installable version?

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

I've just finished uninstalling both the AVR32 Toolchain and AVR32 Studio, rebooting, and then installing them again. No luck: still the same thing when I try to run avr32program:

"avr32program.exe - Application Error"

"The application was unable to start correctly (0xc000007b). Click OK to close the applicaton."

This computer is a new (2-months old) Win 7 (64-bit) PC that has been running quite flawlessly.

Am I the only one encountering this?

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

You said toolchain and studio, studio 2.6 is bundled into one package!
You just need to install the AVR32 Studio 2.6.
After uninstalls and the install could you post the PATH system variable (echo ?PATH? replace ? with percentage mark), and the command line with path of the avr32program.

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

Thanks for your help, Oneill.

I have, apparently, been confused. Atmel has two separate packages to download on their web site (http://www.atmel.com/dyn/product...):

AVR32 Studio 2.6
AVR32 GNU Toolchain 2.4.2

I have installed both of these. However, at your suggestion I have uninstalled both, and installed just AVR32 Studio. I then found an avr32program.exe in this rather obscure directory:

C:\Program Files (x86)\Atmel\AVR Tools\AVR32 Studio\plugins\com.atmel.avr.utilities.win32.x86_3.0.0.201009140848\os\win32\x86\bin

Executing this avr32program does not cause the same error, so it seems I'm on to something better here.

Unfortunately, AVR32 Studio apparently has no idea where to find avr32program, as trying to use it results in:

Could not read fuses
Cannot run program "avr32program": CreateProcess error=2, The system cannot find the file specified

I wonder if the previous installing of the GNU toolchain package separately has broken something?

I have manually added this directory to the system path, and after re-starting AVR32 Studio it now successfully executes avr32program! I can also run it directly from the command line.

I'm not sure exactly what went wrong in my installation procedure, but it seems things are now working. Thanks for your help.

Regards,

Bert Menkveld
bert@greentronics.com

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

Yes, AVR32 Studio v2.6 comes with the new AVR Toolchain v3.0 embedded. Hence, when you installed the rather old AVR32 GNU Toolchain v2.4.2 it was probably not compatible with 64-bit Windows.

I also stumbled over the path issue, but after adding the utilities path to the PATH variable it is working nicely.

Hans-Christian

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

Thanks for the confirmation of my sanity. It would have saved me a fair bit of time if Atmel had managed to make it clear that I should *not* be installing the GNU toolchain separately. Oh well....

--
Bert Menkveld