anyone else having simulator2 trouble on AS4.19?

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

I have code that assembles correctly and can simulate ok using simulator "1".
but if I try to run simulator2, on each step multiple registers change value, then on the next step, several more registers will change value.
this is obviously impossible.
i tried code that simulated correctly on simulator2 in 4.18 release.

anyone seeing a similar problem?
(I know I am not the only assembly code writer out here)

code is for a mega168P
(I tried simulating using all 4 variants of mega168)
I am using windows 7 ultimate 64 bit

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

Post a minimal example that exhibits the symptoms.
Quote your exact Studio version.

If someone else can reproduce the problem, we can report it to Atmel.

I suspect that if your computer gets a good night's sleep, it may feel better in the morning.

David.

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

studio version is 4.19.720

I will attempt to strip the code down and post it
I saw it on another processor with different code a few days ago and just did what I needed on simulator1.

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

Does your project happen to be extremely large? (like more than ~250 files included in the main assembly file?)

In that case there is a combination of bugs (Limitation of 255 source files in the object format, the assembler not acting on this limit being exceeded, and the object parser in AVR Studio being less than robust regarding errors in the object file), causing symptoms similar to yours.

Either way, we are interested in a reproducer. You can either post it here or e-mail it to avrbeta@atmel.com

Thank you,
roland

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

....and I was thinkering with the idea of getting 4.19....

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

gskinner wrote:
studio version is 4.19.720

I will attempt to strip the code down and post it
I saw it on another processor with different code a few days ago and just did what I needed on simulator1.


No need to, we have confirmed the problem. (for future reference, it is bug 14271)

It affects about half of the supported devices when using simulator2 in AVR Studio 4.19 beta (not AS5, not AS4.18 ). The affected devices in AVR Studio 4.19 beta are:

mega128(A)
mega1284P(A)
mega164P(A)
mega168P(A)
mega169P/165P(A)
mega324P(A)
mega328P(A)
mega3290P/329P/3250P/325P(A)
mega48P(A)
mega644P(A)
mega6490P/649P/6450P/645P(A)
mega88P(A)
tiny13(A)
tiny25
tiny261(A)
tiny43U
tiny45
tiny461(A)
tiny48
tiny85
tiny861(A)
tiny88

The remaining devices should be OK.

- roland

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

Thats a drag... where did you get that list of the chips I use ?

:)

--greg
Still learning, don't shout at me, educate me.
Starting the fire is easy; the hardest part is learning how to keep the flame!

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

rkruse, I found that it also won't keep the setting to maximize the project files when I open studio.

1) Studio 4.18 build 716 (SP3)
2) WinAvr 20100110
3) PN, all on Doze XP... For Now
A) Avr Dragon ver. 1
B) Avr MKII ISP, 2009 model
C) MKII JTAGICE ver. 1

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

indianajones11 wrote:
rkruse, I found that it also won't keep the setting to maximize the project files when I open studio.

If you mean that it always opens in a maximized window, this can be cured by means of opening Tools->Options, select "Workspace" on the left, and check the bottom checkbox "Restore desktop position and size when restarting"

This setting is not stored in the project file but is a global setting for AVR Studio 4 (stored in registry).

This setting should not by changed when updating from 4.18 to 4.19 (it was not for me, at least). Probably a different matter if you uninstalled 4.18 first

- roland

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

I mean the project file(s) won't open as maximized ( the studio IDE is good ). I applied the correct option in "options" . However, I've reverted back to AS4.18 now because of the same simulator issue from the OP.

1) Studio 4.18 build 716 (SP3)
2) WinAvr 20100110
3) PN, all on Doze XP... For Now
A) Avr Dragon ver. 1
B) Avr MKII ISP, 2009 model
C) MKII JTAGICE ver. 1