Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.sci.electronics > #308716
| From | "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> |
|---|---|
| Newsgroups | de.sci.electronics |
| Subject | MPLAB Simulator für AVR kaputt? |
| Date | 2021-08-18 10:40 +0000 |
| Message-ID | <io46cfFb4q2U1@mid.individual.net> (permalink) |
Ich versuche gerade mit der neuesten MPLAB X IDE ein einfaches
Programm für einen ATTiny13a im Simulator zu testen.
#include <xc.h>
#include <avr/io.h>
uint8_t ov=0;
void __interrupt(TIM0_OVF_vect_num) t0isr(void) {
ov++;
}
int main(void) {
TCCR0B=5; // clk/1024
TIMSK0=_BV(TOIE0);
TCNT0=0;
ei();
/* Replace with your application code */
while (1) {
}
}
Wenn ich nun das Programm mit Debug starte, bleibt der Simulator am Ende
der ISR stehen, obwohl kein Breakpoint gesetzt ist.
Im Simuatorausgabefenster sind dann die folgenden Warnungen/Fehlermeldungen:
W0116-SIM: Last push caused a stack overflow
E0108-SIM: Failed simulator operation: java.lang.ArrayIndexOutOfBoundsException: -1
....
Bei einem ähnlichen Programm für einen PIC16f627 tut der Simulator wie er
soll. Er hält nur beim Breakpoint an und auch "Continue" funktioniert bis
er beim nächsten Timeroverflow am gesetzten Breakpoint anhält.
Kann es sein, daß die Unterstützung der ATMEL Chips entgegen der Dokumentation
doch noch nicht so weit gediehen ist?
--
Dipl.-Inform(FH) Peter Heitzer, peter.heitzer@rz.uni-regensburg.de
Back to de.sci.electronics | Previous | Next — Next in thread | Find similar | Unroll thread
MPLAB Simulator für AVR kaputt? "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2021-08-18 10:40 +0000
Re: MPLAB Simulator für AVR kaputt? Gunther Mannigel <newsgroups@mannigel.net> - 2021-08-31 22:13 +0200
Re: MPLAB Simulator für AVR kaputt? Josef Moellers <josef.moellers@invalid.invalid> - 2021-09-01 10:46 +0200
Re: MPLAB Simulator für AVR kaputt? Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2021-09-01 11:35 +0200
Re: MPLAB Simulator für AVR kaputt? Josef Moellers <josef.moellers@invalid.invalid> - 2021-09-01 13:57 +0200
Re: MPLAB Simulator für AVR kaputt? Michael Bäuerle <michael.baeuerle@stz-e.de> - 2021-09-01 14:28 +0200
Re: MPLAB Simulator für AVR kaputt? Josef Moellers <josef.moellers@invalid.invalid> - 2021-09-01 14:46 +0200
Re: MPLAB Simulator für AVR kaputt? Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2021-09-01 18:41 +0200
Re: MPLAB Simulator für AVR kaputt? Michael Bäuerle <michael.baeuerle@stz-e.de> - 2021-09-01 19:29 +0200
Re: MPLAB Simulator für AVR kaputt? Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2021-09-02 01:36 +0200
Re: MPLAB Simulator für AVR kaputt? Michael Schwingen <news-1513678000@discworld.dascon.de> - 2021-09-01 19:11 +0000
Re: MPLAB Simulator für AVR kaputt? Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2021-09-02 01:51 +0200
Re: MPLAB Simulator für AVR kaputt? Michael Schwingen <news-1513678000@discworld.dascon.de> - 2021-09-03 20:09 +0000
Re: MPLAB Simulator für AVR kaputt? Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2021-09-04 07:09 +0200
Re: MPLAB Simulator für AVR kaputt? Gunther Mannigel <newsgroups@mannigel.net> - 2021-09-01 21:28 +0200
csiph-web