MCU starts code if I do a hardware reset!
Hello,
I'm working with STM32F427VIT6 microcontroller.
BOOT0 is connected to GND through 10K resistor. The NRST state is high.
My problem is when I power up the board, the microcontroller code execution seems to not start. The execution only starts if I give a hardware reset(Push button) in NRST pin. The code only works if I force a hardware reset (NRST = 0).
While debugging i observed that, if i connect external RTC battery to microcontroller(Always), Only first time, code does not start. If i power up second time, code will start working without doing hardware reset. After that if i do N number of power cycles(ON/OFF), code starts work without giving hardware reset.
Is there anything resetting the microcontroller during power OFF condition ? Because if i give RTC power continuously to the microcontroller then it works without any hardware reset.
Secondly i believe that above are two different issues and may not be linked to each other. How ever the fact is that my controller doesn't execute first time when power is ON (After inserting the RTC battery first time, powerup the board).
Kindly help me in resolving this issue.
