Forum: Compiler & IDEs Debug Message


von Tom (Gast)


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

von Johann L. (gjlayde) Benutzerseite


Lesenswert?

Erst mal für den richtigen Controller übersetzen, also für den, der auch 
zu simulieren ist. Offenbar passt das nicht zusammen.

von Klaus W. (mfgkw)


Lesenswert?

Wenn du eine massage-Fenster siehst, musst du erst mal die schweinischen 
Sachen wieder zumachen!

von Oliver (Gast)


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

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.