![]() watchdog timer kicks in sometimes also because I notice a board reset and I have auto-insert clear watchdog timer set so that really does show that the board froze up. 1,286 Activity points 1,990 12c508a picbasic pro Hi I wrote a simple basic program for my PIC (12c508A) in a Picbasic Pro compiler but I have this error after compilation 'unable to fit variable softstack' please see my program below and tell me the errors as I am beginner in PIC programming. Maybe someone has a suggestion actually what might be wrong. I don't know why this is happening, and maybe I coded something wrong or discovered a picbasic bug not sure, but manually assigning a var to location, say, $70 that are accessed say at 0x0100 to 0x1EC0 address (in other words across all banks), works and letting picbasic handle this var doesn't work. Actually that's the reason why I'm trying to learn about these modifiers if I let Picbasic handle the variables, my board goes haywire, freezes up and doesn't hold the var values as debugging showed, however everything works if I manually set the vars to set locations. So just define your variables without ANY modifiers, and everything should work just fine.I am using ASM for interrupt initialization, but I don't think that would matter as far as variables go.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |