Migrating to AVR Studio

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

Hello Everybody. Today is Day Number One in learning about Atmel AVR with the ATMEGA168 Development Board, received as a birthday gift from ProtoStack. I have disovered that I need AVR Studio 4 to develop for AVR mCUs.

In March 2010, I started working with the Atmel 89Cx051 mCU and created C code using Keil uVision 3. I thought I could use that for the ATMEGA168, but couldn't find it as a device option, nor could I find any AVR mCUs in the listing.

In April 2010, I started working with the Microchip Technology PIC16F877A, and began to enjoy that mCU, so I ported over my Keil uVision 3 source codes into PCW. My ported code works fine with a different mCU.

Now, the question I have, is, do I have to start from scratch with AVR Studio 4? Or can I migrate code (assembly or C/C++) for AT89Cx051 series into AVR Studio? Target device is ATMEGA168.

Aspiring Digital Graphics Artist & Illustrator

Retired Embedded Speech Synthesis Systems Developer

Due to emotional trauma in 2014, I have stopped working with embedded electronics!

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

There are several C compilers available for 8-bit AVRs.

Eg CodeVision, ImageCraft and IAR are commercial, pay-for, tool chains but have limited evaluation downloads. Details on limits vary.

A GCC-based tool chain is avr-gcc with it's supporting run time library avrlibc. For Windows the easiest way to get that going is to download and install the WinAVR package. avr-gcc is a command line tool, but if you download and install AVR Studio also they will integrate into a C/C++ IDE.

And before you ask: https://www.avrfreaks.net/index.p...

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

JohanEkdahl wrote:
There are several C compilers available for 8-bit AVRs.

Eg CodeVision, ImageCraft and IAR are commercial, pay-for, tool chains but have limited evaluation downloads. Details on limits vary.

A GCC-based tool chain is avr-gcc with it's supporting run time library avrlibc. For Windows the easiest way to get that going is to download and install the WinAVR package. avr-gcc is a command line tool, but if you download and install AVR Studio also they will integrate into a C/C++ IDE.

And before you ask: https://www.avrfreaks.net/index.p...

Ah, I never ask "Which compiler is the best?" questions. I'd probably ask, "Which compilers are available?" type of questions...

Anyhow, I downloaded and installed AVR Studio. I booted up the IDE and my mind went blank, probably because of old age... I found example C code for LED chaser lights & pasted it into AVR Studio, and then I realized that it looks like the same program I used for Microchip Technology's PIC programming, rather than Atmels 89Cx051 programming. I compiled the code and used eXtreme Burner to send it to my dev board, and it worked as expected. WOW!

I don't mess around with much commercial compilers, unless I choke up the money to pay for it. It looks like Atmel's AVR Studio is competing with Microchip Technology's MPLAB, both of which are free.

Overall, regarding Newbie questions, I generally don't ask them. I'm typically known for asking extremely complex questions and when newbies ask me a question, I generally give a complex answer.

It's sad to know (now) that Atmel didn't add the AT89Cx051 mCUs to their AVR Studio, because, if they did, I'd be using AVR Studio back in March 2010.

Kuya Marc

Aspiring Digital Graphics Artist & Illustrator

Retired Embedded Speech Synthesis Systems Developer

Due to emotional trauma in 2014, I have stopped working with embedded electronics!

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

Quote:

to their AVR Studio

I wonder if there's a clue in the name? ;-)

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

clawson wrote:
Quote:

to their AVR Studio

I wonder if there's a clue in the name? ;-)

Trying to match my sarcasm?

Aspiring Digital Graphics Artist & Illustrator

Retired Embedded Speech Synthesis Systems Developer

Due to emotional trauma in 2014, I have stopped working with embedded electronics!