AVR Studio Simulator Inaccuracy

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

AVR Studio Development Team,

I was just debugging a simple Mega32 App and noticed that AVR Studio was whining a bit about the simulator clock frequency I specified for the part.

Upon looking here: http://www.atmel.com/dyn/resourc...
The Mega32 should be good up to 16MHz but the AVR Studio simulator seems to think otherwise...

When I go through the menu system to set up the simulator
Debug->AVR Simulator Options-> Selecting the Mega32 device & it thinks the max clock freq is still 8 MHz.

It does let me use my 14.7456 clock that I wish to simulate with but it does complain about it. I'm using what I believed to be the newest version. 4.11.410 Service Pack 3.

It seems as though someone ought to put this on the TODO list for the next release -

Has anyone else noticed any other parts with incorrect Max Clock frequencies that can be added to the list?

Kindest Regards,

Erick

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

This belongs in the AVR Studio 4 forum, I believe.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

My apologies - I inadvertently put it here - The perk of being a new father is all this awake time in the middle of the night to do work - but apparently I'm a little more tired than I realized - ah the joys of parenthood.

Erick

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

Boy am I glad i'm only 16! ;)

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

someday if you lucky you'll be this sleep deprived too - there is something pretty amazing you feel when you look at this little person that you helped make....

Keep with the AVR/MCU stuff - If your only 16 and spending time on this site, especially if you playing around with this type of hardware at your age - You'll have a bright future!

TTFN

Erick

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

Erick--

There was a very recent thread on the CodeVision Yahoo board about this. IIRC, there is a problem in the XML file that can be easily modified.

http://groups.yahoo.com/group/co...

Lee

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

I wonder if it says anything similar to the answer I posted to this cross-posted question here:

https://www.avrfreaks.net/index.p...

(I can't access that yahoo group because apparently message access is for members only)

Cliff

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

Quote:

(I can't access that yahoo group because apparently message access is for members only)

Sorry; I thought read access was open. (?)

Anyway, a short quote:

Quote:
Starbuck,

dunno if this turns into something that is actually working
but the max. frequency is defined in the XML files residing
in the PartDesriptionFiles folder.
After editing the value there, the simulator no longer issues
a warning about the operating frequency being too high after
switching to 16MHz.

hth
-uwe

ps: I first had to reset the ReadOnly attribute of ATmega32.xml,
may yours is read only, too.

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

Thanks Lee,

That did the trick and I e-mailed our friends @ atmel to fix the file too.

by the way - I'm a new dad now...

Erick

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

I think you might have mentioned that earlier in the thread. :wink:

Lee

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

erickoberstar wrote:
by the way - I'm a new dad now...

Congratulations! I'm an old dad now - my daughter turned 20 this past Monday (and I was 37 years old when she was born).

BTW - AVR Studio 4.12 (currently in alpha test) shows a maximum frequency of 8 MHz for the ATmega32 but seems to accept any value without complaining.

Don