Problems with 6.1 SP1.1 simulator

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

Until recently I had very good experiences with the studio simulator. It was slow but reliable.

Recently I have had problems with the simulator stopping at places in the code where breakpoints have not been set.

I am using Atmel Studio 6.1 update 1.1 (build 2674) and atmega328/328P.

is anyone having a similar experience?

regards
Greg

Last Edited: Sun. Jul 7, 2013 - 07:41 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Have your tried SP1.1?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

js wrote:
Have your tried SP1.1?
My mistake... I was using SP1.1. original post edited to reflect correct version.

regards
Greg

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

No issues encountered here.

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

Could you give some more details? Can you provide us with an example?

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

I will PM an example to you.

regards
Greg

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

I'm actually able to reproduce this by creating a new project with mega328P, add some code and put a breakpoint on the next line of code after a function call. When I hit "run" it also breaks on the first line in the function. I haven't tested all models yet, but so far I've only been able to reproduce this behavior with mega328 and mega328P. (They use the same DLL.)

This needs a little more investigation to figure out, but I'm able to make the strange behavior disappear by changing to another device (i.e. mega2560) and then back to mega328P again.
I'll file this as a bug and keep you updated.

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

We have changed the tool we use for simulator model making twice. This seems to be connected with the models made with the first tool.

For future references the internal bug number is AVRSIM-269.

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

Thanks for the feedback and logging the ticket.

I also observed that sometimes I had to press F5 multiple times to get the simulator to continue execution.

I just tried swapping to the 2560 and back and now it all seems to work!!

Thanks for the suggestion.

regards
Greg

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

The bug is now fixed, It affects about half of the 8-bit AVR tiny/mega (not xmega) devices supported by the simulator.

The bug is caused by a single breakpoint hit being reported multiple times in certain situations. Pressing F5 until it moves on will not have any side-effects but is of course annoying.

If it is a show-stopper I might post an unofficial updated simulator model package here tomorrow.

The part about switching to another device and back again makes the problem go away I was unable to reproduce. It shouldn't make it go away, the problem is related to the device, the mega328 has it and the mega2560 does not.

- roland

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

rkruse wrote:
The bug is now fixed... If it is a show-stopper I might post an unofficial updated simulator model package.

- roland


Roland,
I only just saw this post and would appreciate it if you could post the correction.

The current operation is a pain in the...

regards
Greg

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

gregd99 wrote:
Roland,
I only just saw this post and would appreciate it if you could post the correction.

The current operation is a pain in the...

Had to split the package in two, the first part is attached here, the next will appear in a separate package.

1. The attached file is to be unzipped into the Atmel Studio 6.1 installation folder, here:
...\Program Files (x86)\Atmel\Atmel Studio 6.1\tools\Simulator\models, to replace existing files.

2. Do not delete previous contents of this folder. This package is incomplete, due to limitations of attachment size here. Just unzip over existing files. Consider taking a backup copy of the models folder first.

3. There will be an SP2 for AS6.1 relatively soon, it will include these fixes.

4. As always when tampering with your Studio installation, you do so at your own risk. :)

- roland

Attachment(s): 

Last Edited: Tue. Aug 6, 2013 - 07:08 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
SP2 for AS6.1 relatively soon
You mean for 6.1.1? :-)

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

js wrote:
Quote:
SP2 for AS6.1 relatively soon
You mean for 6.1.1? :-)

Actually I'm not quite sure what it will be called. The version numbering of the last one was a bit confusing... :-)

- roland

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

Quote:

The version numbering of the last one was a bit confusing...

All in good Atmel tradition :D

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

gregd99 wrote:
Roland,
I only just saw this post and would appreciate it if you could post the correction.

The current operation is a pain in the...

And here follows the second part.

1. The attached file is to be unzipped into the Atmel Studio 6.1 installation folder, here:
...\Program Files (x86)\Atmel\Atmel Studio 6.1\tools\Simulator\models, to replace existing files.

2. Do not delete previous contents of this folder. This package is incomplete, due to limitations of attachment size here. Just unzip over existing files. Consider taking a backup copy of the models folder first.

3. There will be an SP2 for AS6.1 relatively soon, it will include these fixes.

4. As always when tampering with your Studio installation, you do so at your own risk. :)

- roland

Attachment(s): 

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

I downloaded and installed the changes but the simulator behaviour was unchanged.

I tried recompiling and restarting the simulator. no success.

I changed the device type in as6 to another device, ran the simulator and then changed the device back to 328p... now it works OK.

Thanks Roland.

regards
Greg

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

gregd99 wrote:
I downloaded and installed the changes but the simulator behaviour was unchanged.

I tried recompiling and restarting the simulator. no success.

I changed the device type in as6 to another device, ran the simulator and then changed the device back to 328p... now it works OK.


Are you absolutely sure you installed both the zip files I posted (had to split it in two separate messages due to limitation in attachment size). The mega328P model is in the first part.

If you check the file libATmega328P.dll properties in .../Atmel Studio 6.1/tools/Simulator/models, it should have modification date 2013-07-18 11:28.

When I test with exectly the same model here, it works fine.

A long shot in the dark: search the entire Atmel Studio 6.1 installation folder + all directories in your PATH for files named libATmega328P.dll. We have been fooled before by having multiple versions of the same DLL installed.

- roland

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

I couldn't find another file.... but all does seem to work now.

regards
Greg