Fang Li
wrote:
> For V1, we recommend to use the ILLEGAL opcode (0x4AFC) to implement the soft reset.
If that worked I would have recommended it in my original post. I read the MCF51JE256 Reference Manual (Rev 2) before posting, and it states:
5.3.2 Illegal Opcode Detect (ILOP)
The default configuration of the V1 ColdFire core enables the generation of an MCU reset in response to
the processor's attempted execution of an illegal instruction (except for the ILLEGAL opcode), illegal line
A, illegal line F instruction or the detection of a privilege violation (attempted execution of a supervisor
instruction while in user mode).
Also:
Table 5-2. ColdFire Exception Vector Table1 (Continued)
The execution of the ILLEGAL instruction (0x4AFC) always generates an illegal instruction
exception, regardless of the state of CPUCR[30].
Also:
Table 5-4. SRS Register Field Descriptions
Illegal Opcode — Reset was caused by an attempt to execute an unimplemented or illegal opcode. This includes
any illegal instruction [except the ILLEGAL (0x4AFC) opcode...
A quick check through the other MCF51 variants to see if the ILLEGAL instruction can be used to cause a Reset on some of them:
MCF51JE: Illegal Instruction can't cause Reset.
MCF51AC: Same
MCF51AG: Same
MCF51CN: Same
MCF51EM: Same
MCF51JF: Same
MCF51JM: Same
MCF51JM: Same
MCF51MM: Same
MCF51QE: Same
MCF51QM: Same
Tom