Skip to main content
vitthal muddapur
Associate III
June 3, 2018
Question

Reset MCU?

  • June 3, 2018
  • 6 replies
  • 1061 views
Posted on June 03, 2018 at 13:12

Hi,

i am beginner in stm i am working on stm32l071, have configured rtc,spi,uart all peripherals working good,but

some time MCU resetting how to find what is reason for resetting  the mcu.

    This topic has been closed for replies.

    6 replies

    Tesla DeLorean
    Guru
    June 3, 2018
    Posted on June 03, 2018 at 13:21

    Monitor the NRST pin vs the supply voltage, the system has a power-on-reset monitoring the supply for brown-out conditions.

    Check also PWR_CSR for Wakeup/Standby reset indication

    http://www.st.com/content/ccc/resource/technical/document/reference_manual/21/bd/0f/bd/1c/88/40/f0/DM00108282.pdf/files/DM00108282.pdf/jcr:content/translations/en.DM00108282.pdf

     

    Consider watchdog sources, and external drivers of the NRST pin

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    john doe
    Senior III
    June 3, 2018
    Posted on June 03, 2018 at 13:26

    Read whats in RCC_CSR.  Here is a link to the reference manual.  Section 7.1 - Reset

    http://www.st.com/resource/en/reference_manual/dm00108282.pdf

    vitthal muddapur
    Associate III
    June 6, 2018
    Posted on June 06, 2018 at 11:15

    any possibility to reset the device our firmware for uart ,spi(eeprom),LPTIMER

    i have flashed same firmware to 5 devices within this reset the 3 devices remaining two devices working good

    Vitaliy Chernobay
    Senior
    June 6, 2018
    Posted on June 06, 2018 at 11:23

    VCC is bad. Add shunt capacitor 0.1u

    vitthal muddapur
    Associate III
    June 7, 2018
    Posted on June 07, 2018 at 08:10

    When i set like this GPIOA->ODR=1<<15 then MCU is resetting

    what is the Reason

    AvaTar
    Senior III
    June 7, 2018
    Posted on June 07, 2018 at 08:28

    How should we know, such code works fine on all the boards I have.

    What is connected to this pin ?

    Is your power supply too weak, or the supply circuitry inadequate ?

    Do you have a watchdog peripheral enabled ? (had already been asked, but not answered)