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.
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
Consider watchdog sources, and external drivers of the NRST pin
Read whats in RCC_CSR. Here is a link to the reference manual. Section 7.1 - Reset
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
VCC is bad. Add shunt capacitor 0.1u
When i set like this GPIOA->ODR=1<<15 then MCU is resetting
what is the Reason
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)
Retrieving data ...