Hi all,
I'm using an S12ZVCA with Codewarrior 10.7 on a Windows 7 PC and PE Micro USB Multilink Universal BDM interface.
I'm not able to debug my software as the connection is lost very often.
When the problem happens all the memory read from the micro is read as 0xEE and I have to reset the microcontroller using the reset command .
It looks like a connection lost problem or an unexpected reset of the microcontroller.
The things happens in the following way:
- Start a debug session
- Start the microcontoller
- Pause the microcontroller after a while.
Sometime, after a few seconds, the microcontroller restart by itself and the connection is lost.
Anyone experienced similar problems? Any idea what could be the problem?
Thank You, everyone
Max
Solved! Go to Solution.
Hi Max,
Not easy to tell what is the cause of the issue. Some answers can help to move on:
Do you use NXP development board or is it your custom made? Do you have another one to try?
Does the Pemicro programmer works when programming other micro i.e. board?
It would be good to know if the HW part is faulty or not.
You ca try and program the micro, disconnect the bdm, press reset and let MCU run. This will let you know if the programmer and MCU are OK. For example, a program that switches a LED on and off continuously.
But, now i think you are having a problem with COP watchdog. Do you use COP watchdog? Do you write any value to CPUCOP register?
Regards,
iggi
Hi Max,
Not easy to tell what is the cause of the issue. Some answers can help to move on:
Do you use NXP development board or is it your custom made? Do you have another one to try?
Does the Pemicro programmer works when programming other micro i.e. board?
It would be good to know if the HW part is faulty or not.
You ca try and program the micro, disconnect the bdm, press reset and let MCU run. This will let you know if the programmer and MCU are OK. For example, a program that switches a LED on and off continuously.
But, now i think you are having a problem with COP watchdog. Do you use COP watchdog? Do you write any value to CPUCOP register?
Regards,
iggi
Hi iggi, thank You for your answer.
Yet I don't understand why the COP were not resetting the microcontroller immediately when activating the BDM mode. Perhaps it was made by the debugger software?
Regards
Max