AnsweredAssumed Answered

Program doesn't run properly when debugger is not connected in STM32L476RE MCU

Question asked by Pradeep Choudhary on Jun 11, 2018
Latest reply on Jun 14, 2018 by Evgeny Kirshin


I am using STM32L476RE MCU for one of my application which publishes some data to server using MQTT and my wifi module communicates with MCU with USART2.I am using atollic truestudio to write a code and debug it.I am using ST LINK V2 as my debugger.Now the problem that i am facing is that when i flash a code to MCU and debugger is connected then it runs fine but as soon as i remove debugger and turn off power and again power up the circuit then it doesnt work.I wrote a simple code for GPIO toggling it runs fine without debugger connected.I have attached the code that i have wrote.Same code works absolutely fine with STM32F401RE.Please help as soon as possible.




Pradeep Choudhary