I'm implementing SPI communications using the MC9S08GT16A. The code has been working perfectly for ages and now, all of a sudden, im getting an illegal BP error.
I keep getting the error even with the watchdog disabled and no interrupts present in my code.
If its not an unmapped interrupt or the watchdog then the other two options are an illegal address or a stack overflow, right?
Ive made the stack as large as possible.
So, how do I check if its trying to access an illegal address, and if so, fix that?