The STM32F103C8 is throwing an error it is repeating the code from main loop again and again and not entering inside While loop. I am also unable to debug it in attolic studio since it is showing an error also. I have tried various codes but nothing is working .
The error coming while debugging is..
Failed to execute MI command:
target extended-remote localhost:61234
Error message from debugger back end:
Remote communication error. Target disconnected.: No error.
The code is attached in zip file. It is not entering in While loop but repeatedly running main loop from begining till begin of while