Skip to main content
Graduate II
December 12, 2023
Question

Launching: Initializing debugger services

  • December 12, 2023
  • 3 replies
  • 9512 views

Dear all,

I am new to STM32 development environment. I recently purchases STM32F407G-DISC1. I also purchased mini USB cable. When I connected the board to the PC, I can see that LD1 is on (RED). I can upgrade the driver for ST-Link as well. So, I am assuming there is connection established between board and the PC. Then, I write the first piece of code as attached below to see the LED blinks. It compiles very well. However, the code is not downloaded to the board. When I click on debug, it stucks at Launching: Initializing debugger services. It does not complete the progress. Please see the attachment2. I am helpless on this and require immediate support. I really liked the board and dont want to lose the enthusisasim.

Thank you.

 

    This topic has been closed for replies.

    3 replies

    Technical Moderator
    December 12, 2023

    Hello @demir and welcome to the ST Community :smiling_face_with_smiling_eyes:.

    Since the LD1 is on RED that means the communication between the ST-LINK/V2-A of the board and the PC is not established.

    I suggest you to check your usb cable (try using another one) . Also, try to use another USB port for the communication.

    Best Regards.

    STTwo-32 

    demirAuthor
    Graduate II
    December 12, 2023

    Thank you for the answer. 

    I have changed the USB port but the issue persists. I am using this cable (MP01787), do you think this is not the proper one ? Could you please suggest me the right cable ?

    Technical Moderator
    December 13, 2023

    Can you try to connect your board to another PC.

    Best Regards.

    STTwo-32

     

    demirAuthor
    Graduate II
    December 13, 2023

    It didnt work either. I dont know if this is a sign but I can see that virtual com port is visible. 

    Is it due to the cable ?

     

    demirAuthor
    Graduate II
    December 15, 2023

    Hello @STTwo-32 

    I downloaded ST-Link Utility. When I connected to the board, I see the below message. It got me thinking that I can connect to the board, so there is no issue with the cable. Do you confirm this ?

    The LD1 blinks red and green, then stops at green for almost 0.5 second. This pattern continues forever.

    I also am able to perform full chip erase. I can confirm that all sectors are set to FFFFFFFF now.

     

    15:31:33 : ST-LINK SN : 066DFF575377524867051414
    15:31:33 : V2J43M0
    15:31:33 : Connected via SWD.
    15:31:33 : SWD Frequency = 4,0 MHz.
    15:31:33 : Connection mode : Normal.
    15:31:33 : Debug in Low Power mode enabled.
    15:31:33 : Device ID:0x413
    15:31:33 : Device flash Size : 1MBytes
    15:31:33 : Device family :STM32F405xx/F407xx/F415xx/F417xx