Skip to main content
Bpara
Visitor II
May 9, 2019 11:23 AM UTC
Solved

how to generate software reset in SPC 56D40?

0690X000008BSyYQAW.png

    This topic has been closed for replies.
    Erwan YVIN
    Erwan YVINBest answer
    ST Technical Moderator
    May 9, 2019 1:48 PM UTC

    Hello bhargaviparalikar,

    Use ME register to generate a software reset

     /* Starts a transition process.*/
     ME.MCTL.R = SPC5_ME_MCTL_MODE(0) | SPC5_ME_MCTL_KEY;
     ME.MCTL.R = SPC5_ME_MCTL_MODE(0) | SPC5_ME_MCTL_KEY_INV;

    Best regards

    Erwan

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.

    2 replies

    Erwan YVIN
    Erwan YVINBest answer
    ST Technical Moderator
    May 9, 2019 1:48 PM UTC

    Hello bhargaviparalikar,

    Use ME register to generate a software reset

     /* Starts a transition process.*/
     ME.MCTL.R = SPC5_ME_MCTL_MODE(0) | SPC5_ME_MCTL_KEY;
     ME.MCTL.R = SPC5_ME_MCTL_MODE(0) | SPC5_ME_MCTL_KEY_INV;

    Best regards

    Erwan

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
    yakdagg
    Associate II
    Apr 12, 2022 7:51 PM UTC

    hey Erwan, when i try this; mcu is going reset but not starting again. i tried with 0x0000(reset) and 0x1111(destructive’ reset).

    should i off something manually before reset?