Debug Message

Gast #1243603
Lesenswert?

Hallo zusammen!
ich wollte mein programm debuggen und da sind mir im massage-fenster ein 
paar meldung aufgefallen!

z.B
AVR Simulator: Stack Overflow at 0x005a
AVR Simulator: Stack Overflow at 0x072b
AVR Simulator: Unsupported instruction 'jmp' at address 0x000945
AVR Simulator: Stack Underflow at 0x0e09
AVR Simulator: Stack Underflow at 0x0e09
AVR Simulator: Stack Underflow at 0x0e09
AVR Simulator: Stack Underflow at 0x0e09
AVR Simulator: Stack Underflow at 0x0e09
AVR Simulator: Stack Underflow at 0x0e09
AVR Simulator: Stack Underflow at 0x0e09
AVR Simulator: Too many stack errors - further reporting suppressed
AVR Simulator: Unsupported instruction 'call' at address 0x000043
AVR Simulator: Unsupported instruction 'jmp' at address 0x000945
AVR Simulator: Unsupported instruction 'call' at address 0x000043
AVR Simulator: Unsupported instruction 'jmp' at address 0x000945
AVR Simulator: Unsupported instruction 'call' at address 0x000043
AVR Simulator: Unsupported instruction 'jmp' at address 0x000945
AVR Simulator: Unsupported instruction 'call' at address 0x000043
AVR Simulator: Unsupported instruction 'jmp' at address 0x000945
AVR Simulator: Unsupported instruction 'call' at address 0x000043
AVR Simulator: Unsupported instruction 'jmp' at address 0x000945
AVR Simulator: Unsupported instruction 'call' at address 0x000043
AVR Simulator: Unsupported instruction 'jmp' at address 0x000945
AVR Simulator: Unsupported instruction 'call' at address 0x000043
AVR Simulator: Unsupported instruction 'jmp' at address 0x000945
AVR Simulator: Unsupported instruction 'call' at address 0x000043
AVR Simulator: Uninitialized stack pointer used at 0x0043

okee, ich versteh was er mir sagen will, aber leider nicht, was ich 
falsch mache!
z.b: wie genau verhindere ich einen stack over/underflow !?

MfG
Tom
Gast #1243863
Lesenswert?

Wenn ich mich nicht irre, gab es mal eine Studio-Version, die einen Bug 
hatte. Ob das in den aktuellen Versionen auch noch so ist, keine 
Ahnung...

Lass dein Programm halt bis zum ersten Stack-Fehler laufen, und schau 
dir die Adressen an. Dann solltest du erkennen, was los ist.

Oliver

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren