Excessive stack overflow in SP3

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

Hi.

I am trying to simulate an old and perfectly working assembler program for a Mega16. I have recently upgraded to SP3 build 490, but now the simulator gives me "AVR Simulator: Excessive stack overflow, stop sim" at a specific program location. And the stack is not overflowed at all (only 6 bytes used).
The simulator also stops at another program line, but without any warnings or anything. Just like there was a breakpoint there, but there isn't.

Does this sound familiar to anyone?
Is there anything I can do to get my simulator to work again, apart from a total reinstall?

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

See my post :
https://www.avrfreaks.net/index.p...

While my problem was with stack underflow I did on occassions see an overflow.

Atmel have confirmed that this a bug associated with icall and eicall.

may be a different problem but its worth a look.

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

Interesting. It does look somewhat related. Only I get the problem with a good old rcall. I use rcalls all over the program, but it is only one specific function, that experience these problems.

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

Svuppe wrote:
Interesting. It does look somewhat related. Only I get the problem with a good old rcall. I use rcalls all over the program, but it is only one specific function, that experience these problems.

The problem Trevor mentioned only affects icall /eicall. I'm not aware of any other problems with the stack supervision in the simulator in 4.12.490. If you can send (part of) your project exhibiting the problem to avrbeta atmel com, I will have a look at it.

- Roland

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

The file is in the mail.
You got the entire project. I tried to remove some non-relevant parts of the code, but then the error disappeared.