cancel
Showing results for 
Search instead for 
Did you mean: 

STM32N6570-DK Debug Issue

Okeskin
Associate III

Hi Everyone,

I've been working on the N6 kit for a while. Initially, I was able to debug it, albeit with difficulty. However, in my latest attempts, I haven't been able to. I've updated Stlink, the IDE, and CubeProgrammer. I continue to receive the error below. I'm following all the instructions in the Readme. Also, as I mentioned, I've been able to debug it without any problems for about a month.

 

I know that debugging MCUs with external flash drives requires some special considerations. However, when they suddenly stop working after booting, it really makes the development process quite tedious. What should I check? I've eliminated things like the USB cable.

Okeskin_0-1753107793510.png

BR. Onur

 

 

5 REPLIES 5
KDJEM.1
ST Employee

Hello @Okeskin;

 

Are you using the STM32CubeN6 firmware example? Are you experiencing the same issue with a firmware example?

I recommend you referring to How to debug STM32N6 using STM32CubeIDE - STMicroelectronics Community article and follow the steps to debug code from external serial flash. This tutorial is a comprehensive guide for debugging code from external serial flash on the STM32N6. It covers: setting up the environment, configuring the debugger, and validating the setup.

 

I hope this help you!

Thank you.

Kaouthar

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.

KDJEM.1
ST Employee

Hello @Okeskin ;

 

Any update about this issue?

If the issue isn't solved, please don't hesitate to update post.

If your issue is solved, please click on Accept as Solution on the reply which helped you.

 

Thank you.

Kaouthar

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.

Hi @KDJEM.1 

I am using the STM32CubeN6 firmware example. I've been trying repeatedly. Sometimes the connection drops, and even after trying all the steps again, it still doesn't work. I'm starting to think there are connection problems between the Stlink and the Stm32n6. I'm using the Discovery Kit, but I can't understand why debugging is so difficult. We designed a custom board, and we can now debug it. However, I still suspect there are problems.

 

BR,

Onur

 

KDJEM.1
ST Employee

Hello @Okeskin ;

 

Thank you for updating post.

I noted that you are using an older version of STM32CubeIDE toolchain.

KDJEM1_0-1756107534259.png

Could you please update your STM32CubeIDE 1.19.0 toolchain.

Also, I recommend you to try to connect your board using STM32CubeProgrammer and click on full chip erase. 

KDJEM1_1-1756107873055.png

Thank you.

Kaouthar

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.

Hi @KDJEM.1 

 

Thanks for your suggestion. I will check and update this post.

 

Br.

Onur