Just want to share out something here. I flashed in a corrupted firmware into my 9S12XA256. The firmware itself able to re-flash and reprogram the MCU internal EEPROM and FLASH. This buggy firmware some what make my 9S12XA256 fail to connect to my BDM debugger multilink using hi-wave.exe. But I can noticed from command window that the MCU actually return the registers value. It just that hi-wave.exe can't stopped it. Whenever, 'stop' command issued, it only showed 'stopping' but no 'stopped' message. I gone through all the tools on hi-wave.exe include unsecure command. All just don't worked.
So I am suspecting that my MCU was in BDM disabled mode. I digged out the datasheet on BDM how to enable it. This led me to Special Single Chip Mode by default - pull low the MODE C pin. And most importantly also led me to this thread. Thread starter posted almost identical with my problem. I tried pull low MODE C pin - not work also, multilink still not able to connect.
This thread enlightened me that I need the BDM debugger tool provider software to do something on the MCU before it can be used with hi-wave.exe again. So, I go back to www.pemicro.com , get their unsecure S12X tool which is free. Run it. Now, my S12X back to normal.
Conclusion, my MCU actually was corrupted to secure mode in which hi-wave.exe not able to connect it. And one important note is that the hi-wave.exe unsecure tool seem not working at least for me.