Skip to main content
rpoon
Associate II
September 17, 2019
Solved

how to set standby mode in spc560b disc EVK.

  • September 17, 2019
  • 2 replies
  • 1954 views

Hello,

I am not able to activate the module entry in Clock Component RLA.

Can you please guide me how to do the configuration for sending the uc in standby mode.

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

    Hello ,

    There are 2 Test Applications

    SPC560Dxx_RLA WKPU API Test Application for Discovery (STOP mode)

    SPC560Dxx OS-Less STANDBY SRAM Test Application for Discovery (STANDBY Mode)

    You can follow them with the RM0037.

    The mecanism is the same

    Best regards

    Erwan

    2 replies

    Erwan YVIN
    Erwan YVINBest answer
    ST Employee
    September 17, 2019

    Hello ,

    There are 2 Test Applications

    SPC560Dxx_RLA WKPU API Test Application for Discovery (STOP mode)

    SPC560Dxx OS-Less STANDBY SRAM Test Application for Discovery (STANDBY Mode)

    You can follow them with the RM0037.

    The mecanism is the same

    Best regards

    Erwan

    rpoon
    rpoonAuthor
    Associate II
    September 24, 2019

    Hello Erwan,

    I have used following line of code but the current drawn by the mcu is still 90mamp, for standby mode it should be in micro amp.

    Kindly help me out with the issue.

    uint32_t n =69;

    uint32_t pctl = SPC5_ME_PCTL_RUN(2)|| SPC5_ME_PCTL_LP(1);

    ME.PCTL[n].R = pctl;

    ME.IS.R = 5;

    uint8_t flag_ret = 0;

    ME.STANDBY0.B.PDO = 0;

    ME.STANDBY0.B.MVRON = 0;

    ME.STANDBY0.B.DFLAON = 1;

    ME.STANDBY0.B.CFLAON = 1;

    // ME.STANDBY0.B.SSCLKON =

    ME.STANDBY0.B.PLLON = 0;

    ME.STANDBY0.B.OSCON = 0;

    ME.STANDBY0.B.RCON = 0; //

    ME.STANDBY0.B.SYSCLK = 0XF; //system clock disabled

    // LOW POWER PERIPHERAL CONFIGURATION

    //ME.LPPC[0].B.STANDBY0 = 0; //Peripheral is frozen with clock gated

    //ME.MER.B.STANDBY0 = 1; //enabling the mode

    ME.MCTL.R = SPC5_ME_MCTL_MODE(SPC5_ME_LP_PC_STANDBY ) | SPC5_ME_MCTL_KEY ;

    ME.MCTL.R = SPC5_ME_MCTL_MODE(SPC5_ME_LP_PC_STANDBY ) | SPC5_ME_MCTL_KEY_INV;

    while(ME.GS.B.MTRANS != 0)

    Best Regards

    Rewatee

    Rajesh_
    Associate
    September 19, 2019

    Hello,

    Are you able to set Standby mode in SPC560b now?

    Because I am also facing the issue in setting standby mode.

    Whenever i try to change the mode to standby it is going to STOP mode.

    Please let me know if you resolved this issue.

    Regards,

    Rajesh

    rpoon
    rpoonAuthor
    Associate II
    September 24, 2019

    Hi ,

    I am not able to make exactly in standby mode.

    Kindly help me out in case you resolved.

    Regards

    Rewatee