I am using CodeWarrior with a MC9S12C32 in a Technological Arts NanoCore12 board. The problem I am having is with output compare interrupt.
When I run a program from CodeWarrior Debug->(F5) using HCS12_Serial_Monitor the program and interrupt operates correctly.
When I run the program in the NanoCore12 boards run mode the interrupt routine does not function but the remaining code does functions correctly. Any suggestions.
The original vector address for timer 7 compare is 0xFFE0 the address with monitor installed is 0xF7E0 (the 2048 you spoke about). If I look at memory address 0xF7E0 it equals 0xC166, which is the actual starting location of the interrupt 15 routine. I am assuming that these values are actually burned in these addresses and not simulated by the debugger.
I put PTT ^= 0x01 inside the interrupt routine and pin 1 toggles when run from the CodeWarrior debug. If I run the same code using run mode on NanoCore12, pin 1 stays high and does not toggle. Its acting like the interrupt is disabled or not being reset, I told your suggestion on resetting the flag. I can’t explain it.
I ordered a P&E Multilink last night, I am going to try it without the monitor. I am going that direction sooner or later.
Thanks for all your help.