C-coding ATmega32 using AVR Studio4, on Windows 8.1 (64-bit)

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

I'm working on ATmega32 using AVR Studio4, on Windows 8.1 (64-bit).

However, I am unable to compile C-codes. My teacher suggested to install "AVR toolchain", but it's available only for 32-bit platforms.

Here's the compiler error:

------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      0 [main] sh 5112 sync_with_child: child 5824(0x14C) died before initialization with status code 0xC0000142
   9262 [main] sh 5112 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
rm -rf main.o  sim300a.elf dep/* sim300a.hex sim300a.eep sim300a.lss sim300a.map
make: [clean] Error -1073741502 (ignored)
Build succeeded with 0 Warnings...
      0 [main] sh 5744 sync_with_child: child 4400(0x14C) died before initialization with status code 0xC0000142
  14025 [main] sh 5744 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
make: *** No rule to make target `../main.c', needed by `main.o'.  Stop.
Build failed with 1 errors and 0 warnings...

------------------------------------------------------------------------------------------------------------------------------------------------------------------------

P.S.

Those who'd installed AVR Toolchain, were working with ATmega32 using AVR Simulator2, instead of AVR Simulator.

For me, the link for ATmega32 is unavailable when I select AVR Simulator2

(Unable to upload screenshots due to Server Error)

Last Edited: Sat. Oct 15, 2016 - 07:24 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

CRT13 wrote:
However, I am unable to compile C-codes. My teacher suggested to install "AVR toolchain", but it's available only for 32-bit platforms.
Atmel's AVR GCC toolchain on Windows is for either 32b or 64b Windows per its Release Note.

http://www.atmel.com/tools/ATMELAVRTOOLCHAINFORWINDOWS.aspx

Atmel's archive is another source :

http://www.atmel.com/tools/studioarchive.aspx

CRT13 wrote:
Here's the compiler error: ...
IIRC that looks similar to what's in the threads for AVR Studio 4 on

  • Windows 7
  • Windows 10

Windows 8.1 shares some with Windows 7.

 

P.S.

If operating AVR Studio is not required then you could evaluate PlatformIO on your preferred IDE though it's weak in debugger integration (IIRC only on Eclipse).

There are alternatives to Atmel Studio some of which have a price listing for education usage.


https://www.avrfreaks.net/forum/installing-avr-studio-419-windows-7-fixed

https://www.avrfreaks.net/forum/avr-studio-4-doesnt-see-anymore-my-jtagice-mkii-windows-10 (mention of Windows 8)

https://www.avrfreaks.net/forum/studio-419-build-730-windows-10

http://docs.platformio.org/en/stable/platforms/atmelavr.html

 

Edit : P.S., URLs

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Sun. Oct 16, 2016 - 12:15 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Goto the Studio Archive as suggested above

http://www.atmel.com/tools/STUDIOARCHIVE.aspx

 

Look for this version (There's an obvious error here it does actually install 3.3.2) and download / install it.

 

Atmel AVR 8-bit and 32-bit Toolchain 3.3.1 - Windows
(4921000, updated April 2012)
Windows installer for AVR 8-bit and 32-bit Toolchain version 3.3.2

http://www.atmel.com/System/BaseForm.aspx?target=tcm:26-40855

 

This is the most recent version of the toolchain that "Just Worked Well" with AVRStudio4. The versions up to 3.4.1 have Installshield based installers and do still work but require some fiddling to prevent a debugger crash. After 3.4.1 they are simple self-extracting ZIPs and don't even come with unix shell utils and require even more fiddling. As you are a beginner student let's keep it simple and use software versions designed to work together.

 

By-the-way: The unix shell utils that get installed are not as functional as those on unix/linux so let AVRStudio4 build the project and don't use external makefiles - this again can lead you down another path of misery.

 

Good Luck

 

 

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

As I remember the simulator2 don't work with the mega32, only 128 and one other AVR.

 

I don't know the download names but don't use 4.19 , for a mega32 use 4.18

and use the WinAVR-20100110​ C compiler (that isn't the one that come with the 4.18)

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

Atmel Studio Archive has moved to Microchip.

Microchip Technology Inc

Microchip Technology

AVR and SAM Downloads Archive

http://www.microchip.com/avr-support/avr-and-sam-downloads-archive

 

A how-to for AVR Studio 4.19 on Windows 8.1 :

 http://labs.nevion.com/support/tools/Atmel/INFO.txt

1. Install 4.19 with default USB drivers.
2. Connect to AVRISP MkII. Automatic installation of device errors on Win 8.1.
3. With AVRISP connected, install "driver-atmel-bundle-7.0.888.exe".
4. Check in Device Manager that under Jungo are both AVRISP mkII (11.1.0.0) and WinDriver (11.5.0.0).

via http://labs.nevion.com/support/tools/Atmel/

with Thanks! due to :

avrstudio AVRISP mkii drivers from atmel?

by Briancoats

https://www.avrfreaks.net/forum/avrstudio-avrisp-mkii-drivers-atmel

...

https://www.avrfreaks.net/forum/avrstudio-avrisp-mkii-drivers-atmel#comment-2447971

 

"Dare to be naïve." - Buckminster Fuller