Skip to main content
ZhangXR
Associate II
Dec 3, 2020 7:06 AM UTC
Solved

How does THE SPC560 MCU achieve software reset

How does THE SPC560 MCU achieve software reset, I can't find a register that the software can reset.

    This topic has been closed for replies.
    AndreasPA
    AndreasPABest answer
    Associate III
    Dec 10, 2020 5:57 AM UTC

    I think page 185 in RM0045 might help you out

    3 replies

    AndreasPA
    AndreasPABest answer
    Associate III
    Dec 10, 2020 5:57 AM UTC

    I think page 185 in RM0045 might help you out

    Erwan YVIN
    ST Technical Moderator
    Dec 17, 2020 3:47 PM UTC
    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.
    Giuseppe DI-GIORE
    ST Employee
    Jan 11, 2021 8:56 PM UTC

    Hello,

    SPC5Studio provides a function SPCSetRunMode(uint8_t mode)

    which, if called with mode = 0 (zero) generates a software reset.

    See file clock.c under Clock component directory.

    See also: Table 59. Mode Control Register (ME_MCTL) Field Descriptions

    in Reference Manual RM0045

    Regards,

    Giuseppe