UART TX pin going low automatically after running the system for a long time, change in Flash also noticed
I've configured SWDCLK as UART_Tx in the initialization section. Everything runs fine but after running the system for a long time UART_Tx pin goes low all of a sudden and communication stops. The Tx pin remains low even if I reset the MCU. If I reprogram the MCU again everything runs fine. I have also noticed a few changes in the flash.
I am guessing that somehow the Tx pin is getting configured to its default status i.e., SWDClk when the error condition occurs and remains in SWDCLK mode until I reprogram the MCU.
What could be the possible reason? Any help will be highly appreciated.