cancel
Showing results for 
Search instead for 
Did you mean: 

Reset MCU?

vitthal muddapur
Associate II
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.

6 REPLIES 6
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
Up vote any posts that you find helpful, it shows what's working..
john doe
Lead
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

Posted on June 06, 2018 at 11:23

VCC is bad. Add shunt capacitor 0.1u

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

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

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)