Index > Q&A > Others > SoC IC > Q4 : How can SoC IC avoid the problem that PM mode is in the program and cannot be burned after running debug mode?
Q&A
Q4 : How can SoC IC avoid the problem that PM mode is in the program and cannot be burned after running debug mode?


A :
Cause: When the 8051 or M0 IC enters debug mode, it will execute a program for a period of time. If it run to PM mode, it will make the IC sleep and cannot operate.
 


Ways to avoid : Add a debug pin go low while loop at the front of the program to judge, and it will stop here when the program enters debug mode.
 


How to do when you cannot burn:


* 8051 IC : You can press the reset pin and then press burn immediately, there should be a chance to burn, but this approach does not necessarily guarantee success.
* M0 IC :
      1. Please connect P0_10 to GND and press reset, then the ROM will read as  0xFFFFFFFF.
     2. Only do Erase Full chip to clear the IC (KeilC option)
     3. Keep P0_10 open and press reset ,then you can burn as usual.