Stack overflow greska?!

Rasprava o PIC mikrokontrolerima, PIC projekti i drugo vezano za PIC-eve...

Moderators: pedja089, stojke369, [eDo], trax

Post Reply
file1
Pocetnik na forumu
Pocetnik na forumu
Posts: 42
Joined: 07-11-2010, 18:55

Stack overflow greska?!

Post by file1 »

prilikom simulacije dobijam sledecu gresku (kao da stalno puni stack i na kraju se desi prekoracenje,ako sam u pravu?) :

CORE-E0001: Stack over flow error occurred from instruction at 0x00009b
CORE-E0001: Stack over flow error occurred from instruction at 0x0000a0
CORE-E0002: Stack under flow error occurred from instruction at 0x00004f
CORE-E0001: Stack over flow error occurred from instruction at 0x000071
CORE-E0001: Stack over flow error occurred from instruction at 0x00008b
CORE-E0001: Stack over flow error occurred from instruction at 0x000080
CORE-E0001: Stack over flow error occurred from instruction at 0x00009e

i kursor se zaustavlja na sledecoj liniji source koda tj.proceduri koju inace pozivam cesto u toku izvrsavanj programa:

podesi_tajmer
movlw .42
movwf TMR0
bcf INTCON,T0IF
return

e sad meni, kada sve to iskompajlira, program radi bas kako zelim ali imam nedoumicu da li mogu da imam problema zbog ove greske?
Kako da znam koja je npr. ova instrukcija: instruction at 0x00009b ?!

Unapred hvala
User avatar
pedja089
Administrator sajta
Administrator sajta
Posts: 7876
Joined: 20-02-2007, 14:50
Location: Beočin -Srbija

Re: Stack overflow greska?!

Post by pedja089 »

Bez celog koda se nista konkretno ne moze reci, ni kontrolera...
Ne ide nam gledanje u pasulj... :?
Ta greska moze da ima potpuno poguban uticaj na rad uredjaja, a moze i da se nista ne desi...
file1
Pocetnik na forumu
Pocetnik na forumu
Posts: 42
Joined: 07-11-2010, 18:55

Re: Stack overflow greska?!

Post by file1 »

kod je malo duzi,zato nisam postovao ceo, a inace je u pitanju pic12f629
User avatar
pedja089
Administrator sajta
Administrator sajta
Posts: 7876
Joined: 20-02-2007, 14:50
Location: Beočin -Srbija

Re: Stack overflow greska?!

Post by pedja089 »

Onda sam resi problem...
Ja ti ne preporucujem da ostavis tako...
Post Reply