RL78软件复位

请问通过非法指令实现软件复位要怎么实现

Parents
  • 请参考 :

    void ilsw_reset(void)
    {
    unsigned char illegalInstruction = 0xFF;
    void(*dummy)(void) = (void (*)(void))&illegalInstruction;
    dummy();
    }

    请注意:

    在正常操作中,执行指令代码FFH会触发内部复位,但在片上调试仿真器进行仿真时并非如此。

    In normal operation, executing the instruction code FFH triggers an internal reset, but this is not the case during emulation by the on-chip debugging emulator.

Reply
  • 请参考 :

    void ilsw_reset(void)
    {
    unsigned char illegalInstruction = 0xFF;
    void(*dummy)(void) = (void (*)(void))&illegalInstruction;
    dummy();
    }

    请注意:

    在正常操作中,执行指令代码FFH会触发内部复位,但在片上调试仿真器进行仿真时并非如此。

    In normal operation, executing the instruction code FFH triggers an internal reset, but this is not the case during emulation by the on-chip debugging emulator.

Children
No Data