atmega328p, AVR studio 4 and avr-gcc

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

I recently upgrade from Atmega8 to Atmega328p, which is pin to pin compatible but with larger flash memory. My problem is that Atmega328p is not supported by latest version of avr-gcc. AVR studio 4 only allow to compile for this chip in assembler. I tried to mess around compiler's settings but it appears easier than it is.

Help :!:

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

Code built for mega168 should be binary compatible though the default stack position would be set just half way through the SRAM (and the .h files won't fully support the new power reduction registers/bits)

Cliff

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

Is there a way to modify where to place stack and flash top? I remember doing that for a 6809 back in 1993 with a crappy old compiler (haha!)

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

how i download 

atmega328p, AVR studio 4

jamil

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

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

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

So help us:  What is the purpose for this search for a toolchain over a decade old?  Was there even support for that model in Studio4?

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

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

theusch wrote:
Was there even support for that model in Studio4?

LOL -- A query taked onto an ancient somewhat-related thread, where it was stated by OP

francis.gradel wrote:
My problem is that Atmega328p is not supported by latest version of avr-gcc. AVR studio 4 only allow to compile for this chip in assembler.

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.