if (HAL_GPIO_ReadPin(button_GPIO_Port,button_Pin)==1) //mypushbutton==1 { /* If Key is pressed */ /* Execute the IAP driver in order to re-program the Flash */ printf("\r\n\r\n"); Main_Menu(); }// /* Keep the user application running */ else { ...
thanks for your answer,when I did what you said program is running but if I use delay function program stops working. no problem when I use USART interrupt, but if I use a delay, processor stops working.what do you think about this problem?