I have been working on a piece of code for a while now. I have added an extra section to run an LCD. Since then I am getting an internal reset from an illegal address code. I can tell by reading SRSR on re-boot.
The area in the code that fails only has clrbit and setbit instructions. Does anyone know why this would be causing an illegal address? Any pointers in the right direction would be useful?
I have had some success of removing the fault by switching off the CLI for the interrupts I am using but this doesn\'t help me get the job done.