Skip to main content
Graduate
November 4, 2024
Question

target is not responding, retrying

  • November 4, 2024
  • 1 reply
  • 788 views

I have a program with various tasks, in one of these I send a request and, after that, I wait for a response, so I have a cycle like this

 

SendRequest();
do
{
WaitResponse();
DelayMillisecondS(200);
}while (Timerisnotexpired());

 

the Problem is that the answer takes time to be given and I receive messages like this "Target is not responding, retrying...", sometimes I receive a sequence of this messages and the debug connection terminates. Probably, the clock to the stlink fails, but I don't know how to make up with this. I have lowered the frequency of swd interface and I have enabled "Suspend watchdog counters while halted", but the problem remains.

Any help would be appreciated.

Thank you

Isabella

    This topic has been closed for replies.

    1 reply

    Super User
    November 4, 2024

    @IVent.1 wrote:

    the Problem is that the answer takes time to be given and I receive messages like this "Target is not responding, retrying..."


    where, exactly, do you get that message? STM32cCubeIDE? other? version?

    Does WaitResponse() put your target to sleep?

    IVent.1Author
    Graduate
    November 4, 2024

    No, WaitResponse() only check the uart for some response.

    I receive that message in the Console Window.

    Using Stm32CubeIDe 1.16.0