User Activity

Hi i want to hard reset my MCU once after 5 minutes is there any way to implement it i know i can do this  by NVIC_SystemReset(); but i just want to do it once after power on the mcu 
Hi i want to know how can i fix the MCU's when i accidentally set the Debug mode to No debug in ioc file as i can not connect it now