cancel
Showing results for 
Search instead for 
Did you mean: 

Launching: Initializing debugger services

demir
Senior II

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.

 

11 REPLIES 11
STTwo-32
ST Employee

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 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

demir
Senior II

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 ?

Can you try to connect your board to another PC.

Best Regards.

STTwo-32

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

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 ?

 

can you try to connect your board to STM32CubeProgrammer and do a full chip erase.

Best Regards.

STTwo-32

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

I installed cubeprogrammer and performed full chip erase. Now, I can see that LD1 is green so that means I can communicate to the board, right ? Afterwards, I opened STM32 CUBEIDE, wrote a simple program to check LED3(Orange) blinks or not. I clicked on debug--> debug as applicatiom. The code is not downloaded to the board. Again, it is stuck at launching: initializing debugger services. Please see the attached images.

Thanks.

Lets try a few things:

Right click the project in the project explorer and select "Index -> Rebuild"

Make a clean build by right clicking the project and select "Clean Project"

Then build the project again

If none of the two steps above helps, try making a new workspace and import the project to the new workspace and see if anything changes

Best Regards.

STTwo-32 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Thats unfortunate. I tried all steps above, it didnt work at all.

Also, when I intended to cancel debug operation, it is not responding at all.

I have also updated the driver for ST-Link.

After the firmware update LD1 comm went back to red again. It was green before after full chip erase.

Please note that, I have performed full chip erase again, then I noticed that LD1 blinks red and green, then stops at green for a second or less, then this pattern continued until I closed STM Cube Programmer. When I closed cube programmer, LD1 turned to stable greed light.

Are you using the last version of the STM32CubeIDE - Integrated Development Environment for STM32 - STMicroelectronics. If no, I suggest you migrate to the last version.

Best Regards.

STTwo-32

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.