Skip to main content
Bpara
Visitor II
May 9, 2019
Solved

how to generate software reset in SPC 56D40?

  • May 9, 2019
  • 2 replies
  • 1924 views

0690X000008BSyYQAW.png

    This topic has been closed for replies.
    Best answer by Erwan YVIN

    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

    2 replies

    Erwan YVIN
    Erwan YVINBest answer
    ST Technical Moderator
    May 9, 2019

    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
    April 12, 2022

    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?